Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-22 17:30:29 +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">
|
<div class="setting-value">
|
||||||
<label>{{i18n 'admin.wizard.action.post_builder.user_fields'}}{{builderUserFields}}</label>
|
<label>{{i18n 'admin.wizard.action.post_builder.user_fields'}}{{builderUserFields}}</label>
|
||||||
<label>{{i18n 'admin.wizard.action.post_builder.wizard_fields'}}{{builderWizardFields}}</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'
|
placeholder='admin.wizard.action.post_builder.placeholder'
|
||||||
classNames='post-builder-editor'}}
|
classNames='post-builder-editor'}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
<div class="setting-value">
|
<div class="setting-value">
|
||||||
<label>{{i18n 'admin.wizard.action.post_builder.user_fields'}}{{builderUserFields}}</label>
|
<label>{{i18n 'admin.wizard.action.post_builder.user_fields'}}{{builderUserFields}}</label>
|
||||||
<label>{{i18n 'admin.wizard.action.post_builder.wizard_fields'}}{{builderWizardFields}}</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'
|
placeholder='admin.wizard.action.post_builder.placeholder'
|
||||||
classNames='post-builder-editor'}}
|
classNames='post-builder-editor'}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -186,7 +186,7 @@ class CustomWizard::Builder
|
||||||
title = data[a['title']]
|
title = data[a['title']]
|
||||||
|
|
||||||
if a['post_builder']
|
if a['post_builder']
|
||||||
post = CustomWizard::Builder.build_post(a['post'], user, data)
|
post = CustomWizard::Builder.build_post(a['post_template'], user, data)
|
||||||
else
|
else
|
||||||
post = data[a['post']]
|
post = data[a['post']]
|
||||||
end
|
end
|
||||||
|
@ -248,7 +248,7 @@ class CustomWizard::Builder
|
||||||
title = data[a['title']]
|
title = data[a['title']]
|
||||||
|
|
||||||
if a['post_builder']
|
if a['post_builder']
|
||||||
post = CustomWizard::Builder.build_post(a['post'], user, data)
|
post = CustomWizard::Builder.build_post(a['post_template'], user, data)
|
||||||
else
|
else
|
||||||
post = data[a['post']]
|
post = data[a['post']]
|
||||||
end
|
end
|
||||||
|
|
Laden …
In neuem Issue referenzieren