2015-07-10 12:28:56 -04:00
|
|
|
{{#if editing}}
|
2015-07-27 14:22:12 -04:00
|
|
|
{{#admin-form-row label="admin.user_fields.type"}}
|
|
|
|
{{combo-box content=fieldTypes valueAttribute="id" value=buffered.field_type}}
|
|
|
|
{{/admin-form-row}}
|
|
|
|
|
|
|
|
{{#admin-form-row label="admin.user_fields.name"}}
|
|
|
|
{{input value=buffered.name class="user-field-name"}}
|
|
|
|
{{/admin-form-row}}
|
|
|
|
|
|
|
|
{{#admin-form-row label="admin.user_fields.description"}}
|
|
|
|
{{input value=buffered.description class="user-field-desc"}}
|
|
|
|
{{/admin-form-row}}
|
|
|
|
|
2015-07-28 12:29:40 -04:00
|
|
|
{{#if bufferedFieldType.hasOptions}}
|
|
|
|
{{#admin-form-row label="admin.user_fields.options"}}
|
|
|
|
{{value-list values=buffered.options inputType="array"}}
|
|
|
|
{{/admin-form-row}}
|
|
|
|
{{/if}}
|
|
|
|
|
2015-07-27 14:22:12 -04:00
|
|
|
{{#admin-form-row wrapLabel="true"}}
|
|
|
|
{{input type="checkbox" checked=buffered.editable}} {{i18n 'admin.user_fields.editable.title'}}
|
|
|
|
{{/admin-form-row}}
|
|
|
|
|
|
|
|
{{#admin-form-row wrapLabel="true"}}
|
|
|
|
{{input type="checkbox" checked=buffered.required}} {{i18n 'admin.user_fields.required.title'}}
|
|
|
|
{{/admin-form-row}}
|
|
|
|
|
|
|
|
{{#admin-form-row wrapLabel="true"}}
|
|
|
|
{{input type="checkbox" checked=buffered.show_on_profile}} {{i18n 'admin.user_fields.show_on_profile.title'}}
|
|
|
|
{{/admin-form-row}}
|
|
|
|
|
|
|
|
{{#admin-form-row}}
|
|
|
|
{{d-button action="save" class="btn-primary" icon="check" label="admin.user_fields.save"}}
|
|
|
|
{{d-button action="cancel" class="btn-danger" icon="times" label="admin.user_fields.cancel"}}
|
|
|
|
{{/admin-form-row}}
|
2015-07-10 12:28:56 -04:00
|
|
|
{{else}}
|
|
|
|
<div class="row">
|
2015-07-30 14:52:53 -04:00
|
|
|
<div class='form-display'>
|
|
|
|
<strong>{{userField.name}}</strong>
|
|
|
|
<br/>
|
|
|
|
{{{userField.description}}}
|
|
|
|
</div>
|
2015-07-10 12:28:56 -04:00
|
|
|
<div class='form-display'>{{fieldName}}</div>
|
|
|
|
<div class='form-element controls'>
|
|
|
|
{{d-button action="edit" class="btn-default" icon="pencil" label="admin.user_fields.edit"}}
|
|
|
|
{{d-button action="destroy" class="btn-danger" icon="trash-o" label="admin.user_fields.delete"}}
|
2015-07-30 14:52:53 -04:00
|
|
|
{{d-button action="moveUp" icon="arrow-up" disabled=cantMoveUp}}
|
|
|
|
{{d-button action="moveDown" icon="arrow-down" disabled=cantMoveDown}}
|
2015-07-10 12:28:56 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">{{flags}}</div>
|
|
|
|
{{/if}}
|
|
|
|
<div class='clearfix'></div>
|