{{combo-box
value=action.type
content=types
onChange=(action (mut action.type))
options=(hash
none="admin.wizard.field.type"
)}}
{{#if basicTopicFields}}
{{wizard-mapper
inputs=action.title
options=(hash
hasOutput=true
wizardSelection=true
userSelection='key,value'
)}}
{{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}}
{{wizard-mapper
inputs=action.category
options=(hash
hasOutput=true
categorySelection='output'
wizardSelection=true
userSelection='key,value'
)}}
{{wizard-mapper
inputs=action.tags
options=(hash
hasOutput=true
tagSelection='output'
wizardSelection=true
userSelection='key,value'
)}}
{{/if}}
{{#if newTopicFields}}
{{input type='checkbox' checked=action.skip_redirect}}
{{i18n 'admin.wizard.action.skip_redirect.description' type='topic'}}
{{/if}}
{{#if basicTopicFields}}
{{wizard-mapper
inputs=action.custom_fields
keyPlaceholder='admin.wizard.action.custom_fields.key'
options=(hash
pairConnector='set'
wizardSelection='value'
userSelection='value'
)}}
{{/if}}
{{#if sendMessage}}
{{wizard-mapper
inputs=action.required
options=(hash
textSelection='value'
wizardSelection=true
userSelection=true
groupSelection=true
)}}
{{wizard-mapper
inputs=action.recipient
options=(hash
hasOutput=true
textSelection='value,output'
wizardSelection=true
userSelection=true
groupSelection='key,value'
)}}
{{/if}}
{{#if updateProfile}}
{{wizard-mapper
inputs=action.profile_updates
keyPlaceholder='admin.wizard.action.update_profile.key'
options=(hash
pairConnector='set'
userSelection='key'
wizardSelection='value'
keyDefaultSelection='user'
)}}
{{/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-mapper
inputs=action.group
options=(hash
hasOutput=true
textSelection='value,output'
wizardSelection='key,value,assignment'
userSelection='key,value,assignment'
groupSelection='value,output'
outputDefaultSelection='group'
)}}
{{/if}}
{{#if routeTo}}
{{input value=action.url}}
{{input value=action.code}}
{{/if}}