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

@ -99,9 +99,11 @@
<h3>{{$lbl_custom_fields_section}}</h3>
<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="profile-edit-submit-wrapper">
<input type="submit" name="submit" class="profile-edit-submit-button" value="{{$submit}}"/>