<%= f.label :year ,t("personal_book.year")%>
<%= select_year((@writing_book.year ? @writing_book.year.to_i : DateTime.now.year), {:start_year => DateTime.now.year, :end_year => 1930}, {:name => 'writing_book[year]'} ) %>
<%= f.label :book_paper_type ,t("personal_book.book_paper_type")%>
<%= f.select :book_paper_type_id, @paper_types.collect {|t| [ t.title, t.id ]} %>
<%= f.label :publish_date ,t("personal_book.publish_date")%>
<%= f.date_select :publish_date, {:use_month_numbers => true, :start_year => Time.now.year, :end_year => 1930, :order => [:year, :month, :day] }, {:class => 'span1'} %>
<% @site_in_use_locales.each_with_index do |locale, i| %>
">
<%= f.label :paper_title ,t("personal_book.paper_title")%>
<%= f.fields_for :paper_title_translations do |f| %>
<%= I18nVariable.from_locale(locale) %>
<%= f.text_field locale, :class=>'post-title', :value => (@writing_book.paper_title_translations[locale] rescue nil) %>
<% end %>
<%= f.label :book_title ,t("personal_book.book_title")%>
<%= f.fields_for :book_title_translations do |f| %>
<%= I18nVariable.from_locale(locale) %>
<%= f.text_field locale, :class=>'post-title', :value => (@writing_book.book_title_translations[locale] rescue nil) %>
<% end %>
<%= f.label :extracted_chapters ,t("personal_book.extracted_chapters")%>
<%= f.fields_for :extracted_chapters_translations do |f| %>
<%= I18nVariable.from_locale(locale) %>
<%= f.text_field locale, :class=>'post-title', :value => (@writing_book.extracted_chapters_translations[locale] rescue nil) %>
<% end %>
<%= f.label :publisher ,t("personal_book.publisher")%>
<%= f.fields_for :publisher_translations do |f| %>
<%= I18nVariable.from_locale(locale) %>
<%= f.text_field locale, :class=>'post-title', :value => (@writing_book.publisher_translations[locale] rescue nil) %>
<% end %>
<%= f.label :editor ,t("personal_book.editor")%>
<%= f.fields_for :editor_translations do |f| %>
<%= I18nVariable.from_locale(locale) %>
<%= f.text_field locale, :class=>'post-title', :value => (@writing_book.editor_translations[locale] rescue nil) %>
<% end %>
<%= f.label :authors,t("web_resource.authors") %>
<%= f.fields_for :authors_translations do |f| %>
<%= I18nVariable.from_locale(locale) %>
<%= f.text_area locale, :size => "60x3", :value => (@writing_book.authors_translations[locale] rescue nil) %>
<% end %>
<% end %>
<%= f.label :publication_date ,t("personal_book.publication_date")%>
<%= f.date_select :publication_date, {:use_month_numbers => true, :start_year => Time.now.year, :end_year => 1890, :order => [:year, :month, :day] }, {:class => 'span1'} %>
<%= f.label :url, t("personal_book.url") %>
<%= f.text_field :url %>
<%= f.label :keywords, t("personal_book.keywords") %>
<%= f.text_field :keywords %>
<%= f.label :pages, t("personal_book.pages") %>
<%= f.text_field :pages %>
<%= f.label :isbn, t("personal_book.isbn") %>
<%= f.text_field :isbn %>
<%= f.label :language, t("personal_book.language") %>
<%= f.radio_button :language, "Chinese" %> <%= t("personal_book.Chinese") %>
<%= f.radio_button :language, "English" %> <%= t("personal_book.English") %>
<%= f.label :note, t("personal_book.note") %>
<%= f.text_area :note, :size => "60x3" %>