modify template to hide optional fields

This commit is contained in:
Maxim Kochurov 2022-03-13 12:25:03 +00:00
parent 94aaef70a7
commit e89f7d31d1

View file

@ -184,20 +184,21 @@
</label> </label>
</div> </div>
</div> </div>
<div class="form-group"> <details>
<label for="client_public_key" class="control-label"> <summary>Public and Preshared Keys</summary>
Public Key <div class="form-group" style="margin-top: 1rem">
</label> <label for="client_public_key" class="control-label">
<input type="text" class="form-control" id="client_public_key" Public Key
name="client_public_key" placeholder="Autogenerated (insecure)"> </label>
</div> <input type="text" class="form-control" id="client_public_key" name="client_public_key" placeholder="Autogenerated (insecure)" aria-invalid="false">
<div class="form-group"> </div>
<label for="client_preshared_key" class="control-label"> <div class="form-group">
Preshared Key <label for="client_preshared_key" class="control-label">
</label> Preshared Key
<input type="text" class="form-control" id="client_preshared_key" </label>
name="client_preshared_key" placeholder="Autogenerated"> <input type="text" class="form-control" id="client_preshared_key" name="client_preshared_key" placeholder="Autogenerated">
</div> </div>
</details>
</div> </div>
<div class="modal-footer justify-content-between"> <div class="modal-footer justify-content-between">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button> <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>