0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-10 12:22:54 +01:00
discourse-custom-wizard/assets/javascripts/discourse/templates/components/wizard-text-editor.hbs

31 Zeilen
718 B
Handlebars

2020-03-29 09:49:33 +02:00
{{d-editor
value=value
2020-03-30 01:53:28 +02:00
forcePreview=forcePreview
placeholder=placeholder}}
2020-03-29 09:49:33 +02:00
<div class="wizard-editor-gutter">
2020-03-30 01:53:28 +02:00
{{#if previewEnabled}}
{{d-button
action="togglePreview"
translatedLabel=previewLabel}}
{{/if}}
2020-03-29 09:49:33 +02:00
{{#if fieldsEnabled}}
{{d-button
action="togglePopover"
translatedLabel=popoverLabel}}
{{#if showPopover}}
<div class="wizard-editor-gutter-popover">
<label>
{{i18n 'admin.wizard.action.post_builder.user_fields'}}
{{userFieldList}}
</label>
<label>
{{i18n 'admin.wizard.action.post_builder.wizard_fields'}}
{{wizardFieldList}}
</label>
</div>
{{/if}}
{{/if}}
</div>