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-step.hbs

57 Zeilen
1,7 KiB
Handlebars

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-17 09:18:53 +02:00
{{input name="id" value=step.id placeholderKey="admin.wizard.id_placeholder" disabled=disableId}}
2017-10-13 15:02:34 +02:00
</div>
</div>
<div class="setting">
<div class="setting-label">
<h3>{{i18n 'admin.wizard.key'}}</h3>
</div>
<div class="setting-value">
{{input name="key" value=step.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.step.title'}}</h3>
</div>
<div class="setting-value">
2017-10-13 15:02:34 +02:00
{{input name="title" value=step.title placeholderKey="admin.wizard.custom_text_placeholder"}}
2017-10-06 04:59:02 +02:00
</div>
2017-09-23 04:34:07 +02:00
</div>
2017-10-06 04:59:02 +02:00
<div class="setting">
<div class="setting-label">
<h3>{{i18n 'admin.wizard.step.banner'}}</h3>
</div>
<div class="setting-value">
{{input name="banner" value=step.banner placeholderKey="admin.wizard.step.banner_placeholder"}}
</div>
2017-09-23 04:34:07 +02:00
</div>
2017-10-06 04:59:02 +02:00
<div class="setting">
<div class="setting-label">
<h3>{{i18n 'admin.wizard.step.description'}}</h3>
</div>
<div class="setting-value">
2017-10-13 15:02:34 +02:00
{{textarea name="description" value=step.description placeholder=(i18n "admin.wizard.custom_text_placeholder")}}
2017-10-06 04:59:02 +02:00
</div>
2017-09-23 04:34:07 +02:00
</div>
2017-10-17 15:17:53 +02:00
{{wizard-links type="field" current=currentField items=step.fields}}
2017-10-06 04:59:02 +02:00
{{#if currentField}}
2017-10-30 07:24:51 +01:00
{{wizard-custom-field field=currentField types=wizard.fieldTypes removeField="removeField"}}
2017-10-06 04:59:02 +02:00
{{/if}}
2017-09-23 04:34:07 +02:00
2017-10-17 09:18:53 +02:00
{{wizard-links type="action" current=currentAction items=step.actions}}
2017-10-06 04:59:02 +02:00
{{#if currentAction}}
2017-10-30 07:24:51 +01:00
{{wizard-custom-action action=currentAction wizard=wizard removeAction="removeAction" currentStepId=step.id}}
2017-09-23 04:34:07 +02:00
{{/if}}
2017-10-30 07:24:51 +01:00
<label>{{i18n 'admin.wizard.action.available_fields'}}</label>