diff options
Diffstat (limited to 'app/views/menu_items/_title_fields.html.erb')
| -rw-r--r-- | app/views/menu_items/_title_fields.html.erb | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/app/views/menu_items/_title_fields.html.erb b/app/views/menu_items/_title_fields.html.erb index 81ec4ad6..daf449cf 100644 --- a/app/views/menu_items/_title_fields.html.erb +++ b/app/views/menu_items/_title_fields.html.erb | |||
| @@ -1,10 +1,12 @@ | |||
| 1 | <% (I18n.available_locales - [:root]).each do |locale| %> | 1 | <% (I18n.available_locales - [:root]).each do |locale| %> |
| 2 | <div class="layout_row_label"> | 2 | <div class="layout_row"> |
| 3 | <%= MenuItem.human_attribute_name(:title) %> <%= locale.to_s.upcase %> | 3 | <div class="layout_row_label"> |
| 4 | </div> | 4 | <%= MenuItem.human_attribute_name(:title) %> <%= locale.to_s.upcase %> |
| 5 | <div class="layout_row_content"> | 5 | </div> |
| 6 | <%= text_field_tag "menu_item[titles][#{locale}]", | 6 | <div class="layout_row_content"> |
| 7 | menu_item.translations.find_by(:locale => locale)&.title, | 7 | <%= text_field_tag "menu_item[titles][#{locale}]", |
| 8 | :placeholder => (locale == I18n.default_locale ? nil : t(".falls_back")) %> | 8 | menu_item.translations.find_by(:locale => locale)&.title, |
| 9 | :placeholder => (locale == I18n.default_locale ? nil : t(".falls_back")) %> | ||
| 10 | </div> | ||
| 9 | </div> | 11 | </div> |
| 10 | <% end %> | 12 | <% end %> |
