From 535fff1a662cc367c8509690ee24ec7c3b68f0f4 Mon Sep 17 00:00:00 2001 From: manson Date: Fri, 16 May 2014 17:21:44 +0800 Subject: [PATCH] fix form language tab order --- app/views/admin/page_contents/new.html.erb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/admin/page_contents/new.html.erb b/app/views/admin/page_contents/new.html.erb index 660e302..35fcced 100644 --- a/app/views/admin/page_contents/new.html.erb +++ b/app/views/admin/page_contents/new.html.erb @@ -4,9 +4,9 @@ <%= form_for @page_content, :url => {:action => :create}, :html => {:class => 'form-horizontal main-forms'} do |f| %>
- +
- <% I18n.available_locales.each_with_index do |locale, i| %> + <% @site_in_use_locales.each_with_index do |locale, i| %>
<%= f.fields_for :content_translations do |con| %> - <%= label_tag(locale, "Content", :class=>"control-label muted") %> + <%= label_tag(locale, t(:content), :class=>"control-label muted") %>
<%= con.text_area locale, :class => "ckeditor input-block-level", :value => (@page.page_contexts.last.content_translations[locale] rescue nil)%> @@ -33,7 +33,7 @@
<%= f.hidden_field :page_id, :value=>@page.id.to_s %> <%= f.hidden_field :version, :value=>((@page.page_contexts.last.version + 1) rescue 1)%> - <%= f.submit t("page_content.save"), :class=> "btn btn-primary bt-form-save" %> + <%= f.submit t("save"), :class=> "btn btn-primary bt-form-save" %>