<% # encoding: utf-8 %> <%= f.error_messages %>

<%= f.label :level_type ,t("personal_journal.level_type")%>

<% @level_types.each do |level_type| %> <%= content_tag :label,:class => "checkbox inline" do -%> <%= check_box_tag 'writing_journal[journal_level_type_ids][]', level_type.id, @writing_journal.journal_level_type_ids.include?(level_type.id)%> <%= level_type.title %> <%= hidden_field_tag 'writing_journal[journal_level_type_ids][]', '' %> <% end %> <% end %>

<%= f.label :author_type ,t("personal_journal.author_type")%>

<% @author_types.each do |author_type| %> <%= content_tag :label,:class => "checkbox inline" do -%> <%= check_box_tag 'writing_journal[journal_author_type_ids][]', author_type.id, @writing_journal.journal_author_type_ids.include?(author_type.id)%> <%= author_type.title %> <%= hidden_field_tag 'writing_journal[journal_author_type_ids][]', '' %> <% end %> <% end %>

Tags

<% @tags.each do |tag| %> <%= content_tag :label,:class => "checkbox inline" do -%> <%= check_box_tag 'writing_journal[tag_ids][]', tag.id, @writing_journal.tag_ids.include?(tag.id)%> <%= tag.name %> <%= hidden_field_tag 'writing_journal[tag_ids][]', '' %> <% end %> <% end %>
<%= f.label :year ,t("personal_journal.year")%> <%= select_year((@writing_journal.year ? @writing_journal.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930}, {:name => 'writing_journal[year]'} ) %>
<%= f.label :paper_type ,t("personal_journal.paper_type")%> <%= f.select :journal_paper_type_id, @paper_types.collect {|t| [ t.title, t.id ]} %>
<% @site_valid_locales.each_with_index do |locale, i| %>
">
<%= f.label :paper_title ,t("personal_journal.paper_title")%> <%= f.fields_for :paper_title_translations do |f| %> <%= I18nVariable.from_locale(locale) %> <%= f.text_field locale, :class=>'post-title', :value => (@writing_journal.paper_title_translations[locale] rescue nil) %> <% end %>
<%= f.label :journal_title ,t("personal_journal.journal_title")%> <%= f.fields_for :journal_title_translations do |f| %> <%= I18nVariable.from_locale(locale) %> <%= f.text_field locale, :class=>'post-title', :value => (@writing_journal.journal_title_translations[locale] rescue nil) %> <% end %>
<%= f.label :authors,t("web_resource.authors") %> <%= f.fields_for :authors_translations do |f| %> <%= I18nVariable.from_locale(locale) %> <%= f.text_area locale, :size => "60x3", :value => (@writing_journal.authors_translations[locale] rescue nil) %> <% end %>
<% end %>
<%= f.label :publication_date ,t("personal_journal.publication_date")%> <%= f.date_select :publication_date, {:use_month_numbers => true, :start_year => Time.now.year, :end_year => 1930, :order => [:year, :month, :day] }, {:class => 'span1'} %>
<%= f.label :isbn, t("personal_journal.isbn") %> <%= f.text_field :isbn %>
<%= f.label :vol_no, t("personal_journal.vol_no") %> <%= f.text_field :vol_no %>
<%= f.label :issue_no, t("personal_journal.issue_no") %> <%= f.text_field :issue_no %>
<%= f.label :form_to, t("personal_journal.form_to") %> <%= f.text_field :form_to %>
<%= f.label :total_pages, t("personal_journal.total_pages") %> <%= f.text_field :total_pages %>
<%= f.label :url, t("personal_journal.url") %> <%= f.text_field :url %>
<%= f.label :keywords, t("personal_journal.keywords") %> <%= f.text_field :keywords %>
<%= f.label :abstract, t("personal_journal.abstract") %> <%= f.text_field :abstract %>
<%= f.label :language, t("personal_journal.language") %> <%= f.select :language, WritingJournal::LANGUAGE_TYPES, :prompt => 'Select' %>
<%= f.label :note, t("personal_journal.note") %> <%= f.text_area :note, :size => "60x3" %>
<% @writing_journal.writing_journal_files.each_with_index do |writing_journal_file, i| %> <%= f.fields_for :writing_journal_files, writing_journal_file do |f| %> <%= render :partial => 'form_file', :object => writing_journal_file, :locals => {:f => f, :i => i} %> <% end %> <% end %>
File File Name
<%= hidden_field_tag 'plugin_file_field_count', @writing_journal.writing_journal_files.count %> ADD/新增
<%= f.submit t('submit'), :class=>'btn btn-primary' %> <%= link_to t('cancel'), get_go_back, :class=>"btn" %>
<% content_for :page_specific_javascript do %> <%= javascript_include_tag "archive_plugin_form" %> <% end %>