{{#if showUndo}} {{d-button action="undoChanges" icon=undoIcon label=undoKey class="undo-changes"}} {{/if}}
{{combo-box value=action.type content=actionTypes onChange=(action "changeType") options=(hash none="admin.wizard.select_type" )}}
{{combo-box value=action.run_after content=runAfterContent onChange=(action (mut action.run_after))}}
{{wizard-message key=messageKey url=messageUrl component='action'}} {{#if basicTopicFields}}
{{wizard-mapper inputs=action.title property='title' onUpdate=(action 'mappedFieldUpdated') 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=showPostBuilder )}}
{{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 property='category' onUpdate=(action 'mappedFieldUpdated') options=(hash textSelection='key,value' wizardFieldSelection=true userFieldSelection='key,value' categorySelection='output' outputDefaultSelection='category' context='action' )}}
{{wizard-mapper inputs=action.tags property='tags' onUpdate=(action 'mappedFieldUpdated') options=(hash tagSelection='output' outputDefaultSelection='tag' listSelection='output' wizardFieldSelection=true userFieldSelection='key,value' context='action' )}}
{{wizard-mapper inputs=action.visible property='visible' onUpdate=(action 'mappedFieldUpdated') options=(hash wizardFieldSelection=true userFieldSelection=true context='action' )}}
{{/if}} {{#if sendMessage}}
{{wizard-mapper inputs=action.recipient property='recipient' onUpdate=(action 'mappedFieldUpdated') 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 property='profile_updates' onUpdate=(action 'mappedFieldUpdated') options=(hash inputTypes='association' textSelection='value' userFieldSelection='key' wizardFieldSelection='value' keyDefaultSelection='userField' 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 property='group' onUpdate=(action 'mappedFieldUpdated') options=(hash textSelection='value,output' wizardFieldSelection='key,value,assignment' userFieldSelection='key,value,assignment' groupSelection='value,output' outputDefaultSelection='group' context='action' )}}
{{/if}} {{#if routeTo}}
{{wizard-mapper inputs=action.url property='url' onUpdate=(action 'mappedFieldUpdated') options=(hash context='action' wizardFieldSelection=true userFieldSelection='key,value' groupSelection='key,value' categorySelection='key,value' userSelection='key,value' )}}
{{/if}} {{#if watchCategories}}
{{wizard-mapper inputs=action.categories property='categories' onUpdate=(action 'mappedFieldUpdated') options=(hash textSelection='key,value' wizardFieldSelection=true wizardActionSelection=true userFieldSelection='key,value' categorySelection='output' context='action' )}}
{{wizard-mapper inputs=action.mute_remainder property='mute_remainder' onUpdate=(action 'mappedFieldUpdated') options=(hash context='action' wizardFieldSelection=true userFieldSelection='key,value' )}}
{{combo-box value=action.notification_level content=availableNotificationLevels onChange=(action (mut action.notification_level)) options=(hash isDisabled=action.custom_title_enabled none='admin.wizard.action.watch_categories.select_a_notification_level' )}}
{{input type="checkbox" checked=action.wizard_user}}
{{wizard-mapper inputs=action.usernames property='usernames' onUpdate=(action 'mappedFieldUpdated') options=(hash context='action' wizardFieldSelection=true userFieldSelection='key,value' userSelection='output' )}}
{{/if}} {{#if createGroup}}
{{wizard-mapper inputs=action.name property='name' onUpdate=(action 'mappedFieldUpdated') options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true context='action' )}}
{{wizard-mapper inputs=action.full_name property='full_name' onUpdate=(action 'mappedFieldUpdated') options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true context='action' )}}
{{wizard-mapper inputs=action.title property='title' onUpdate=(action 'mappedFieldUpdated') options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true context='action' )}}
{{wizard-mapper inputs=action.bio_raw property='bio_raw' onUpdate=(action 'mappedFieldUpdated') options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true context='action' )}}
{{wizard-mapper inputs=action.owner_usernames property='owner_usernames' onUpdate=(action 'mappedFieldUpdated') options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true userSelection='output' context='action' )}}
{{wizard-mapper inputs=action.usernames property='usernames' onUpdate=(action 'mappedFieldUpdated') options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true userSelection='output' context='action' )}}
{{wizard-mapper inputs=action.grant_trust_level property='grant_trust_level' onUpdate=(action 'mappedFieldUpdated') options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true context='action' )}}
{{wizard-mapper inputs=action.mentionable_level property='mentionable_level' onUpdate=(action 'mappedFieldUpdated') options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true context='action' )}}
{{wizard-mapper inputs=action.messageable_level property='messageable_level' onUpdate=(action 'mappedFieldUpdated') options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true context='action' )}}
{{wizard-mapper inputs=action.visibility_level property='visibility_level' onUpdate=(action 'mappedFieldUpdated') options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true context='action' )}}
{{wizard-mapper inputs=action.members_visibility_level property='members_visibility_level' onUpdate=(action 'mappedFieldUpdated') options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true context='action' )}}
{{/if}} {{#if createCategory}}
{{wizard-mapper inputs=action.name property='name' onUpdate=(action 'mappedFieldUpdated') options=(hash textSelection='key,value' wizardFieldSelection=true userFieldSelection='key,value' context='action' )}}
{{wizard-mapper inputs=action.slug property='slug' onUpdate=(action 'mappedFieldUpdated') options=(hash textSelection=true wizardFieldSelection=true userFieldSelection='key,value' context='action' )}}
{{wizard-mapper inputs=action.color property='color' onUpdate=(action 'mappedFieldUpdated') options=(hash textSelection=true wizardFieldSelection=true userFieldSelection='key,value' context='action' )}}
{{wizard-mapper inputs=action.text_color property='text_color' onUpdate=(action 'mappedFieldUpdated') options=(hash textSelection=true wizardFieldSelection=true userFieldSelection='key,value' context='action' )}}
{{wizard-mapper inputs=action.parent_category_id property='parent_category_id' onUpdate=(action 'mappedFieldUpdated') options=(hash textSelection='key,value' wizardFieldSelection=true userFieldSelection='key,value' categorySelection='output' context='action' )}}
{{wizard-mapper inputs=action.permissions property='permissions' onUpdate=(action 'mappedFieldUpdated') options=(hash inputTypes='association' textSelection=true wizardFieldSelection=true wizardActionSelection='key' userFieldSelection=true groupSelection='key' context='action' )}}
{{/if}} {{#if showAdvanced}} {{wizard-advanced-toggle showAdvanced=action.showAdvanced}} {{#if action.showAdvanced}}
{{#if hasCustomFields}}
{{wizard-mapper inputs=action.custom_fields property='custom_fields' onUpdate=(action 'mappedFieldUpdated') options=(hash inputTypes='association' wizardFieldSelection='value' wizardActionSelection='value' userFieldSelection='value' keyPlaceholder='admin.wizard.action.custom_fields.key' context='action' )}}
{{/if}} {{#if sendMessage}}
{{wizard-mapper inputs=action.required property='required' onUpdate=(action 'mappedFieldUpdated') options=(hash textSelection='value' wizardFieldSelection=true userFieldSelection=true groupSelection=true context='action' )}}
{{/if}} {{#if showPostAdvanced}}
{{input type='checkbox' checked=action.skip_redirect}} {{i18n 'admin.wizard.action.skip_redirect.description' type='topic'}}
{{input type='checkbox' checked=action.suppress_notifications}} {{i18n 'admin.wizard.action.suppress_notifications.description' type='topic'}}
{{/if}} {{#if routeTo}}
{{input value=action.code}}
{{/if}}
{{/if}} {{/if}}