0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 09:20:29 +01:00

Use a new template field

Dieser Commit ist enthalten in:
Angus McLeod 2017-11-24 14:03:39 +08:00
Ursprung f5ffff35d8
Commit b58c20c60c
2 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -59,7 +59,7 @@
<div class="setting-value">
<label>{{i18n 'admin.wizard.action.post_builder.user_fields'}}{{builderUserFields}}</label>
<label>{{i18n 'admin.wizard.action.post_builder.wizard_fields'}}{{builderWizardFields}}</label>
{{d-editor value=action.post
{{d-editor value=action.post_template
placeholder='admin.wizard.action.post_builder.placeholder'
classNames='post-builder-editor'}}
</div>
@ -109,7 +109,7 @@
<div class="setting-value">
<label>{{i18n 'admin.wizard.action.post_builder.user_fields'}}{{builderUserFields}}</label>
<label>{{i18n 'admin.wizard.action.post_builder.wizard_fields'}}{{builderWizardFields}}</label>
{{d-editor value=action.post
{{d-editor value=action.post_template
placeholder='admin.wizard.action.post_builder.placeholder'
classNames='post-builder-editor'}}
</div>

Datei anzeigen

@ -186,7 +186,7 @@ class CustomWizard::Builder
title = data[a['title']]
if a['post_builder']
post = CustomWizard::Builder.build_post(a['post'], user, data)
post = CustomWizard::Builder.build_post(a['post_template'], user, data)
else
post = data[a['post']]
end
@ -248,7 +248,7 @@ class CustomWizard::Builder
title = data[a['title']]
if a['post_builder']
post = CustomWizard::Builder.build_post(a['post'], user, data)
post = CustomWizard::Builder.build_post(a['post_template'], user, data)
else
post = data[a['post']]
end