<% if !params[:user_id].blank? %>
<%= User.from_id(params[:user_id]).name rescue ''%>
<% end %>
<%= 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"} ) %>
<%= f.select :language, @site_valid_locales, :prompt => 'Select', :class => "span3" %>
<% @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 :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 %>
<%= 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" %>