<%= @member.name rescue ''%>
<%= f.hidden_field :member_profile_id, :value => @member.id %>
<%= select_year((@journal_paper.year ? @journal_paper.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930}, {:name => 'journal_paper[year]', :class => "span1"} ) %>
<% @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 :associated_project %>
<%= 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 %>
<%= f.text_field :isbn %>
<%= f.text_field :keywords %>
<%= f.datetime_picker :publication_date, :no_label => true, :format=>"yyyy/MM/dd", :placeholder=>"YYYY/MM/DD" %>
<%= f.text_field :url , :class => "span6" %>
<%= f.text_area :abstract, rows: 2, class: "input-block-level" %>
<%= f.text_area :note, rows: 2, class: "input-block-level" %>