Fix missing values in tag form when editing

This commit is contained in:
chris 2013-04-22 19:44:46 +08:00
parent 24523640a7
commit ff03d66439
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<%= form_for :tag, :url => admin_tag_path(tag), :method => :put, :remote => true do |f| %>
<%= f.fields_for :name_translations do |f| %>
<% @site_valid_locales.each do |locale| %>
<%= I18nVariable.from_locale(locale) %>:<%= f.text_field locale %>
<%= I18nVariable.from_locale(locale) %>:<%= f.text_field locale, value: @tag.name_translations[locale] %>
<% end %>
<% end %>
<%= hidden_field_tag :module_app_id, @module_app_id %>