36 lines
586 B
Plaintext
36 lines
586 B
Plaintext
|
<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 %>
|