2024-11-22 16:45:50 +01:00
|
|
|
{{#if this.wizard}}
|
2020-03-31 10:30:53 +02:00
|
|
|
<div class="wizard-header large">
|
2023-04-03 04:28:06 +02:00
|
|
|
<Input
|
|
|
|
@value={{this.wizard.name}}
|
2020-04-01 07:03:26 +02:00
|
|
|
name="name"
|
2023-04-03 04:28:06 +02:00
|
|
|
placeholder={{i18n "admin.wizard.name_placeholder"}}
|
|
|
|
/>
|
2021-04-12 16:19:53 +02:00
|
|
|
|
2020-04-01 07:03:26 +02:00
|
|
|
<div class="wizard-url">
|
2024-11-22 16:45:50 +01:00
|
|
|
{{#if this.wizard.name}}
|
|
|
|
{{#if this.copiedUrl}}
|
2023-07-10 08:55:54 +02:00
|
|
|
{{d-button
|
|
|
|
class="btn-hover pull-right"
|
|
|
|
icon="copy"
|
|
|
|
label="ip_lookup.copied"
|
|
|
|
}}
|
2020-04-11 08:22:12 +02:00
|
|
|
{{else}}
|
2023-07-10 08:55:54 +02:00
|
|
|
{{d-button
|
|
|
|
action=(action "copyUrl")
|
|
|
|
class="pull-right no-text"
|
|
|
|
icon="copy"
|
|
|
|
}}
|
2020-04-11 08:22:12 +02:00
|
|
|
{{/if}}
|
2023-07-10 08:55:54 +02:00
|
|
|
<a
|
2024-11-22 16:45:50 +01:00
|
|
|
href={{this.wizardUrl}}
|
2023-07-10 08:55:54 +02:00
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
2024-11-22 16:45:50 +01:00
|
|
|
>{{this.wizardUrl}}</a>
|
2020-04-01 07:03:26 +02:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2020-03-31 10:30:53 +02:00
|
|
|
</div>
|
2020-04-13 14:17:22 +02:00
|
|
|
|
2021-04-12 16:19:53 +02:00
|
|
|
<div class="wizard-basic-details">
|
2020-03-29 09:49:33 +02:00
|
|
|
<div class="setting">
|
|
|
|
<div class="setting-label">
|
2021-04-12 16:19:53 +02:00
|
|
|
<label>{{i18n "admin.wizard.background"}}</label>
|
2020-03-29 09:49:33 +02:00
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
2023-04-03 04:28:06 +02:00
|
|
|
<Input
|
|
|
|
@value={{this.wizard.background}}
|
2020-03-29 09:49:33 +02:00
|
|
|
name="background"
|
2023-04-03 04:28:06 +02:00
|
|
|
placeholder={{i18n "admin.wizard.background_placeholder"}}
|
|
|
|
class="small"
|
|
|
|
/>
|
2020-03-29 09:49:33 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-12 16:19:53 +02:00
|
|
|
|
2020-03-31 10:30:53 +02:00
|
|
|
<div class="setting">
|
|
|
|
<div class="setting-label">
|
2021-04-12 16:19:53 +02:00
|
|
|
<label>{{i18n "admin.wizard.theme_id"}}</label>
|
2020-03-31 10:30:53 +02:00
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
|
|
|
{{combo-box
|
2024-11-22 16:45:50 +01:00
|
|
|
content=this.themes
|
2021-04-12 16:19:53 +02:00
|
|
|
valueProperty="id"
|
2024-11-22 16:45:50 +01:00
|
|
|
value=this.wizard.theme_id
|
|
|
|
onChange=(action (mut this.wizard.theme_id))
|
2023-07-10 08:55:54 +02:00
|
|
|
options=(hash none="admin.wizard.no_theme")
|
|
|
|
}}
|
2020-03-31 10:30:53 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-03-30 08:16:03 +02:00
|
|
|
</div>
|
2020-04-13 14:17:22 +02:00
|
|
|
|
2020-03-30 08:16:03 +02:00
|
|
|
<div class="wizard-header medium">
|
2021-04-12 16:19:53 +02:00
|
|
|
{{i18n "admin.wizard.label"}}
|
2020-03-30 08:16:03 +02:00
|
|
|
</div>
|
2020-04-13 14:17:22 +02:00
|
|
|
|
2020-03-30 08:16:03 +02:00
|
|
|
<div class="wizard-settings">
|
2020-03-29 09:49:33 +02:00
|
|
|
<div class="setting">
|
|
|
|
<div class="setting-label">
|
2022-10-26 09:40:02 +02:00
|
|
|
<label>{{i18n "admin.wizard.save_submissions"}}</label>
|
2020-03-29 09:49:33 +02:00
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
2023-07-10 08:55:54 +02:00
|
|
|
<Input @type="checkbox" @checked={{this.wizard.save_submissions}} />
|
2022-10-26 09:40:02 +02:00
|
|
|
<span>{{i18n "admin.wizard.save_submissions_label"}}</span>
|
2020-03-29 09:49:33 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="setting">
|
|
|
|
<div class="setting-label">
|
2022-10-26 09:40:02 +02:00
|
|
|
<label>{{i18n "admin.wizard.multiple_submissions"}}</label>
|
2020-03-29 09:49:33 +02:00
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
2023-07-10 08:55:54 +02:00
|
|
|
<Input @type="checkbox" @checked={{this.wizard.multiple_submissions}} />
|
2022-10-26 09:40:02 +02:00
|
|
|
<span>{{i18n "admin.wizard.multiple_submissions_label"}}</span>
|
2020-03-29 09:49:33 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-12 16:19:53 +02:00
|
|
|
|
2020-03-29 09:49:33 +02:00
|
|
|
<div class="setting">
|
|
|
|
<div class="setting-label">
|
2022-10-26 09:40:02 +02:00
|
|
|
<label>{{i18n "admin.wizard.after_signup"}}</label>
|
2020-03-29 09:49:33 +02:00
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
2023-07-10 08:55:54 +02:00
|
|
|
<Input @type="checkbox" @checked={{this.wizard.after_signup}} />
|
2022-10-26 09:40:02 +02:00
|
|
|
<span>{{i18n "admin.wizard.after_signup_label"}}</span>
|
2020-03-29 09:49:33 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="setting">
|
|
|
|
<div class="setting-label">
|
2021-04-12 16:19:53 +02:00
|
|
|
<label>{{i18n "admin.wizard.prompt_completion"}}</label>
|
2020-03-29 09:49:33 +02:00
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
2023-07-10 08:55:54 +02:00
|
|
|
<Input @type="checkbox" @checked={{this.wizard.prompt_completion}} />
|
2021-04-12 16:19:53 +02:00
|
|
|
<span>{{i18n "admin.wizard.prompt_completion_label"}}</span>
|
2020-03-29 09:49:33 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-12 16:19:53 +02:00
|
|
|
|
2020-03-31 10:30:53 +02:00
|
|
|
<div class="setting full-inline">
|
2020-03-29 09:49:33 +02:00
|
|
|
<div class="setting-label">
|
2021-04-12 16:19:53 +02:00
|
|
|
<label>{{i18n "admin.wizard.after_time"}}</label>
|
2020-03-29 09:49:33 +02:00
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
2023-07-10 08:55:54 +02:00
|
|
|
<Input @type="checkbox" @checked={{this.wizard.after_time}} />
|
2021-04-12 16:19:53 +02:00
|
|
|
<span>{{i18n "admin.wizard.after_time_label"}}</span>
|
2020-03-31 10:30:53 +02:00
|
|
|
{{d-button
|
2022-03-29 21:15:09 +02:00
|
|
|
action=(action "setNextSessionScheduled")
|
2024-11-22 16:45:50 +01:00
|
|
|
translatedLabel=this.nextSessionScheduledLabel
|
2020-03-31 10:30:53 +02:00
|
|
|
class="btn-after-time"
|
2023-07-10 08:55:54 +02:00
|
|
|
icon="far-calendar"
|
|
|
|
}}
|
2020-03-29 09:49:33 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-04-12 16:19:53 +02:00
|
|
|
|
2022-03-25 12:18:54 +01:00
|
|
|
{{#wizard-subscription-container}}
|
2021-09-24 11:58:42 +02:00
|
|
|
<div class="setting">
|
2021-09-14 05:33:16 +02:00
|
|
|
<div class="setting-label">
|
2022-10-26 09:40:02 +02:00
|
|
|
<label>{{i18n "admin.wizard.required"}}</label>
|
2021-09-14 05:33:16 +02:00
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
2023-07-10 08:55:54 +02:00
|
|
|
<Input @type="checkbox" @checked={{this.wizard.required}} />
|
2022-10-26 09:40:02 +02:00
|
|
|
<span>{{i18n "admin.wizard.required_label"}}</span>
|
2021-09-14 05:33:16 +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">
|
2021-09-14 05:33:16 +02:00
|
|
|
<div class="setting-label">
|
|
|
|
<label>{{i18n "admin.wizard.restart_on_revisit"}}</label>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
2023-07-10 08:55:54 +02:00
|
|
|
<Input @type="checkbox" @checked={{this.wizard.restart_on_revisit}} />
|
2021-09-14 05:33:16 +02:00
|
|
|
<span>{{i18n "admin.wizard.restart_on_revisit_label"}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-10-26 09:40:02 +02:00
|
|
|
|
|
|
|
<div class="setting full field-mapper-setting">
|
|
|
|
<div class="setting-label">
|
|
|
|
<label>{{i18n "admin.wizard.permitted"}}</label>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
|
|
|
{{wizard-mapper
|
2024-11-22 16:45:50 +01:00
|
|
|
inputs=this.wizard.permitted
|
2022-10-26 09:40:02 +02:00
|
|
|
options=(hash
|
|
|
|
context="wizard"
|
|
|
|
inputTypes="assignment,validation"
|
|
|
|
groupSelection="output"
|
2023-02-07 12:46:17 +01:00
|
|
|
guestGroup=true
|
2022-10-26 09:40:02 +02:00
|
|
|
userFieldSelection="key"
|
|
|
|
textSelection="value"
|
|
|
|
inputConnector="and"
|
2023-07-10 08:55:54 +02:00
|
|
|
)
|
|
|
|
}}
|
2022-10-26 09:40:02 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-10-17 16:15:25 +02:00
|
|
|
|
|
|
|
<div class="setting full">
|
|
|
|
<div class="setting-label">
|
|
|
|
<label>{{i18n "admin.wizard.after_time_groups.label"}}</label>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value">
|
|
|
|
<GroupChooser
|
|
|
|
@content={{this.site.groups}}
|
|
|
|
@value={{this.afterTimeGroupIds}}
|
|
|
|
@onChange={{this.setAfterTimeGroups}}
|
|
|
|
/>
|
|
|
|
<div class="setting-gutter">
|
|
|
|
{{i18n "admin.wizard.after_time_groups.description"}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-25 12:18:54 +01:00
|
|
|
{{/wizard-subscription-container}}
|
2017-10-06 04:59:02 +02:00
|
|
|
</div>
|
|
|
|
|
2024-11-22 16:45:50 +01:00
|
|
|
{{wizard-links itemType="step" current=this.currentStep items=this.wizard.steps}}
|
2020-04-13 14:17:22 +02:00
|
|
|
|
2024-11-22 16:45:50 +01:00
|
|
|
{{#if this.currentStep}}
|
2020-04-06 03:54:16 +02:00
|
|
|
{{wizard-custom-step
|
2024-11-22 16:45:50 +01:00
|
|
|
step=this.currentStep
|
|
|
|
wizard=this.wizard
|
|
|
|
currentField=this.currentField
|
|
|
|
wizardFields=this.wizardFields
|
|
|
|
fieldTypes=this.filteredFieldTypes
|
|
|
|
subscribed=this.subscribed
|
2023-07-10 08:55:54 +02:00
|
|
|
}}
|
2020-04-08 04:52:07 +02:00
|
|
|
{{/if}}
|
2020-04-13 14:17:22 +02:00
|
|
|
|
2020-04-08 09:59:54 +02:00
|
|
|
{{wizard-links
|
2020-04-10 09:57:49 +02:00
|
|
|
itemType="action"
|
2024-11-22 16:45:50 +01:00
|
|
|
current=this.currentAction
|
|
|
|
items=this.wizard.actions
|
2023-07-10 08:55:54 +02:00
|
|
|
generateLabels=true
|
|
|
|
}}
|
2020-04-08 04:52:07 +02:00
|
|
|
|
2024-11-22 16:45:50 +01:00
|
|
|
{{#each this.wizard.actions as |wizardAction|}}
|
2020-04-08 04:52:07 +02:00
|
|
|
{{wizard-custom-action
|
2022-03-30 11:01:36 +02:00
|
|
|
action=wizardAction
|
2024-11-22 16:45:50 +01:00
|
|
|
currentActionId=this.currentAction.id
|
|
|
|
wizard=this.wizard
|
|
|
|
apis=this.apis
|
2022-04-04 12:14:00 +02:00
|
|
|
removeAction="removeAction"
|
2024-11-22 16:45:50 +01:00
|
|
|
wizardFields=this.wizardFields
|
|
|
|
fieldTypes=this.filteredFieldTypes
|
2023-07-10 08:55:54 +02:00
|
|
|
}}
|
2020-04-20 11:41:13 +02:00
|
|
|
{{/each}}
|
2017-09-23 04:34:07 +02:00
|
|
|
|
2021-04-12 16:19:53 +02:00
|
|
|
<div class="admin-wizard-buttons">
|
2023-07-10 08:55:54 +02:00
|
|
|
<button
|
|
|
|
{{action "save"}}
|
2024-11-22 16:45:50 +01:00
|
|
|
disabled={{this.disableSave}}
|
2023-07-10 08:55:54 +02:00
|
|
|
class="btn btn-primary"
|
|
|
|
type="button"
|
|
|
|
>
|
2021-04-12 16:19:53 +02:00
|
|
|
{{i18n "admin.wizard.save"}}
|
2020-03-29 09:49:33 +02:00
|
|
|
</button>
|
2021-04-12 16:19:53 +02:00
|
|
|
|
2024-11-22 16:45:50 +01:00
|
|
|
{{#unless this.creating}}
|
2021-04-12 16:19:53 +02:00
|
|
|
<button {{action "remove"}} class="btn btn-danger remove" type="button">
|
|
|
|
{{d-icon "far-trash-alt"}}{{i18n "admin.wizard.remove"}}
|
2020-03-29 09:49:33 +02:00
|
|
|
</button>
|
2017-09-23 04:34:07 +02:00
|
|
|
{{/unless}}
|
2021-04-12 16:19:53 +02:00
|
|
|
|
2024-11-22 16:45:50 +01:00
|
|
|
{{conditional-loading-spinner condition=this.saving size="small"}}
|
2021-04-12 16:19:53 +02:00
|
|
|
|
2024-11-22 16:45:50 +01:00
|
|
|
{{#if this.error}}
|
|
|
|
<span class="error">{{d-icon "times"}}{{this.error}}</span>
|
2017-10-13 15:02:34 +02:00
|
|
|
{{/if}}
|
2017-09-23 04:34:07 +02:00
|
|
|
</div>
|
2023-07-10 08:55:54 +02:00
|
|
|
{{/if}}
|