<% content_for :page_specific_css do %> <%= stylesheet_link_tag "lib/main-forms" %> <%= stylesheet_link_tag "lib/fileupload" %> <%= stylesheet_link_tag "lib/main-list" %> <% end %> <% content_for :page_specific_javascript do %> <%= javascript_include_tag "lib/bootstrap-fileupload" %> <%= javascript_include_tag "lib/bootstrap-datetimepicker" %> <%= javascript_include_tag "lib/datetimepicker/datetimepicker.js" %> <%= javascript_include_tag "lib/modal-preview" %> <%= javascript_include_tag "lib/file-type" %> <% end %> <%#= f.error_messages %>
<%= f.label :category ,t(:category), :class=>"control-label muted" %>
<%= select_category(f, @module_app) %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
">
<%= f.label :title , t('e_paper.title'), :class=>"control-label muted" %>
<%= f.fields_for :title_translations do |f| %> <%= f.text_field locale, :class=>'input-block-level', :value => (@paper.title_translations[locale.to_s] rescue nil) %> <% end %>
<%= f.label :period ,t('e_paper.period'), :class => "control-label muted" %>
<%= f.fields_for :period_translations do |f| %> <%= f.text_field locale, :class=>'input-large', :value => (@paper.period_translations[locale] rescue nil) %>
<% end %>
<%= f.label :description ,t('e_paper.description'), :class => "control-label muted" %> <%= f.fields_for :description_translations do |f| %>
<%= f.text_area locale, :class=>'input-block-level', :value => (@paper.description_translations[locale] rescue nil) %>
<% end %>
<% end %>
<%= f.submit t('submit'), class: 'btn btn-primary' %>