Show current translation or I18n value for locale on textarea
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<% globalize(locale) do %>
|
||||
<%= hidden_field_tag "contents[content_#{content.key}][id]", content.key %>
|
||||
<%= text_area_tag "contents[content_#{content.key}]values[value_#{locale}]",
|
||||
content.send("value_#{locale}"),
|
||||
content.value || t(content.key),
|
||||
{ rows: 5,
|
||||
class: "js-globalize-attribute",
|
||||
style: display_translation?(locale),
|
||||
|
||||
Reference in New Issue
Block a user