<% 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/module-area" %> <%= javascript_include_tag "validator" %> <% end %>
<%= select_tags(f, @module_app) %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
"> <%= render partial: 'form_text_locale', locals: {f: f, node: :title, locale: locale, style: 'long'}%>
<% end %> <%= render partial: 'form_text_org', locals: {f: f, node: :page} %> <% @site_in_use_locales.each_with_index do |locale, i| %>
"> <%= render partial: 'form_text_locale', locals: {f: f, node: :author, locale: locale, style: 'long'}%>
<% end %>
<%= f.label :author_url, t("chapter.author_url"), class: "control-label muted" %>
<%= f.text_field :author_url, class: "post-title long" %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
"> <%= render partial: 'form_text_area', locals: {f: f, node: :author_description, locale: locale} %> <%= render partial: 'form_text_area', locals: {f: f, node: :text, locale: locale} %> <%= render partial: 'form_text_locale', locals: {f: f, node: :keywords, locale: locale, style: 'long'}%>
<% end %>
<%= f.fields_for :chapter_files, (f.object.chapter_files[0] || f.object.chapter_files.new) do |f| %> <%= render :partial => '/admin/publications/form_file', :object => f.object, :locals => {:f => f, :i => 0, accept: 'application/pdf'} %> <% end %>
<%= f.submit t('submit'), class: 'btn btn-primary' %>
<% content_for :page_specific_css do %> <% end %>