<% # encoding: utf-8 %>

<%= form_for(@set_paper_type, :remote => true, :url => @paper_type_url ) do |f| %>

			<div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabe3"><%= (@set_paper_type.new_record? ? 'Add 論文型態' : 'Edit 論文型態') %></h3>
            </div>
            <div class="modal-body">
			
			<div class="control-group">
				<label for="http" class="control-label">Key</label>
				<div class="controls">
				<%= f.text_field :key %>
			</div>
			
			<div class="control-group">
				<label for="http" class="control-label">Title</label>
				<div class="controls">
				<%= f.text_field :title %>
            </div>
			
            <div class="modal-footer">
				<%= hidden_field_tag 'writing_journal_category[paper_type]', @set_paper_type.id %>
				<%= f.submit t('submit'), :class=>'btn btn-primary' %>
				<a class="btn" data-dismiss="modal"><%= t('cancel')%></a>
            </div>
<% end %>
		