1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/discourse/templates/components/wizard-text-editor.hbs
2022-03-29 21:15:09 +02:00

41 Zeilen
986 B
Handlebars

{{d-editor
value=value
forcePreview=forcePreview
placeholder=placeholder}}
<div class="wizard-editor-gutter">
{{#if previewEnabled}}
{{d-button
action=(action "togglePreview")
translatedLabel=previewLabel}}
{{/if}}
{{#if fieldsEnabled}}
{{d-button
action=(action "togglePopover")
translatedLabel=popoverLabel}}
{{#if showPopover}}
<div class="wizard-editor-gutter-popover">
<label>
{{i18n "admin.wizard.action.post_builder.user_properties"}}
{{userPropertyList}}
</label>
{{#if hasWizardFields}}
<label>
{{i18n "admin.wizard.action.post_builder.wizard_fields"}}
{{wizardFieldList}}
</label>
{{/if}}
{{#if hasWizardActions}}
<label>
{{i18n "admin.wizard.action.post_builder.wizard_actions"}}
{{wizardActionList}}
</label>
{{/if}}
</div>
{{/if}}
{{/if}}
</div>