0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-10 12:22:54 +01:00
discourse-custom-wizard/assets/javascripts/discourse/templates/components/wizard-custom-field.hbs

61 Zeilen
1,6 KiB
Handlebars

2017-10-07 04:27:38 +02:00
<div class="setting">
<div class="setting-label">
<h3>{{i18n 'admin.wizard.translation'}}</h3>
</div>
<div class="setting-value">
{{input name="translation_key" value=field.translation_key placeholderKey="admin.wizard.field.translation_placeholder"}}
</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">
{{input name="label" value=field.label}}
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">
{{textarea name="description" value=field.description}}
</div>
</div>
<div class="setting">
<div class="setting-label">
<h3>{{i18n 'admin.wizard.field.type'}}</h3>
</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
{{#if isDropdown}}
<div class="wizard-dropdown-choices">
<div class="wizard-header small">
{{i18n 'admin.wizard.field.choices_label'}}
</div>
{{#each dropdownChoices as |c|}}
<span class='wizard-dropdown-choice'>
{{input type='text' value=c.label}}
</span>
{{d-button action='removeChoice' actionParam=c icon='times'}}
{{/each}}
{{d-button action='addChoice' label='admin.wizard.add' icon='plus'}}
</div>
{{/if}}