Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 20:02:54 +01:00
Use a new template field
Dieser Commit ist enthalten in:
Ursprung
f5ffff35d8
Commit
b58c20c60c
2 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Laden …
In neuem Issue referenzieren