2017-10-07 04:27:38 +02:00
|
|
|
<div class="setting">
|
|
|
|
<div class="setting-label">
|
2017-10-13 15:02:34 +02:00
|
|
|
<h3>{{i18n 'admin.wizard.id'}}</h3>
|
2017-10-07 04:27:38 +02:00
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
2017-10-13 15:02:34 +02:00
|
|
|
{{input name="id" value=field.id placeholderKey="admin.wizard.id_placeholder" disabled=existingId}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="setting">
|
|
|
|
<div class="setting-label">
|
|
|
|
<h3>{{i18n 'admin.wizard.key'}}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
|
|
|
{{input name="key" value=field.key placeholderKey="admin.wizard.key_placeholder"}}
|
2017-10-07 04:27:38 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-10-06 04:59:02 +02:00
|
|
|
<div class="setting">
|
|
|
|
<div class="setting-label">
|
|
|
|
<h3>{{i18n 'admin.wizard.field.label'}}</h3>
|
2017-09-23 04:34:07 +02:00
|
|
|
</div>
|
2017-10-06 04:59:02 +02:00
|
|
|
<div class="setting-value">
|
2017-10-13 15:02:34 +02:00
|
|
|
{{input name="label" value=field.label placeholder=(i18n "admin.wizard.custom_text_placeholder")}}
|
2017-09-23 04:34:07 +02:00
|
|
|
</div>
|
2017-10-06 04:59:02 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="setting">
|
|
|
|
<div class="setting-label">
|
|
|
|
<h3>{{i18n 'admin.wizard.field.description'}}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
2017-10-13 15:02:34 +02:00
|
|
|
{{textarea name="description" value=field.description placeholder=(i18n "admin.wizard.custom_text_placeholder")}}
|
2017-10-06 04:59:02 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="setting">
|
|
|
|
<div class="setting-label">
|
2017-10-13 15:02:34 +02:00
|
|
|
<h3>{{i18n 'admin.wizard.type'}}</h3>
|
2017-10-06 04:59:02 +02:00
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
2017-10-05 02:36:46 +02:00
|
|
|
{{combo-box value=field.type content=types}}
|
2017-09-23 04:34:07 +02:00
|
|
|
</div>
|
2017-10-06 04:59:02 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="setting">
|
|
|
|
<div class="setting-label">
|
|
|
|
<h3>{{i18n 'admin.wizard.field.required'}}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
2017-09-23 04:34:07 +02:00
|
|
|
{{input type='checkbox' checked=field.required}}
|
2017-10-06 04:59:02 +02:00
|
|
|
<span>{{i18n 'admin.wizard.field.required_label'}}</span>
|
2017-09-23 04:34:07 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-10-06 04:59:02 +02:00
|
|
|
|
2017-10-13 15:02:34 +02:00
|
|
|
{{#if isInput}}
|
|
|
|
<div class="setting">
|
|
|
|
<div class="setting-label">
|
|
|
|
<h3>{{i18n 'admin.wizard.field.min_length'}}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
|
|
|
{{input type="number" name="min_length" value=field.min_length placeholder=(i18n 'admin.wizard.field.min_length_placeholder')}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2017-10-06 04:59:02 +02:00
|
|
|
{{#if isDropdown}}
|
|
|
|
<div class="wizard-dropdown-choices">
|
2017-10-13 15:02:34 +02:00
|
|
|
<div class="wizard-header medium">
|
2017-10-06 04:59:02 +02:00
|
|
|
{{i18n 'admin.wizard.field.choices_label'}}
|
|
|
|
</div>
|
2017-10-13 15:02:34 +02:00
|
|
|
<div class="setting">
|
|
|
|
<div class="wizard-header small">
|
|
|
|
{{i18n 'admin.wizard.field.choices_translation'}}
|
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
|
|
|
{{input name="key" value=field.choices_key placeholderKey="admin.wizard.key_placeholder"}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="setting full">
|
|
|
|
<div class="wizard-header small">
|
|
|
|
{{i18n 'admin.wizard.field.choices_preset.label'}}
|
|
|
|
</div>
|
|
|
|
{{combo-box value=field.choices_preset content=presetChoices none='admin.wizard.field.choices_preset.none'}}
|
|
|
|
<label>{{i18n 'admin.wizard.field.choices_preset.filter'}}</label>
|
|
|
|
{{#each presetFilters as |f|}}
|
|
|
|
<span class='custom-input'>
|
|
|
|
{{input type="text" value=f.key placeholder=(i18n 'admin.wizard.field.choices_preset.key')}}
|
|
|
|
{{input type="text" value=f.value placeholder=(i18n 'admin.wizard.field.choices_preset.value')}}
|
|
|
|
</span>
|
|
|
|
{{d-button action='removeFilter' actionParam=f icon='times'}}
|
|
|
|
{{/each}}
|
|
|
|
<div>{{d-button action='addFilter' label='admin.wizard.add' icon='plus'}}</div>
|
|
|
|
</div>
|
|
|
|
<div class="setting full">
|
|
|
|
<div class="wizard-header small">
|
|
|
|
{{i18n 'admin.wizard.field.choices_custom'}}
|
|
|
|
</div>
|
|
|
|
{{#each dropdownChoices as |c|}}
|
|
|
|
<span class='custom-input'>
|
|
|
|
{{input type='text' value=c.value placeholder=(i18n 'admin.wizard.field.choice.value')}}
|
|
|
|
{{input type='text' value=c.label placeholder=(i18n 'admin.wizard.field.choice.label')}}
|
|
|
|
</span>
|
|
|
|
{{d-button action='removeChoice' actionParam=c icon='times'}}
|
|
|
|
{{/each}}
|
|
|
|
<div>{{d-button action='addChoice' label='admin.wizard.add' icon='plus'}}</div>
|
|
|
|
</div>
|
2017-10-06 04:59:02 +02:00
|
|
|
</div>
|
|
|
|
{{/if}}
|