1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/discourse/templates/components/realtime-validation-settings.hbs
2021-01-30 23:16:04 +05:30

15 Zeilen
601 B
Handlebars

<div>
<label>{{i18n 'admin.wizard.field.validations.header'}}</label>
</div>
{{#each-in field.validations as |name props|}}
<span class="setting-title">
{{i18n (concat 'admin.wizard.field.validations.' name)}}
{{input type="checkbox" checked=props.status }}
</span>
<div>
{{radio-button name=(concat name field.id) value="above" selection=props.position}} {{i18n 'admin.wizard.field.validations.above'}}
</div>
<div>
{{radio-button name=(concat name field.id) value="below" selection=props.position}} {{i18n 'admin.wizard.field.validations.below'}}
</div>
{{/each-in}}