Remove i18n_variable for views

This commit is contained in:
Christophe Vilayphiou committed 2012-07-27 19:13:39 +08:00
1 parent 49dd3a1770
commit 53cae0a9ee
32 files changed
+64 -63

No files matched your search

+2 -2
View File
@@ -6,11 +6,11 @@
<%= f.text_field :name, :class => 'text' %>
</p>
<%= f.fields_for :i18n_variable, (@item.new_record? ? @item.build_i18n_variable : @item.i18n_variable) do |f| %>
<%= f.fields_for :title_translations do |f| %>
<% @site_valid_locales.each do |locale| %>
<p>
<%= f.label :locale, "#{t('admin.title')} #{I18nVariable.from_locale(locale)}" %>
<%= f.text_field locale %>
<%= f.text_field locale, :value => (@item.title_translations[locale] rescue nil) %>
</p>
<% end %>
<% end %>
+1 -1
View File
@@ -7,7 +7,7 @@
<% @site_valid_locales.each do |locale| %>
<p>
<b><%= "#{t('admin.title')} #{locale}" %></b>
<%= @item.i18n_variable[locale] if @item.i18n_variable %>
<%= @item.title_translations[locale] if @item.title %>
</p>
<% end %>