{{i18n 'admin.wizard.id'}}

{{input name="id" value=field.id placeholderKey="admin.wizard.id_placeholder" disabled=existingId}}

{{i18n 'admin.wizard.key'}}

{{input name="key" value=field.key placeholderKey="admin.wizard.key_placeholder"}}

{{i18n 'admin.wizard.field.label'}}

{{input name="label" value=field.label placeholder=(i18n "admin.wizard.custom_text_placeholder")}}

{{i18n 'admin.wizard.field.description'}}

{{textarea name="description" value=field.description placeholder=(i18n "admin.wizard.custom_text_placeholder")}}

{{i18n 'admin.wizard.type'}}

{{combo-box value=field.type content=types}}

{{i18n 'admin.wizard.field.required'}}

{{input type='checkbox' checked=field.required}} {{i18n 'admin.wizard.field.required_label'}}
{{#if isInput}}

{{i18n 'admin.wizard.field.min_length'}}

{{input type="number" name="min_length" value=field.min_length placeholder=(i18n 'admin.wizard.field.min_length_placeholder')}}
{{/if}} {{#if isDropdown}}
{{i18n 'admin.wizard.field.choices_label'}}
{{i18n 'admin.wizard.field.choices_translation'}}
{{input name="key" value=field.choices_key placeholderKey="admin.wizard.key_placeholder"}}
{{i18n 'admin.wizard.field.choices_preset.label'}}
{{combo-box value=field.choices_preset content=presetChoices none='admin.wizard.field.choices_preset.none'}} {{#each presetFilters as |f|}} {{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')}} {{d-button action='removeFilter' actionParam=f icon='times'}} {{/each}}
{{d-button action='addFilter' label='admin.wizard.add' icon='plus'}}
{{i18n 'admin.wizard.field.choices_custom'}}
{{#each dropdownChoices as |c|}} {{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')}} {{d-button action='removeChoice' actionParam=c icon='times'}} {{/each}}
{{d-button action='addChoice' label='admin.wizard.add' icon='plus'}}
{{/if}}