<% content_for :page_specific_css do %> <%= stylesheet_link_tag "lib/main-forms" %> <% end %> <% @page_context = @page.page_contexts.order(:version=>-1).first #take last version page_context %> <%= 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| %>
<%= label_tag(locale, t("page_content.wiki_pages"), :class=>"control-label muted") %>
<%= select_tag "wikis[#{locale.to_s}]", options_for_select(@options[locale.to_s]), {:prompt => "----Select a WIKI----"} %> Create " >Insert
<%= 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_context.content_translations[locale] rescue nil)%>
<% end %>
<% end %>
<%= f.hidden_field :page_id, :value=>@page.id.to_s %> <%= f.submit t("page_content.save"), :class=> "btn btn-primary bt-form-save" %>
<% end %>