<% 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" %> <% end %> <%#= f.error_messages %>
<%= f.label :category ,t(:category), :class=>"control-label muted" %>
<%= select_category(f, @module_app) %>
<%= f.label :period ,t('e_paper.period'), :class => "control-label muted" %>
<%= f.datetime_picker :period, :no_label => true, :new_record => @paper.new_record? %>
<% if @paper.image.file %> <%= image_tag @paper.image %> <% else %> <% end %>
<%= t(:select_image) %> <%= t(:change) %> <%= f.file_field :image %> <%= t(:cancel) %>
<% @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 :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' %>