182 Zeilen
4,7 KiB
Handlebars
182 Zeilen
4,7 KiB
Handlebars
<div class="setting">
|
|
<div class="setting-label">
|
|
<h3>{{i18n 'admin.wizard.id'}}</h3>
|
|
</div>
|
|
<div class="setting-value">
|
|
{{input name="id" value=field.id placeholderKey="admin.wizard.id_placeholder" disabled=disableId}}
|
|
</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"}}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="setting">
|
|
<div class="setting-label">
|
|
<h3>{{i18n 'admin.wizard.field.label'}}</h3>
|
|
</div>
|
|
<div class="setting-value">
|
|
{{input name="label" value=field.label placeholder=(i18n "admin.wizard.custom_text_placeholder")}}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="setting">
|
|
<div class="setting-label">
|
|
<h3>{{i18n 'admin.wizard.field.description'}}</h3>
|
|
</div>
|
|
<div class="setting-value">
|
|
{{textarea name="description" value=field.description placeholder=(i18n "admin.wizard.custom_text_placeholder")}}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="setting">
|
|
<div class="setting-label">
|
|
<h3>{{i18n 'admin.wizard.field.image'}}</h3>
|
|
</div>
|
|
<div class="setting-value">
|
|
{{input name="image" value=field.image placeholderKey="admin.wizard.field.image_placeholder"}}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="setting">
|
|
<div class="setting-label">
|
|
<h3>{{i18n 'admin.wizard.type'}}</h3>
|
|
</div>
|
|
<div class="setting-value">
|
|
{{combo-box
|
|
value=field.type
|
|
content=types
|
|
options=(hash
|
|
none="admin.wizard.field.type"
|
|
)}}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="setting">
|
|
<div class="setting-label">
|
|
<h3>{{i18n 'admin.wizard.field.required'}}</h3>
|
|
</div>
|
|
<div class="setting-value">
|
|
{{input type='checkbox' checked=field.required}}
|
|
<span>{{i18n 'admin.wizard.field.required_label'}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
{{#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}}
|
|
|
|
{{#if isDropdown}}
|
|
<div class="wizard-dropdown-choices">
|
|
<div class="wizard-header small underline">
|
|
{{i18n 'admin.wizard.field.choices_label'}}
|
|
</div>
|
|
|
|
{{combo-box
|
|
value=field.choices_type
|
|
content=choicesTypes
|
|
options=(hash
|
|
none="admin.wizard.field.choices_type"
|
|
)}}
|
|
|
|
{{#if choicesTranslation}}
|
|
<div class="wizard-header small">
|
|
{{i18n 'admin.wizard.field.choices_translation'}}
|
|
</div>
|
|
{{input name="key" value=field.choices_key placeholderKey="admin.wizard.key_placeholder"}}
|
|
{{/if}}
|
|
|
|
{{#if choicesCustom}}
|
|
<div class="wizard-header small">
|
|
{{i18n 'admin.wizard.field.choices_custom'}}
|
|
</div>
|
|
{{wizard-field-mapper
|
|
inputs=field.choices
|
|
userFields=userFields
|
|
wizardFields=wizardFields}}
|
|
{{/if}}
|
|
|
|
<div class="wizard-header small">
|
|
{{i18n 'admin.wizard.field.dropdown_none'}}
|
|
</div>
|
|
{{input name="dropdown_none" value=field.dropdown_none placeholder=(i18n 'admin.wizard.field.dropdown_none_placeholder')}}
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{#if isUpload}}
|
|
<div class="setting">
|
|
<div class="setting-label">
|
|
<h3>{{i18n 'admin.wizard.field.file_types'}}</h3>
|
|
</div>
|
|
<div class="setting-value">
|
|
{{input value=field.file_types}}
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{#if isCategoryOrTag}}
|
|
<div class="setting">
|
|
<div class="setting-label">
|
|
<h3>{{i18n 'admin.wizard.field.limit'}}</h3>
|
|
</div>
|
|
<div class="setting-value">
|
|
{{input type="number" value=field.limit}}
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
|
|
{{#if isCategory}}
|
|
<div class="setting">
|
|
<div class="setting-label">
|
|
<h3>{{i18n 'admin.wizard.field.property'}}</h3>
|
|
</div>
|
|
<div class="setting-value">
|
|
{{combo-box
|
|
content=categoryPropertyTypes
|
|
value=field.property
|
|
options=(hash
|
|
none='admin.wizard.select_property'
|
|
)}}
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
|
|
<div class="setting full custom-inputs">
|
|
<div class="setting-label">
|
|
<h3>{{i18n 'admin.wizard.field.prefill'}}</h3>
|
|
</div>
|
|
<div class="setting-value">
|
|
{{wizard-field-mapper
|
|
inputs=field.prefill
|
|
userFields=userFields
|
|
wizardFields=wizardFields
|
|
options=prefillOptions}}
|
|
</div>
|
|
</div>
|
|
|
|
{{#if canFilter}}
|
|
<div class="setting full custom-inputs">
|
|
<div class="setting-label">
|
|
<h3>{{i18n 'admin.wizard.field.filter'}}</h3>
|
|
</div>
|
|
<div class="setting-value">
|
|
{{wizard-field-mapper
|
|
inputs=field.filters
|
|
userFields=userFields
|
|
wizardFields=wizardFields
|
|
options=filterOptions}}
|
|
</div>
|
|
</div>
|
|
{{/if}}
|