<% if !@member.nil? %>
<%= @member.name rescue ''%>
<%= f.hidden_field :member_profile_id, :value => @member.id %>
<% else %>
<%= render partial: 'admin/member_selects/email_selection_box', locals: {field: 'author_members[]', email_members:[]} %>
<% end %>
<%= select_year((@journal_paper.year ? @journal_paper.year.to_i : DateTime.now.year), {:start_year => (DateTime.now.year+5), :end_year => 1930}, {:name => 'journal_paper[year]', :class => "span1"} ) %>
<%= f.text_field :vol_no %>
<%= f.text_field :issue_no %>
<%= f.text_field :form_to_start, :class=>'span1' %> ~ <%= f.text_field :form_to_end, :class=>'span1' %>
<%= f.text_field :total_pages %>
<% @journal_levels.each do |level_type| %>
<%= content_tag :label,:class => "checkbox inline" do -%>
<%= check_box_tag 'journal_paper[journal_level_ids][]', level_type.id, @journal_paper.journal_level_ids.include?(level_type.id)%>
<%= level_type.title %>
<%= hidden_field_tag 'journal_paper[journal_level_ids][]', '' %>
<% end %>
<% end %>
<%= f.select :journal_paper_type_id, @paper_types.collect {|t| [ t.title, t.id ]}, :class => "span3" %>
<% @author_types.each do |author_type| %>
<%= content_tag :label,:class => "checkbox inline" do -%>
<%= check_box_tag 'journal_paper[journal_paper_author_type_ids][]', author_type.id, @journal_paper.journal_paper_author_type_ids.include?(author_type.id)%>
<%= author_type.title %>
<% end %>
<% end %>
<%= f.text_field :number_of_authors, :class=>'span1' %>
<%= f.text_field :isbn %>
<%= f.datetime_picker :publication_date, :no_label => true, :format=>"yyyy/MM/dd", :placeholder=>"YYYY/MM/DD", :value => @journal_paper.publication_date, :new_record => @journal_paper.new_record? %>
<%= f.text_field :url , :class => "span6" %>
<%= f.text_field :keywords %>
<%= f.text_area :abstract, rows: 2, class: "input-block-level" %>
<%= f.text_area :note, rows: 2, class: "input-block-level" %>
<%= f.text_field :associated_project %>