0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-27 03:20:27 +01:00
discourse-custom-wizard/assets/javascripts/discourse/templates/components/wizard-custom-action.hbs

794 Zeilen
22 KiB
Handlebars

2020-04-20 11:41:13 +02:00
{{#if showUndo}}
{{d-button
action="undoChanges"
icon=undoIcon
label=undoKey
class="undo-changes"}}
{{/if}}
2017-10-06 04:59:02 +02:00
<div class="setting">
<div class="setting-label">
2020-03-30 01:53:28 +02:00
<label>{{i18n "admin.wizard.type"}}</label>
2017-10-06 04:59:02 +02:00
</div>
2017-10-06 04:59:02 +02:00
<div class="setting-value">
2020-02-02 11:42:05 +01:00
{{combo-box
value=action.type
2020-04-08 04:52:07 +02:00
content=actionTypes
2020-04-20 11:41:13 +02:00
onChange=(action "changeType")
2020-03-22 07:47:56 +01:00
options=(hash
2020-04-20 13:40:32 +02:00
none="admin.wizard.select_type"
2020-03-22 07:47:56 +01:00
)}}
2017-10-06 04:59:02 +02:00
</div>
</div>
2020-04-08 04:52:07 +02:00
<div class="setting">
<div class="setting-label">
2020-04-08 09:59:54 +02:00
<label>{{i18n "admin.wizard.action.run_after.label"}}</label>
2020-04-08 04:52:07 +02:00
</div>
2020-04-08 04:52:07 +02:00
<div class="setting-value">
{{combo-box
value=action.run_after
content=runAfterContent
onChange=(action (mut action.run_after))}}
</div>
</div>
2020-04-20 13:40:32 +02:00
{{wizard-message
key=messageKey
url=messageUrl
component='action'}}
2019-08-27 08:05:24 +02:00
{{#if basicTopicFields}}
2020-03-31 08:29:59 +02:00
<div class="setting full field-mapper-setting">
2017-10-06 04:59:02 +02:00
<div class="setting-label">
2020-03-30 01:53:28 +02:00
<label>{{i18n "admin.wizard.action.title"}}</label>
2017-10-06 04:59:02 +02:00
</div>
2017-10-06 04:59:02 +02:00
<div class="setting-value">
2020-04-01 07:03:26 +02:00
{{wizard-mapper
2020-03-31 08:29:59 +02:00
inputs=action.title
2020-04-20 11:41:13 +02:00
property='title'
onUpdate=(action 'mappedFieldUpdated')
2020-03-22 07:47:56 +01:00
options=(hash
2020-04-05 03:37:09 +02:00
wizardFieldSelection=true
2020-04-02 10:21:03 +02:00
userFieldSelection='key,value'
2020-04-06 03:54:16 +02:00
context='action'
2020-03-22 07:47:56 +01:00
)}}
2017-10-06 04:59:02 +02:00
</div>
</div>
<div class="setting">
<div class="setting-label">
2020-03-30 01:53:28 +02:00
<label>{{i18n "admin.wizard.action.post"}}</label>
2017-10-06 04:59:02 +02:00
</div>
2020-03-29 09:49:33 +02:00
2017-10-06 04:59:02 +02:00
<div class="setting-value">
2020-02-02 11:42:05 +01:00
{{combo-box
value=action.post
2020-03-21 18:30:11 +01:00
content=wizardFields
2020-02-02 11:42:05 +01:00
nameProperty='label'
2020-03-29 09:49:33 +02:00
onChange=(action (mut action.post))
2020-03-22 07:47:56 +01:00
options=(hash
2020-04-05 03:37:09 +02:00
none='admin.wizard.selector.placeholder.wizard_field'
2020-04-15 02:46:44 +02:00
isDisabled=showPostBuilder
2020-03-22 07:47:56 +01:00
)}}
2020-03-29 09:49:33 +02:00
<div class="setting-gutter">
2020-04-15 03:23:41 +02:00
{{input type='checkbox' checked=action.post_builder}}
2017-11-24 05:32:15 +01:00
<span>{{i18n 'admin.wizard.action.post_builder.checkbox'}}</span>
</div>
2017-10-17 09:18:53 +02:00
</div>
</div>
2020-04-15 03:23:41 +02:00
{{#if action.post_builder}}
2017-11-24 05:32:15 +01:00
<div class="setting full">
<div class="setting-label">
2020-03-30 01:53:28 +02:00
<label>{{i18n 'admin.wizard.action.post_builder.label'}}</label>
2017-11-24 05:32:15 +01:00
</div>
2020-03-29 09:49:33 +02:00
2019-08-27 08:05:24 +02:00
<div class="setting-value editor">
2020-03-29 09:49:33 +02:00
{{wizard-text-editor
2020-03-21 18:30:11 +01:00
value=action.post_template
2020-03-29 09:49:33 +02:00
wizardFields=wizardFields}}
2017-11-24 05:32:15 +01:00
</div>
</div>
{{/if}}
2019-08-27 08:05:24 +02:00
{{/if}}
2017-11-24 05:32:15 +01:00
2019-08-27 08:05:24 +02:00
{{#if publicTopicFields}}
2020-03-31 08:29:59 +02:00
<div class="setting full field-mapper-setting">
2018-09-18 03:56:42 +02:00
<div class="setting-label">
2020-03-30 01:53:28 +02:00
<label>{{i18n "admin.wizard.action.create_topic.category"}}</label>
2018-09-18 03:56:42 +02:00
</div>
2018-09-18 03:56:42 +02:00
<div class="setting-value">
2020-04-01 07:03:26 +02:00
{{wizard-mapper
2020-03-31 08:29:59 +02:00
inputs=action.category
2020-04-20 11:41:13 +02:00
property='category'
onUpdate=(action 'mappedFieldUpdated')
2020-03-31 08:29:59 +02:00
options=(hash
2020-04-01 12:58:30 +02:00
textSelection='key,value'
2020-04-05 03:37:09 +02:00
wizardFieldSelection=true
2020-04-02 10:21:03 +02:00
userFieldSelection='key,value'
2020-04-01 12:58:30 +02:00
categorySelection='output'
outputDefaultSelection='category'
2020-04-06 03:54:16 +02:00
context='action'
2020-03-31 08:29:59 +02:00
)}}
2018-09-18 03:56:42 +02:00
</div>
</div>
2019-08-27 08:05:24 +02:00
2020-03-31 08:29:59 +02:00
<div class="setting full field-mapper-setting">
2017-10-06 04:59:02 +02:00
<div class="setting-label">
2020-03-30 01:53:28 +02:00
<label>{{i18n "admin.wizard.action.create_topic.tags"}}</label>
2017-10-06 04:59:02 +02:00
</div>
2017-10-06 04:59:02 +02:00
<div class="setting-value">
2020-04-01 07:03:26 +02:00
{{wizard-mapper
2020-03-31 08:29:59 +02:00
inputs=action.tags
2020-04-20 11:41:13 +02:00
property='tags'
onUpdate=(action 'mappedFieldUpdated')
2020-03-31 08:29:59 +02:00
options=(hash
tagSelection='output'
2020-04-10 09:57:49 +02:00
outputDefaultSelection='tag'
2020-04-08 04:52:07 +02:00
listSelection='output'
2020-04-05 03:37:09 +02:00
wizardFieldSelection=true
2020-04-02 10:21:03 +02:00
userFieldSelection='key,value'
2020-04-06 03:54:16 +02:00
context='action'
2020-03-31 08:29:59 +02:00
)}}
2017-10-06 04:59:02 +02:00
</div>
</div>
2020-07-20 06:26:11 +02:00
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.create_topic.visible"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.visible
property='visible'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
wizardFieldSelection=true
userFieldSelection=true
context='action'
)}}
</div>
</div>
2019-08-27 08:05:24 +02:00
{{/if}}
2017-10-17 09:18:53 +02:00
2020-04-02 07:21:57 +02:00
{{#if sendMessage}}
2020-03-31 08:29:59 +02:00
<div class="setting full field-mapper-setting">
2017-10-06 04:59:02 +02:00
<div class="setting-label">
2020-03-30 01:53:28 +02:00
<label>{{i18n "admin.wizard.action.send_message.recipient"}}</label>
2017-10-06 04:59:02 +02:00
</div>
2017-10-06 04:59:02 +02:00
<div class="setting-value">
2020-04-01 07:03:26 +02:00
{{wizard-mapper
2020-03-31 08:29:59 +02:00
inputs=action.recipient
2020-04-20 11:41:13 +02:00
property='recipient'
onUpdate=(action 'mappedFieldUpdated')
2020-03-31 08:29:59 +02:00
options=(hash
2020-04-01 07:03:26 +02:00
textSelection='value,output'
2020-04-05 03:37:09 +02:00
wizardFieldSelection=true
2020-04-02 10:21:03 +02:00
userFieldSelection='key,value'
2020-03-31 08:29:59 +02:00
groupSelection='key,value'
2020-04-02 10:21:03 +02:00
userSelection='output'
outputDefaultSelection='user'
2020-04-06 03:54:16 +02:00
context='action'
2020-03-31 08:29:59 +02:00
)}}
2020-03-29 09:49:33 +02:00
</div>
2017-10-22 05:37:58 +02:00
</div>
2017-09-23 04:34:07 +02:00
{{/if}}
2017-10-06 04:59:02 +02:00
2017-10-05 02:36:46 +02:00
{{#if updateProfile}}
2020-03-29 09:49:33 +02:00
<div class="setting full field-mapper-setting">
<div class="setting-label">
2020-04-20 14:26:34 +02:00
<label>{{i18n 'admin.wizard.action.update_profile.setting'}}</label>
2020-03-29 09:49:33 +02:00
</div>
2020-04-01 07:03:26 +02:00
{{wizard-mapper
2020-03-21 18:30:11 +01:00
inputs=action.profile_updates
2020-04-20 11:41:13 +02:00
property='profile_updates'
onUpdate=(action 'mappedFieldUpdated')
2020-03-21 18:30:11 +01:00
options=(hash
2020-04-07 15:33:11 +02:00
inputTypes='association'
2020-04-07 16:18:12 +02:00
textSelection='value'
2020-04-02 10:21:03 +02:00
userFieldSelection='key'
2020-04-05 03:37:09 +02:00
wizardFieldSelection='value'
2020-04-02 10:21:03 +02:00
keyDefaultSelection='userField'
2020-04-06 03:54:16 +02:00
context='action'
2020-03-21 18:30:11 +01:00
)}}
2017-10-06 04:59:02 +02:00
</div>
2017-09-23 04:34:07 +02:00
{{/if}}
2019-06-03 09:09:24 +02:00
{{#if sendToApi}}
<div class="setting">
<div class="setting-label">
2020-03-30 01:53:28 +02:00
<label>{{i18n "admin.wizard.action.send_to_api.api"}}</label>
2019-06-03 09:09:24 +02:00
</div>
2019-06-03 09:09:24 +02:00
<div class="setting-value">
2020-02-02 11:42:05 +01:00
{{combo-box
value=action.api
content=availableApis
2020-03-29 09:49:33 +02:00
onChange=(action (mut action.api))
2020-03-22 07:47:56 +01:00
options=(hash
2020-03-29 09:49:33 +02:00
isDisabled=action.custom_title_enabled
2020-03-22 07:47:56 +01:00
none='admin.wizard.action.send_to_api.select_an_api'
)}}
2019-06-03 09:09:24 +02:00
</div>
</div>
<div class="setting">
<div class="setting-label">
2020-03-30 01:53:28 +02:00
<label>{{i18n "admin.wizard.action.send_to_api.endpoint"}}</label>
2019-06-03 09:09:24 +02:00
</div>
2019-06-03 09:09:24 +02:00
<div class="setting-value">
2020-02-02 11:42:05 +01:00
{{combo-box
value=action.api_endpoint
content=availableEndpoints
2020-03-29 09:49:33 +02:00
onChange=(action (mut action.api_endpoint))
2020-03-22 07:47:56 +01:00
options=(hash
2020-03-29 09:49:33 +02:00
isDisabled=apiEmpty
2020-03-22 07:47:56 +01:00
none='admin.wizard.action.send_to_api.select_an_endpoint'
)}}
2019-06-03 09:09:24 +02:00
</div>
</div>
2020-03-30 01:53:28 +02:00
<div class="setting full">
2019-06-03 09:09:24 +02:00
<div class="setting-label">
2020-03-30 01:53:28 +02:00
<label>{{i18n "admin.wizard.action.send_to_api.body"}}</label>
2019-06-03 09:09:24 +02:00
</div>
2019-06-03 09:09:24 +02:00
<div class="setting-value">
2020-03-29 09:49:33 +02:00
{{wizard-text-editor
2020-03-21 18:30:11 +01:00
value=action.api_body
2020-03-30 01:53:28 +02:00
previewEnabled=false
barEnabled=false
wizardFields=wizardFields
placeholder='admin.wizard.action.send_to_api.body_placeholder'}}
2019-06-03 09:09:24 +02:00
</div>
</div>
{{/if}}
2019-07-01 04:31:50 +02:00
{{#if addToGroup}}
2020-03-29 09:49:33 +02:00
<div class="setting full field-mapper-setting">
2019-07-01 04:31:50 +02:00
<div class="setting-label">
2020-03-30 01:53:28 +02:00
<label>{{i18n "admin.wizard.group"}}</label>
2019-07-01 04:31:50 +02:00
</div>
2019-07-01 04:31:50 +02:00
<div class="setting-value">
2020-04-01 07:03:26 +02:00
{{wizard-mapper
2020-03-31 10:30:53 +02:00
inputs=action.group
2020-04-20 11:41:13 +02:00
property='group'
onUpdate=(action 'mappedFieldUpdated')
2020-03-21 18:30:11 +01:00
options=(hash
2020-04-01 07:03:26 +02:00
textSelection='value,output'
2020-04-05 03:37:09 +02:00
wizardFieldSelection='key,value,assignment'
2020-04-02 10:21:03 +02:00
userFieldSelection='key,value,assignment'
2020-03-24 10:35:46 +01:00
groupSelection='value,output'
2020-04-01 07:03:26 +02:00
outputDefaultSelection='group'
2020-04-06 03:54:16 +02:00
context='action'
2020-03-21 18:30:11 +01:00
)}}
</div>
</div>
2019-07-01 04:31:50 +02:00
{{/if}}
{{#if routeTo}}
<div class="setting">
<div class="setting-label">
2020-03-30 01:53:28 +02:00
<label>{{i18n "admin.wizard.action.route_to.url"}}</label>
</div>
<div class="setting-value">
2020-04-29 03:47:08 +02:00
{{wizard-mapper
inputs=action.url
property='url'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
context='action'
wizardFieldSelection=true
userFieldSelection='key,value'
groupSelection='key,value'
categorySelection='key,value'
userSelection='key,value'
)}}
</div>
</div>
2020-04-02 07:21:57 +02:00
{{/if}}
{{#if watchCategories}}
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.watch_categories.categories"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.categories
property='categories'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
textSelection='key,value'
wizardFieldSelection=true
2020-07-20 05:06:36 +02:00
wizardActionSelection=true
userFieldSelection='key,value'
2020-05-26 12:16:06 +02:00
categorySelection='output'
context='action'
)}}
</div>
</div>
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.watch_categories.mute_remainder"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.mute_remainder
property='mute_remainder'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
context='action'
wizardFieldSelection=true
userFieldSelection='key,value'
)}}
</div>
</div>
<div class="setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.watch_categories.notification_level.label"}}</label>
</div>
<div class="setting-value">
{{combo-box
value=action.notification_level
content=availableNotificationLevels
onChange=(action (mut action.notification_level))
options=(hash
isDisabled=action.custom_title_enabled
none='admin.wizard.action.watch_categories.select_a_notification_level'
)}}
</div>
</div>
2020-07-20 05:06:36 +02:00
<div class="setting full">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.watch_categories.wizard_user"}}</label>
</div>
<div class="setting-value">
{{input type="checkbox" checked=action.wizard_user}}
</div>
</div>
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.watch_categories.usernames"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.usernames
property='usernames'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
context='action'
wizardFieldSelection=true
userFieldSelection='key,value'
userSelection='output'
)}}
</div>
</div>
{{/if}}
2020-07-16 07:25:06 +02:00
{{#if createGroup}}
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.create_group.name"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.name
property='name'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
textSelection=true
wizardFieldSelection=true
userFieldSelection=true
context='action'
)}}
</div>
</div>
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.create_group.full_name"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.full_name
property='full_name'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
textSelection=true
wizardFieldSelection=true
userFieldSelection=true
context='action'
)}}
</div>
</div>
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.create_group.title"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.title
property='title'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
textSelection=true
wizardFieldSelection=true
userFieldSelection=true
context='action'
)}}
</div>
</div>
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.create_group.bio_raw"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.bio_raw
property='bio_raw'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
textSelection=true
wizardFieldSelection=true
userFieldSelection=true
context='action'
)}}
</div>
</div>
2020-07-16 09:50:09 +02:00
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.create_group.owner_usernames"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.owner_usernames
property='owner_usernames'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
textSelection=true
wizardFieldSelection=true
userFieldSelection=true
userSelection='output'
context='action'
)}}
</div>
</div>
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.create_group.usernames"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.usernames
property='usernames'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
textSelection=true
wizardFieldSelection=true
userFieldSelection=true
userSelection='output'
context='action'
)}}
</div>
</div>
2020-07-16 07:25:06 +02:00
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.create_group.grant_trust_level"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.grant_trust_level
property='grant_trust_level'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
textSelection=true
wizardFieldSelection=true
userFieldSelection=true
context='action'
)}}
</div>
</div>
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.create_group.mentionable_level"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.mentionable_level
property='mentionable_level'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
textSelection=true
wizardFieldSelection=true
userFieldSelection=true
context='action'
)}}
</div>
</div>
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.create_group.messageable_level"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.messageable_level
property='messageable_level'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
textSelection=true
wizardFieldSelection=true
userFieldSelection=true
context='action'
)}}
</div>
</div>
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.create_group.visibility_level"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.visibility_level
property='visibility_level'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
textSelection=true
wizardFieldSelection=true
userFieldSelection=true
context='action'
)}}
</div>
</div>
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.create_group.members_visibility_level"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.members_visibility_level
property='members_visibility_level'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
textSelection=true
wizardFieldSelection=true
userFieldSelection=true
context='action'
)}}
</div>
</div>
{{/if}}
{{#if createCategory}}
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.create_category.name"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.name
property='name'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
textSelection='key,value'
wizardFieldSelection=true
userFieldSelection='key,value'
context='action'
)}}
</div>
</div>
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.create_category.slug"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.slug
property='slug'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
textSelection=true
wizardFieldSelection=true
userFieldSelection='key,value'
context='action'
)}}
</div>
</div>
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.create_category.color"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.color
property='color'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
textSelection=true
wizardFieldSelection=true
userFieldSelection='key,value'
context='action'
)}}
</div>
</div>
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.create_category.text_color"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.text_color
property='text_color'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
textSelection=true
wizardFieldSelection=true
userFieldSelection='key,value'
context='action'
)}}
</div>
</div>
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.create_category.parent_category"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.parent_category_id
property='parent_category_id'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
textSelection='key,value'
wizardFieldSelection=true
userFieldSelection='key,value'
categorySelection='output'
context='action'
)}}
</div>
</div>
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.create_category.permissions"}}</label>
</div>
<div class="setting-value">
{{wizard-mapper
inputs=action.permissions
property='permissions'
onUpdate=(action 'mappedFieldUpdated')
options=(hash
inputTypes='association'
textSelection=true
wizardFieldSelection=true
wizardActionSelection='key'
userFieldSelection=true
groupSelection='key'
context='action'
)}}
</div>
</div>
{{/if}}
2020-04-20 13:40:32 +02:00
{{#if showAdvanced}}
2020-04-02 07:21:57 +02:00
{{wizard-advanced-toggle showAdvanced=action.showAdvanced}}
{{#if action.showAdvanced}}
<div class="advanced-settings">
2020-04-07 15:33:11 +02:00
{{#if hasCustomFields}}
2020-04-02 07:21:57 +02:00
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n 'admin.wizard.action.custom_fields.label'}}</label>
</div>
2020-04-02 07:21:57 +02:00
<div class="setting-value">
{{wizard-mapper
inputs=action.custom_fields
2020-04-20 11:41:13 +02:00
property='custom_fields'
onUpdate=(action 'mappedFieldUpdated')
2020-04-02 07:21:57 +02:00
options=(hash
2020-04-06 10:36:38 +02:00
inputTypes='association'
2020-04-05 03:37:09 +02:00
wizardFieldSelection='value'
2020-04-02 10:21:03 +02:00
userFieldSelection='value'
2020-04-05 03:37:09 +02:00
keyPlaceholder='admin.wizard.action.custom_fields.key'
2020-04-06 03:54:16 +02:00
context='action'
2020-04-02 07:21:57 +02:00
)}}
</div>
</div>
{{/if}}
2020-04-02 07:21:57 +02:00
{{#if sendMessage}}
<div class="setting full field-mapper-setting">
<div class="setting-label">
<label>{{i18n 'admin.wizard.required'}}</label>
</div>
2020-04-02 07:21:57 +02:00
<div class="setting-value">
{{wizard-mapper
inputs=action.required
2020-04-20 11:41:13 +02:00
property='required'
onUpdate=(action 'mappedFieldUpdated')
2020-04-02 07:21:57 +02:00
options=(hash
textSelection='value'
2020-04-05 03:37:09 +02:00
wizardFieldSelection=true
2020-04-02 10:21:03 +02:00
userFieldSelection=true
2020-04-02 07:21:57 +02:00
groupSelection=true
2020-04-06 03:54:16 +02:00
context='action'
2020-04-02 07:21:57 +02:00
)}}
</div>
</div>
{{/if}}
2020-04-08 04:52:07 +02:00
{{#if showSkipRedirect}}
2020-04-02 07:21:57 +02:00
<div class="setting full">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.skip_redirect.label"}}</label>
</div>
2020-04-02 07:21:57 +02:00
<div class="setting-value">
{{input type='checkbox' checked=action.skip_redirect}}
2020-04-02 07:21:57 +02:00
<span>
{{i18n 'admin.wizard.action.skip_redirect.description' type='topic'}}
</span>
</div>
</div>
{{/if}}
2020-04-02 07:21:57 +02:00
{{#if routeTo}}
<div class="setting">
<div class="setting-label">
<label>{{i18n "admin.wizard.action.route_to.code"}}</label>
</div>
<div class="setting-value">
{{input value=action.code}}
</div>
</div>
{{/if}}
</div>
2020-04-02 07:21:57 +02:00
{{/if}}
{{/if}}