Add sortability to custom profile fields form

This commit is contained in:
Hypolite Petovan 2020-01-18 10:43:28 -05:00
commit cc007f715d
8 changed files with 61 additions and 4 deletions

View file

@ -1,5 +1,5 @@
<fieldset>
<legend>{{$profile_field.legend}}</legend>
<fieldset data-id="{{$profile_field.id}}">
<legend>&#8801; {{$profile_field.legend}}</legend>
<input type="hidden" name="profile_field_order[]" value="{{$profile_field.id}}">

View file

@ -157,9 +157,11 @@
</div>
<div id="custom-fields-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="custom-fields">
<div class="section-content-tools-wrapper">
<div id="profile-custom-fields">
{{foreach $custom_fields as $custom_field}}
{{include file="settings/profile/field/edit.tpl" profile_field=$custom_field}}
{{/foreach}}
</div>
<div class="form-group pull-right">
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>