friendica/view/theme/frio/templates/settings/profile/field/edit.tpl
2020-01-22 19:42:36 -05:00

29 lines
1.1 KiB
Smarty

<fieldset data-id="{{$profile_field.id}}">
<legend>&#8801; {{$profile_field.legend}}</legend>
<input type="hidden" name="profile_field_order[]" value="{{$profile_field.id}}">
{{include file="field_input.tpl" field=$profile_field.fields.label}}
{{include file="field_textarea.tpl" field=$profile_field.fields.value}}
{{* Block for setting default permissions *}}
<p>
<a id="settings-default-perms-menu" class="settings-default-perms" data-toggle="modal" data-target="#profile-field-acl-{{$profile_field.id}}">{{$profile_field.permissions}} {{$profile_field.permdesc}}</a>
</p>
{{* We include the aclModal directly into the template since we cant use frio's default modal *}}
<div class="modal" id="profile-field-acl-{{$profile_field.id}}">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">{{$profile_field.permissions}}</h4>
</div>
<div class="modal-body">
{{$profile_field.fields.acl nofilter}}
</div>
</div>
</div>
</div>
</fieldset>