Update information texts translatable fields

This part used the code we deleted in order to make it easier to
refactor the rest of the translatable models. Now we add the code back.
This commit is contained in:
Javi Martín
2018-10-11 10:55:23 +02:00
parent 387b345f77
commit 00983200d4
7 changed files with 28 additions and 19 deletions

View File

@@ -2,5 +2,8 @@
<%= hidden_field_tag "contents[content_#{content.key}][id]", content.key %>
<%= text_area_tag "contents[content_#{content.key}]values[value_#{locale}]",
translation_for_locale(content, locale) || t(content.key, locale: locale),
merge_translatable_field_options({rows: 5}, locale) %>
rows: 5,
class: "js-globalize-attribute",
style: site_customization_display_translation_style(locale),
data: { locale: locale } %>
<% end %>