{{combo-box
value=action.type
content=types
onChange=(action (mut action.type))
options=(hash
none="admin.wizard.field.type"
)}}
{{#if basicTopicFields}}
{{combo-box
value=action.title
content=wizardFields
nameProperty="label"
onChange=(action (mut action.title))
options=(hash
none='admin.wizard.select_field'
isDisabled=action.custom_title_enabled
)}}
{{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}}
{{combo-box
value=action.post
content=wizardFields
nameProperty='label'
onChange=(action (mut action.post))
options=(hash
none='admin.wizard.select_field'
isDisabled=action.post_builder
)}}
{{input type='checkbox' checked=action.post_builder}}
{{i18n 'admin.wizard.action.post_builder.checkbox'}}
{{#if action.post_builder}}
{{wizard-text-editor
value=action.post_template
wizardFields=wizardFields}}
{{/if}}
{{/if}}
{{#if publicTopicFields}}
{{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.wizard_field'}}
{{#if action.custom_category_wizard_field}}
{{combo-box
value=action.category_id
content=categoryFields
nameProperty="label"
onChange=(action (mut action.category_id))
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}}
{{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"
onChange=(action (mut action.custom_tag_field))
options=(hash
none='admin.wizard.select_field'
)}}
{{/if}}
{{/if}}
{{#if newTopicFields}}
{{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
wizardFields=wizardFields
options=(hash
wizardFieldSelection=true
)}}
{{/if}}
{{#if sendMessage}}
{{combo-box
value=action.required
content=wizardFields
nameProperty='label'
onChange=(action (mut action.required))
options=(hash
none='admin.wizard.select_field'
)}}
{{user-selector
single="true"
includeMentionableGroups="true"
usernames=action.username
allowedUsers="true"}}
{{wizard-field-mapper
inputs=action.add_fields
wizardFields=wizardFields}}
{{/if}}
{{#if updateProfile}}
{{wizard-field-mapper
inputs=action.profile_updates
wizardFields=wizardFields
options=(hash
wizardFieldSelection=true
userFieldSelection=true
)}}
{{/if}}
{{#if sendToApi}}
{{combo-box
value=action.api
content=availableApis
onChange=(action (mut action.api))
options=(hash
isDisabled=action.custom_title_enabled
none='admin.wizard.action.send_to_api.select_an_api'
)}}
{{combo-box
value=action.api_endpoint
content=availableEndpoints
onChange=(action (mut action.api_endpoint))
options=(hash
isDisabled=apiEmpty
none='admin.wizard.action.send_to_api.select_an_endpoint'
)}}
{{wizard-text-editor
value=action.api_body
previewEnabled=false
barEnabled=false
wizardFields=wizardFields
placeholder='admin.wizard.action.send_to_api.body_placeholder'}}
{{/if}}
{{#if addToGroup}}
{{wizard-field-mapper
inputs=action.inputs
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}}
{{input value=action.url}}
{{input value=action.code}}
{{/if}}