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

Tags

<% @tags.each do |tag| %> <%= content_tag :label,:class => "checkbox inline" do -%> <%= check_box_tag 'honor[tag_ids][]', tag.id, @honor.tag_ids.include?(tag.id)%> <%= tag.name %> <%= hidden_field_tag 'honor[tag_ids][]', '' %> <% end %> <% end %>
<%= f.label :year ,t("personal_honor.year")%> <%= select_year((@honor.year ? @honor.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930}, {:name => 'honor[year]'} ) %>
<%= f.label :honor_category ,t("personal_honor.honor_category")%> <%= f.select :honor_category_id, @honor_categorys.collect {|t| [ t.title, t.id ]} %>
<%= f.label :award_name, t("personal_honor.award_name") %> <%= f.text_field :award_name %>
<%= f.label :awarding_unit, t("personal_honor.awarding_unit") %> <%= f.text_field :awarding_unit %>
<%= f.label :url, t("personal_honor.url") %> <%= f.text_field :url %>
<%= f.label :keywords, t("personal_honor.keywords") %> <%= f.text_field :keywords %>
<%= f.label :language, t("personal_honor.language") %> <%= f.radio_button :language, "Chinese" %> <%= t("personal_honor.Chinese") %> <%= f.radio_button :language, "English" %> <%= t("personal_honor.English") %>
<%= f.label :note, t("personal_honor.note") %> <%= f.text_area :note, :size => "60x3" %>
<%= f.submit t('submit'), :class=>'btn btn-primary' %> <%= link_to t('cancel'), get_go_back, :class=>"btn" %>