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

42 Zeilen
986 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
2022-03-29 21:15:09 +02:00
action=(action "togglePreview")
2020-03-30 01:53:28 +02:00
translatedLabel=previewLabel}}
{{/if}}
2021-04-12 16:19:53 +02:00
2020-03-29 09:49:33 +02:00
{{#if fieldsEnabled}}
{{d-button
2022-03-29 21:15:09 +02:00
action=(action "togglePopover")
2020-03-29 09:49:33 +02:00
translatedLabel=popoverLabel}}
2021-04-12 16:19:53 +02:00
2020-03-29 09:49:33 +02:00
{{#if showPopover}}
<div class="wizard-editor-gutter-popover">
<label>
2021-04-12 16:19:53 +02:00
{{i18n "admin.wizard.action.post_builder.user_properties"}}
{{userPropertyList}}
2020-03-29 09:49:33 +02:00
</label>
2021-04-12 16:19:53 +02:00
2020-04-14 07:46:06 +02:00
{{#if hasWizardFields}}
<label>
2021-04-12 16:19:53 +02:00
{{i18n "admin.wizard.action.post_builder.wizard_fields"}}
2020-04-14 07:46:06 +02:00
{{wizardFieldList}}
</label>
{{/if}}
2021-04-12 16:19:53 +02:00
{{#if hasWizardActions}}
<label>
2021-04-12 16:19:53 +02:00
{{i18n "admin.wizard.action.post_builder.wizard_actions"}}
{{wizardActionList}}
</label>
{{/if}}
2020-03-29 09:49:33 +02:00
</div>
{{/if}}
{{/if}}
</div>