cours0708/P5B/ruby/mon_projet/app/views/admin/suppliers/new.rhtml

36 lines
586 B
Plaintext
Raw Normal View History

2008-11-25 21:11:16 +00:00
<h1>New supplier</h1>
<%= error_messages_for :supplier %>
<% form_for(:supplier, :url => suppliers_path) do |f| %>
<p>
<b>Name</b><br />
<%= f.text_field :name %>
</p>
<p>
<b>Description</b><br />
<%= f.text_area :description %>
</p>
<p>
<b>Code</b><br />
<%= f.text_field :code %>
</p>
<p>
<b>Created at</b><br />
<%= f.datetime_select :created_at %>
</p>
<p>
<b>Updated at</b><br />
<%= f.datetime_select :updated_at %>
</p>
<p>
<%= submit_tag "Create" %>
</p>
<% end %>
<%= link_to 'Back', suppliers_path %>