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

37 lines
680 B
Plaintext
Raw Normal View History

2008-11-25 21:11:16 +00:00
<h1>Editing supplier</h1>
<%= error_messages_for :supplier %>
<% form_for(:supplier, :url => supplier_path(@supplier), :html => { :method => :put }) 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 "Update" %>
</p>
<% end %>
<%= link_to 'Show', supplier_path(@supplier) %> |
<%= link_to 'Back', suppliers_path %>