37 lines
680 B
Plaintext
37 lines
680 B
Plaintext
<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 %> |