Remove i18n_variable for views

This commit is contained in:
Christophe Vilayphiou committed 2012-07-26 05:58:09 +08:00
1 parent acb7fe0dea
commit 5713df685d
32 files changed
+64 -63

No files matched your search

+2 -2
View File
@@ -13,9 +13,9 @@
<tbody>
<tr class="list_item">
<td><%= is_new ? (f.text_field :key, {:style => "width:150px"}) : @attribute.key %></td>
<%= f.fields_for :i18n_variable, (@attribute.new_record? ? @attribute.build_i18n_variable : @attribute.i18n_variable) do |f| %>
<%= f.fields_for :title_translations do |f| %>
<% @site_valid_locales.each do |locale| %>
<td><%= f.text_field locale, :style => "width:150px" %></td>
<td><%= f.text_field locale, :style => "width:150px", :value => (@attribute.title_translations[locale] rescue nil) %></td>
<% end %>
<% end %>
</tr>