{{#if this.showUndo}} {{d-button action=(action "undoChanges") icon=this.undoIcon label=this.undoKey class="undo-changes" }} {{/if}}
{{wizard-subscription-selector value=this.action.type feature="action" attribute="type" onChange=(action "changeType") wizard=this.wizard options=(hash none="admin.wizard.select_type") }}
{{combo-box value=this.action.run_after content=this.runAfterContent onChange=(action (mut this.action.run_after)) }}
{{wizard-message key=this.messageKey url=this.messageUrl component="action"}} {{#if this.basicTopicFields}}
{{wizard-mapper inputs=this.action.title property="title" onUpdate=(action "mappedFieldUpdated") options=(hash wizardFieldSelection=true userFieldSelection="key,value" context="action" ) }}
{{combo-box value=this.action.post content=this.wizardFields nameProperty="label" onChange=(action (mut this.action.post)) options=(hash none="admin.wizard.selector.placeholder.wizard_field" isDisabled=this.showPostBuilder ) }}
{{i18n "admin.wizard.action.post_builder.checkbox"}}
{{#if this.action.post_builder}}
{{wizard-text-editor value=this.action.post_template wizardFields=this.wizardFields }}
{{/if}} {{/if}} {{#if this.publicTopicFields}}
{{wizard-mapper inputs=this.action.category property="category" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection="key,value" wizardFieldSelection=true userFieldSelection="key,value" categorySelection="output" wizardActionSelection="output" outputDefaultSelection="category" context="action" ) }}
{{wizard-mapper inputs=this.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=this.action.visible property="visible" onUpdate=(action "mappedFieldUpdated") options=(hash wizardFieldSelection=true userFieldSelection=true context="action" ) }}
{{#if this.hasEventField}}
{{wizard-mapper inputs=this.action.add_event property="add_event" onUpdate=(action "mappedFieldUpdated") options=(hash wizardFieldSelection=true context="action") }}
{{/if}} {{#if this.hasLocationField}}
{{wizard-mapper inputs=this.action.add_location property="add_location" onUpdate=(action "mappedFieldUpdated") options=(hash wizardFieldSelection=true context="action") }}
{{/if}} {{/if}} {{#if this.sendMessage}}
{{wizard-mapper inputs=this.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" includeMessageableGroups="true" ) }}
{{/if}} {{#if this.updateProfile}}
{{wizard-mapper inputs=this.action.profile_updates property="profile_updates" onUpdate=(action "mappedFieldUpdated") options=(hash inputTypes="association" textSelection="value" userFieldSelection="key" wizardFieldSelection="value" wizardActionSelection="value" keyDefaultSelection="userField" context="action" ) }}
{{/if}} {{#if this.sendToApi}}
{{combo-box value=this.action.api content=this.availableApis onChange=(action (mut this.action.api)) options=(hash isDisabled=this.action.custom_title_enabled none="admin.wizard.action.send_to_api.select_an_api" ) }}
{{combo-box value=this.action.api_endpoint content=this.availableEndpoints onChange=(action (mut this.action.api_endpoint)) options=(hash isDisabled=this.apiEmpty none="admin.wizard.action.send_to_api.select_an_endpoint" ) }}
{{wizard-text-editor value=this.action.api_body previewEnabled=false barEnabled=false wizardFields=this.wizardFields placeholder="admin.wizard.action.send_to_api.body_placeholder" }}
{{/if}} {{#if this.addToGroup}}
{{wizard-mapper inputs=this.action.group property="group" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection="value,output" wizardFieldSelection="key,value,assignment" userFieldSelection="key,value,assignment" wizardActionSelection=true groupSelection="value,output" outputDefaultSelection="group" context="action" ) }}
{{/if}} {{#if this.routeTo}}
{{wizard-mapper inputs=this.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 this.watchCategories}}
{{wizard-mapper inputs=this.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=this.action.mute_remainder property="mute_remainder" onUpdate=(action "mappedFieldUpdated") options=(hash context="action" wizardFieldSelection=true userFieldSelection="key,value" ) }}
{{combo-box value=this.action.notification_level content=this.availableNotificationLevels onChange=(action (mut this.action.notification_level)) options=(hash isDisabled=this.action.custom_title_enabled none="admin.wizard.action.watch_x.select_a_notification_level" ) }}
{{wizard-mapper inputs=this.action.usernames property="usernames" onUpdate=(action "mappedFieldUpdated") options=(hash context="action" wizardFieldSelection=true userFieldSelection="key,value" userSelection="output" ) }}
{{/if}} {{#if this.watchTags}}
{{wizard-mapper inputs=this.action.tags property="tags" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection="key,value" tagSelection="output" wizardFieldSelection=true wizardActionSelection=true userFieldSelection="key,value" context="action" ) }}
{{combo-box value=this.action.notification_level content=this.availableNotificationLevels onChange=(action (mut this.action.notification_level)) options=(hash isDisabled=this.action.custom_title_enabled none="admin.wizard.action.watch_x.select_a_notification_level" ) }}
{{wizard-mapper inputs=this.action.usernames property="usernames" onUpdate=(action "mappedFieldUpdated") options=(hash context="action" wizardFieldSelection=true userFieldSelection="key,value" userSelection="output" ) }}
{{/if}} {{#if this.createGroup}}
{{wizard-mapper inputs=this.action.name property="name" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true context="action" ) }}
{{wizard-mapper inputs=this.action.full_name property="full_name" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true context="action" ) }}
{{wizard-mapper inputs=this.action.title property="title" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true context="action" ) }}
{{wizard-mapper inputs=this.action.bio_raw property="bio_raw" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true context="action" ) }}
{{wizard-mapper inputs=this.action.owner_usernames property="owner_usernames" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true userSelection="output" context="action" ) }}
{{wizard-mapper inputs=this.action.usernames property="usernames" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true userSelection="output" context="action" ) }}
{{wizard-mapper inputs=this.action.grant_trust_level property="grant_trust_level" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true context="action" ) }}
{{wizard-mapper inputs=this.action.mentionable_level property="mentionable_level" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true context="action" ) }}
{{wizard-mapper inputs=this.action.messageable_level property="messageable_level" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true context="action" ) }}
{{wizard-mapper inputs=this.action.visibility_level property="visibility_level" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true context="action" ) }}
{{wizard-mapper inputs=this.action.members_visibility_level property="members_visibility_level" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection=true wizardFieldSelection=true userFieldSelection=true context="action" ) }}
{{/if}} {{#if this.createCategory}}
{{wizard-mapper inputs=this.action.name property="name" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection="key,value,output" wizardFieldSelection=true userFieldSelection="key,value" context="action" ) }}
{{wizard-mapper inputs=this.action.slug property="slug" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection=true wizardFieldSelection=true userFieldSelection="key,value" context="action" ) }}
{{wizard-mapper inputs=this.action.color property="color" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection=true wizardFieldSelection=true userFieldSelection="key,value" context="action" ) }}
{{wizard-mapper inputs=this.action.text_color property="text_color" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection=true wizardFieldSelection=true userFieldSelection="key,value" context="action" ) }}
{{wizard-mapper inputs=this.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=this.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 this.hasCustomFields}}
{{wizard-mapper inputs=this.action.custom_fields property="custom_fields" onUpdate=(action "mappedFieldUpdated") options=(hash inputTypes="association" customFieldSelection="key" wizardFieldSelection="value" wizardActionSelection="value" userFieldSelection="value" keyPlaceholder="admin.wizard.action.custom_fields.key" context=this.customFieldsContext ) }}
{{/if}} {{#if this.sendMessage}}
{{wizard-mapper inputs=this.action.required property="required" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection="value" wizardFieldSelection=true userFieldSelection=true groupSelection=true context="action" ) }}
{{/if}} {{#if this.showPostAdvanced}}
{{wizard-mapper inputs=this.action.poster property="poster" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection="key,value" wizardFieldSelection=true userSelection="output" outputDefaultSelection="user" userLimit="1" context="action" ) }}
{{wizard-mapper inputs=this.action.guest_email property="guest_email" onUpdate=(action "mappedFieldUpdated") options=(hash textSelection="key,value" wizardFieldSelection=true outputPlaceholder="admin.wizard.action.guest_email.placeholder" context="action" ) }}
{{i18n "admin.wizard.action.skip_redirect.description" type="topic"}}
{{i18n "admin.wizard.action.suppress_notifications.description" type="topic" }}
{{/if}} {{#if this.routeTo}}
{{/if}}