{{i18n "admin.wizard.id"}}
{{input value=action.id placeholderKey='admin.wizard.id_placeholder' disabled=disableId}}
{{i18n "admin.wizard.type"}}
{{combo-box
value=action.type
content=types
options=(hash
none="admin.wizard.field.type"
)}}
{{#if basicTopicFields}}
{{i18n "admin.wizard.action.title"}}
{{combo-box
value=action.title
content=wizardFields
nameProperty="label"
isDisabled=action.custom_title_enabled
options=(hash
none='admin.wizard.select_field'
)}}
{{input type='checkbox' checked=action.custom_title_enabled}}
{{i18n 'admin.wizard.action.custom_title'}}
{{#if action.custom_title_enabled}}
{{input value=action.custom_title}}
{{/if}}
{{i18n "admin.wizard.action.post"}}
{{combo-box
value=action.post
content=wizardFields
nameProperty='label'
isDisabled=action.post_builder
options=(hash
none='admin.wizard.select_field'
)}}
{{input type='checkbox' checked=action.post_builder}}
{{i18n 'admin.wizard.action.post_builder.checkbox'}}
{{#if action.post_builder}}
{{i18n 'admin.wizard.action.post_builder.label'}}
{{d-editor
value=action.post_template
placeholder='admin.wizard.action.interpolate_fields'
classNames='post-builder-editor'}}
{{/if}}
{{/if}}
{{#if publicTopicFields}}
{{i18n "admin.wizard.action.create_topic.category"}}
{{category-chooser
value=action.category_id
isDisabled=action.custom_category_enabled}}
{{input type='checkbox' checked=action.custom_category_enabled}}
{{i18n 'admin.wizard.action.custom_category.label'}}
{{#if action.custom_category_enabled}}
{{input type='checkbox' checked=action.custom_category_wizard_field}}
{{i18n 'admin.wizard.action.custom_category.wizard_field'}}
{{#if action.custom_category_wizard_field}}
{{combo-box
value=action.category_id
content=categoryFields
nameProperty="label"
options=(hash
none='admin.wizard.select_field'
)}}
{{/if}}
{{input type='checkbox' checked=action.custom_category_user_field}}
{{i18n 'admin.wizard.action.custom_category.user_field'}}
{{#if action.custom_category_user_field}}
{{input value=action.custom_category_user_field_key}}
{{/if}}
{{/if}}
{{i18n "admin.wizard.action.create_topic.tags"}}
{{tag-chooser
tags=action.tags
filterable=true
allowCreate=true
isDisabled=action.custom_tag_enabled}}
{{input type='checkbox' checked=action.custom_tag_enabled}}
{{i18n 'admin.wizard.action.custom_tag.label'}}
{{#if action.custom_tag_enabled}}
{{combo-box
value=action.custom_tag_field
content=tagFields
nameProperty="label"
options=(hash
none='admin.wizard.select_field'
)}}
{{/if}}
{{/if}}
{{#if newTopicFields}}
{{i18n "admin.wizard.action.skip_redirect.label"}}
{{input type='checkbox' checked=action.skip_redirect}}
{{i18n 'admin.wizard.action.skip_redirect.description' type='topic'}}
{{/if}}
{{#if createTopic}}
{{wizard-field-mapper
inputs=action.add_fields
userFields=userFields
wizardFields=wizardFields
options=(hash
wizardFieldSelection=true
)}}
{{/if}}
{{#if sendMessage}}
{{i18n 'admin.wizard.required'}}
{{combo-box
value=action.required
content=wizardFields
nameProperty='label'
options=(hash
none='admin.wizard.select_field'
)}}
{{i18n "admin.wizard.action.send_message.recipient"}}
{{user-selector
single="true"
includeMentionableGroups="true"
usernames=action.username
allowedUsers="true"}}
{{wizard-field-mapper
inputs=action.add_fields
userFields=userFields
wizardFields=wizardFields}}
{{/if}}
{{#if updateProfile}}
{{wizard-field-mapper
inputs=action.profile_updates
userFields=userFields
wizardFields=wizardFields
options=(hash
wizardFieldSelection=true
userFieldSelection=true
)}}
{{/if}}
{{#if sendToApi}}
{{i18n "admin.wizard.action.send_to_api.api"}}
{{combo-box
value=action.api
content=availableApis
isDisabled=action.custom_title_enabled
options=(hash
none='admin.wizard.action.send_to_api.select_an_api'
)}}
{{i18n "admin.wizard.action.send_to_api.endpoint"}}
{{combo-box
value=action.api_endpoint
content=availableEndpoints
isDisabled=apiEmpty
options=(hash
none='admin.wizard.action.send_to_api.select_an_endpoint'
)}}
{{i18n "admin.wizard.action.send_to_api.body"}}
{{textarea
value=action.api_body
placeholder=(i18n 'admin.wizard.action.interpolate_fields')}}
{{/if}}
{{#if addToGroup}}
{{i18n "admin.wizard.action.add_to_group.group"}}
{{wizard-field-mapper
inputs=action.inputs
userFields=userFields
wizardFields=wizardFields
outputConnectorKey='admin.wizard.action.add_to_group.output_connector'
options=(hash
hasOutput=true
enableConnectors=true
wizardFieldSelection='key,value,assignment'
userFieldSelection='key,value,assignment'
groupSelection='value,output'
)}}
{{/if}}
{{#if routeTo}}
{{i18n "admin.wizard.action.route_to.url"}}
{{input value=action.url}}
{{i18n "admin.wizard.action.route_to.code"}}
{{input value=action.code}}
{{/if}}