<% 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? %>
<%= f.label :article_author ,t('e_paper.article_author'), :class => "control-label muted" %>
<%= render partial: 'admin/member_selects/email_selection_box', locals: {field: 'e_paper_topic[article_authors][]', email_members: @paper.article_author_profiles} %>
<% if @paper.image.file %> <%= image_tag @paper.image %> <% else %> <% end %>
<%= t(:select_image) %> <%= t(:change) %> <%= f.file_field :image %> <%= t(:cancel) %>
<%= select_tags(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 :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 %>
<%= f.fields_for :content_translations do |f| %> <%= f.cktext_area locale, rows: 5, class: "input-block-level", :value => (@paper.content_translations[locale] rescue nil) %> <% end %>
<% end %>
<%= f.submit t('submit'), class: 'btn btn-primary' %>