blob: 81ec4ad6ba1f86c74cc462956f4fa4cb6a2e78c4 (
plain)
1
2
3
4
5
6
7
8
9
10
|
<% (I18n.available_locales - [:root]).each do |locale| %>
<div class="layout_row_label">
<%= MenuItem.human_attribute_name(:title) %> <%= locale.to_s.upcase %>
</div>
<div class="layout_row_content">
<%= text_field_tag "menu_item[titles][#{locale}]",
menu_item.translations.find_by(:locale => locale)&.title,
:placeholder => (locale == I18n.default_locale ? nil : t(".falls_back")) %>
</div>
<% end %>
|