<% content_for :page_specific_css do %> <%= stylesheet_link_tag "lib/main-forms" %> <% end %> <%= form_for @page_content, :url => {:action => :create}, :html => {:class => 'form-horizontal main-forms'} do |f| %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
<%= f.fields_for :content_translations do |con| %> <%= 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)%>
<% end %>
<% end %>
<%= 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("save"), :class=> "btn btn-primary bt-form-save" %>
<% end %>