diff --git a/app/assets/javascripts/admin/addon/lib/template-form-fields.js b/app/assets/javascripts/admin/addon/lib/template-form-fields.js index 80bf3c42050..f152a751d6a 100644 --- a/app/assets/javascripts/admin/addon/lib/template-form-fields.js +++ b/app/assets/javascripts/admin/addon/lib/template-form-fields.js @@ -4,6 +4,7 @@ export const templateFormFields = [ { type: "checkbox", structure: `- type: checkbox + id: ${I18n.t("admin.form_templates.field_placeholders.id")} attributes: label: "${I18n.t("admin.form_templates.field_placeholders.label")}" validations: @@ -12,6 +13,7 @@ export const templateFormFields = [ { type: "input", structure: `- type: input + id: ${I18n.t("admin.form_templates.field_placeholders.id")} attributes: label: "${I18n.t("admin.form_templates.field_placeholders.label")}" placeholder: "${I18n.t( @@ -23,6 +25,7 @@ export const templateFormFields = [ { type: "textarea", structure: `- type: textarea + id: ${I18n.t("admin.form_templates.field_placeholders.id")} attributes: label: "${I18n.t("admin.form_templates.field_placeholders.label")}" placeholder: "${I18n.t( @@ -34,6 +37,7 @@ export const templateFormFields = [ { type: "dropdown", structure: `- type: dropdown + id: ${I18n.t("admin.form_templates.field_placeholders.id")} choices: - "${I18n.t("admin.form_templates.field_placeholders.choices.first")}" - "${I18n.t("admin.form_templates.field_placeholders.choices.second")}" @@ -50,6 +54,7 @@ export const templateFormFields = [ { type: "upload", structure: `- type: upload + id: ${I18n.t("admin.form_templates.field_placeholders.id")} attributes: file_types: ".jpg, .png, .gif" allow_multiple: false @@ -60,6 +65,7 @@ export const templateFormFields = [ { type: "multiselect", structure: `- type: multi-select + id: ${I18n.t("admin.form_templates.field_placeholders.id")} choices: - "${I18n.t("admin.form_templates.field_placeholders.choices.first")}" - "${I18n.t("admin.form_templates.field_placeholders.choices.second")}" diff --git a/app/assets/javascripts/discourse/app/components/composer-container.hbs b/app/assets/javascripts/discourse/app/components/composer-container.hbs index 0b4e430133c..62ed4270389 100644 --- a/app/assets/javascripts/discourse/app/components/composer-container.hbs +++ b/app/assets/javascripts/discourse/app/components/composer-container.hbs @@ -125,6 +125,7 @@ @focusTarget={{this.composer.focusTarget}} @disableTextarea={{this.composer.disableTextarea}} @formTemplateIds={{this.composer.formTemplateIds}} + @formTemplateInitialValues={{this.composer.formTemplateInitialValues}} >