% # encoding: utf-8 %>
<%= form_for(:writing_book_category, :remote => true, :url => @url, :method => @verb, :html => { :id => 'form_writing_book_category' } ) do |f| %>
<%= (@writing_book_category.new_record? ? 'Add' : 'Edit') %>
<%= f.label :key %>
<%= f.text_field :key %>
<%#= f.label :display %>
<%#= f.radio_button :display, "List" List%>
<%#= f.radio_button :display, "Picture" Picture%>
<%#
顯示方式是設定在前台頁面時,資訊所呈現的樣式 %>
<%= f.submit t('submit'), :class=>'btn btn-primary' %>
<% end %>