{{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 wizardFieldSelection=true userFieldSelection='key,value' context='action' )}}
{{combo-box value=action.post content=wizardFields nameProperty='label' onChange=(action (mut action.post)) options=(hash none='admin.wizard.selector.placeholder.wizard_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 textSelection='key,value' wizardFieldSelection=true userFieldSelection='key,value' categorySelection='output' outputDefaultSelection='category' context='action' )}}
{{wizard-mapper inputs=action.tags options=(hash tagSelection='output' wizardFieldSelection=true userFieldSelection='key,value' context='action' )}}
{{/if}} {{#if sendMessage}}
{{wizard-mapper inputs=action.recipient options=(hash textSelection='value,output' wizardFieldSelection=true userFieldSelection='key,value' groupSelection='key,value' userSelection='output' outputDefaultSelection='user' context='action' )}}
{{/if}} {{#if updateProfile}}
{{wizard-mapper inputs=action.profile_updates options=(hash pairConnector='set' userFieldSelection='key' wizardFieldSelection='value' keyDefaultSelection='userField' keyPlaceholder='admin.wizard.action.update_profile.key' context='action' )}}
{{/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 textSelection='value,output' wizardFieldSelection='key,value,assignment' userFieldSelection='key,value,assignment' groupSelection='value,output' outputDefaultSelection='group' context='action' )}}
{{/if}} {{#if routeTo}}
{{input value=action.url}}
{{/if}} {{#if hasAdvanced}} {{wizard-advanced-toggle showAdvanced=action.showAdvanced}} {{#if action.showAdvanced}}
{{#if basicTopicFields}}
{{wizard-mapper inputs=action.custom_fields options=(hash inputTypes='association' wizardFieldSelection='value' userFieldSelection='value' keyPlaceholder='admin.wizard.action.custom_fields.key' context='action' )}}
{{/if}} {{#if sendMessage}}
{{wizard-mapper inputs=action.required options=(hash textSelection='value' wizardFieldSelection=true userFieldSelection=true groupSelection=true context='action' )}}
{{/if}} {{#if newTopicFields}}
{{input type='checkbox' checked=action.skip_redirect}} {{i18n 'admin.wizard.action.skip_redirect.description' type='topic'}}
{{/if}} {{#if routeTo}}
{{input value=action.code}}
{{/if}}
{{/if}} {{/if}}