{{combo-box value=action.type content=types onChange=(action (mut action.type)) options=(hash none="admin.wizard.field.type" )}}
{{#if basicTopicFields}}
{{wizard-field-mapper inputs=action.title wizardFields=wizardFields options=(hash hasOutput=true wizardFieldSelection=true userFieldSelection='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-field-mapper inputs=action.category wizardFields=wizardFields options=(hash hasOutput=true categorySelection='output' wizardFieldSelection=true userFieldSelection='key,value' )}}
{{wizard-field-mapper inputs=action.tags wizardFields=wizardFields options=(hash hasOutput=true tagSelection='output' wizardFieldSelection=true userFieldSelection='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-field-mapper inputs=action.custom_fields wizardFields=wizardFields connectorKey='admin.wizard.action.custom_fields.connector' keyPlaceholder='admin.wizard.action.custom_fields.key' options=(hash wizardFieldSelection='value' userFieldSelection='value' )}}
{{/if}} {{#if sendMessage}}
{{wizard-field-mapper inputs=action.required wizardFields=wizardFields options=(hash textDisabled='key' enableConnectors=true wizardFieldSelection=true userFieldSelection=true groupSelection=true )}}
{{wizard-field-mapper inputs=action.recipient wizardFields=wizardFields options=(hash textDisabled='key' hasOutput=true wizardFieldSelection=true userFieldSelection=true groupSelection='key,value' )}}
{{/if}} {{#if updateProfile}}
{{wizard-field-mapper inputs=action.profile_updates wizardFields=wizardFields connectorKey='admin.wizard.action.update_profile.connector' keyPlaceholder='admin.wizard.action.update_profile.key' options=(hash keyDefaultType='user' userFieldSelection='key' wizardFieldSelection='value' )}}
{{/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.group wizardFields=wizardFields outputConnectorKey='admin.wizard.action.add_to_group.output_connector' options=(hash hasOutput=true enableConnectors=true textDisabled='key' wizardFieldSelection='key,value,assignment' userFieldSelection='key,value,assignment' groupSelection='value,output' )}}
{{/if}} {{#if routeTo}}
{{input value=action.url}}
{{input value=action.code}}
{{/if}}