diff --git a/app/components/admin/site_customization/information_texts/form_component.html.erb b/app/components/admin/site_customization/information_texts/form_component.html.erb index b8f8b6444..d9b1bb245 100644 --- a/app/components/admin/site_customization/information_texts/form_component.html.erb +++ b/app/components/admin/site_customization/information_texts/form_component.html.erb @@ -7,6 +7,7 @@ <% contents.each do |group| %> <% group.each do |content| %> <%= content.key %> + <%= hidden_field_tag "contents[content_#{content.key}][id]", content.key %> <% (content.globalize_locales & enabled_locales.map(&:to_sym)).each do |locale| %> <%= render Admin::SiteCustomization::InformationTexts::FormFieldComponent.new(content, locale: locale) %> <% end %> diff --git a/app/components/admin/site_customization/information_texts/form_field_component.html.erb b/app/components/admin/site_customization/information_texts/form_field_component.html.erb index 1852afba0..1d064b9b5 100644 --- a/app/components/admin/site_customization/information_texts/form_field_component.html.erb +++ b/app/components/admin/site_customization/information_texts/form_field_component.html.erb @@ -1,5 +1,4 @@ <% globalize(locale) do %> - <%= hidden_field_tag "contents[content_#{i18n_content.key}][id]", i18n_content.key %> <%= text_area_tag "contents[content_#{i18n_content.key}]values[value_#{locale}]", text, rows: 5,