2021-04-12 16:19:53 +02:00
|
|
|
<div class="setting">
|
|
|
|
<div class="setting-label">
|
|
|
|
<label>{{i18n "admin.wizard.step.title"}}</label>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
|
|
|
{{input
|
|
|
|
name="title"
|
|
|
|
value=step.title}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="setting full">
|
|
|
|
<div class="setting-label">
|
|
|
|
<label>{{i18n "admin.wizard.step.banner"}}</label>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
2021-12-21 06:15:11 +01:00
|
|
|
{{uppy-image-uploader
|
2021-04-12 16:19:53 +02:00
|
|
|
imageUrl=step.banner
|
|
|
|
onUploadDone=(action "bannerUploadDone")
|
|
|
|
onUploadDeleted=(action "bannerUploadDeleted")
|
2022-08-02 14:54:57 +02:00
|
|
|
type="wizard-step-banner"
|
2021-12-21 06:15:11 +01:00
|
|
|
class="no-repeat contain-image"
|
|
|
|
id=(concat "wizard-step-" step.id "-banner-upload")}}
|
2021-04-12 16:19:53 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="setting full">
|
|
|
|
<div class="setting-label">
|
|
|
|
<label>{{i18n "admin.wizard.step.description"}}</label>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
|
|
|
{{wizard-text-editor
|
|
|
|
value=step.raw_description}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-03-25 12:18:54 +01:00
|
|
|
{{#wizard-subscription-container}}
|
2021-09-24 11:58:42 +02:00
|
|
|
<div class="setting full field-mapper-setting">
|
2021-08-10 11:18:49 +02:00
|
|
|
<div class="setting-label">
|
|
|
|
<label>{{i18n "admin.wizard.condition"}}</label>
|
|
|
|
</div>
|
2021-04-12 16:19:53 +02:00
|
|
|
|
2021-08-10 11:18:49 +02:00
|
|
|
<div class="setting-value">
|
|
|
|
{{wizard-mapper
|
|
|
|
inputs=step.condition
|
|
|
|
options=stepConditionOptions}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-20 19:58:19 +02:00
|
|
|
|
2021-08-10 11:18:49 +02:00
|
|
|
<div class="setting full">
|
|
|
|
<div class="setting-label"></div>
|
|
|
|
<div class="setting-value force-final">
|
|
|
|
<h4>{{i18n "admin.wizard.step.force_final.label"}}</h4>
|
|
|
|
{{input type="checkbox" checked=step.force_final}}
|
|
|
|
<span>{{i18n "admin.wizard.step.force_final.description"}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-20 19:58:19 +02:00
|
|
|
|
2022-03-25 12:18:54 +01:00
|
|
|
<div class="setting full field-mapper-setting">
|
2021-09-03 10:46:32 +02:00
|
|
|
<div class="setting-label">
|
|
|
|
<label>{{i18n "admin.wizard.step.required_data.label"}}</label>
|
|
|
|
</div>
|
2022-03-25 12:18:54 +01:00
|
|
|
|
2021-09-03 10:46:32 +02:00
|
|
|
<div class="setting-value">
|
|
|
|
{{wizard-mapper
|
|
|
|
inputs=step.required_data
|
|
|
|
options=(hash
|
|
|
|
inputTypes="validation"
|
|
|
|
inputConnector="and"
|
|
|
|
wizardFieldSelection="value"
|
|
|
|
userFieldSelection="value"
|
|
|
|
keyPlaceholder="admin.wizard.submission_key"
|
|
|
|
context="step"
|
|
|
|
)}}
|
|
|
|
{{#if step.required_data}}
|
|
|
|
<div class="required-data-message">
|
|
|
|
<div class="label">
|
|
|
|
{{i18n "admin.wizard.step.required_data.not_permitted_message"}}
|
2021-04-12 16:19:53 +02:00
|
|
|
</div>
|
2021-09-03 10:46:32 +02:00
|
|
|
{{input value=step.required_data_message}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2021-04-12 16:19:53 +02:00
|
|
|
</div>
|
2021-09-03 10:46:32 +02:00
|
|
|
</div>
|
2021-04-12 16:19:53 +02:00
|
|
|
|
2021-09-24 11:58:42 +02:00
|
|
|
<div class="setting full field-mapper-setting">
|
2021-09-03 10:46:32 +02:00
|
|
|
<div class="setting-label">
|
|
|
|
<label>{{i18n "admin.wizard.step.permitted_params.label"}}</label>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
|
|
|
{{wizard-mapper
|
|
|
|
inputs=step.permitted_params
|
|
|
|
options=(hash
|
|
|
|
pairConnector="set"
|
|
|
|
inputTypes="association"
|
|
|
|
keyPlaceholder="admin.wizard.param_key"
|
|
|
|
valuePlaceholder="admin.wizard.submission_key"
|
|
|
|
context="step"
|
|
|
|
)}}
|
2021-04-12 16:19:53 +02:00
|
|
|
</div>
|
2021-09-03 10:46:32 +02:00
|
|
|
</div>
|
2022-03-25 12:18:54 +01:00
|
|
|
{{/wizard-subscription-container}}
|
2021-04-12 16:19:53 +02:00
|
|
|
|
|
|
|
{{wizard-links
|
|
|
|
itemType="field"
|
|
|
|
current=currentField
|
|
|
|
items=step.fields
|
|
|
|
parentId=step.id}}
|
|
|
|
|
|
|
|
{{#each step.fields as |field|}}
|
|
|
|
{{wizard-custom-field
|
|
|
|
field=field
|
2021-04-20 19:58:19 +02:00
|
|
|
step=step
|
2021-04-12 16:19:53 +02:00
|
|
|
currentFieldId=currentField.id
|
|
|
|
fieldTypes=fieldTypes
|
|
|
|
removeField="removeField"
|
2021-08-10 11:00:42 +02:00
|
|
|
wizardFields=wizardFields
|
2021-09-24 11:58:42 +02:00
|
|
|
subscribed=subscribed}}
|
2021-04-20 19:58:19 +02:00
|
|
|
{{/each}}
|