<% if !@member.nil? %>
<%= render partial: 'admin/member_selects/email_selection_box', locals: {field: 'author_members[]', email_members:@member} %>
<% else %>
<%= render partial: 'admin/member_selects/email_selection_box', locals: {field: 'author_members[]', email_members:[]} %>
<% end %>
<%= select_year((@patent.year ? @patent.year.to_i : DateTime.now.year), {:start_year => (DateTime.now.year+5), :end_year => 1930}, {:name => 'patent[year]', :class => "span1"} ) %>
<% @author_types.each do |author_type| %>
<%= content_tag :label,:class => "checkbox inline" do -%>
<%= check_box_tag 'patent[patent_author_type_ids][]', author_type.id, @patent.patent_author_type_ids.include?(author_type.id)%>
<%= author_type.title %>
<% end %>
<% end %>
<%= f.text_field :patent_no %>
<%= f.text_field :progress_status %>
<%= f.datetime_picker :publish_date, :no_label => true, :format=>"yyyy/MM/dd", :value => @patent.publish_date, :new_record => @patent.new_record? %>
<%= f.datetime_picker :application_date, :no_label => true, :format=>"yyyy/MM/dd", :value => @patent.application_date, :new_record => @patent.new_record? %>
<%= f.datetime_picker :end_date, :no_label => true, :format=>"yyyy/MM/dd", :value => @patent.end_date, :new_record => @patent.new_record? %>
<%= f.text_field :url , :class => "span5" %>
<%= f.text_area :keywords, class: "ckeditor input-block-level" %>
<%= f.text_area :note, rows: 2, class: "ckeditor input-block-level" %>