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

964 Zeilen
25 KiB
Handlebars

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