Asset-Tracker/app/views/assets/new.html.erb
2011-06-14 18:08:28 -07:00

56 lines
1.1 KiB
Plaintext
Executable File

<h1>New asset</h1>
<% form_for(@asset) do |f| %>
<%= f.error_messages %>
<p>
<%= f.label :tag %><br />
<%= f.text_field :tag %>
</p>
<p>
<%= f.label :name, "Network Name" %><br />
<%= f.text_field :name %>
</p>
<p>
<%= f.label :make %><br />
<%= f.text_field :make %>
</p>
<p>
<%= f.label :model %><br />
<%= f.text_field :model %>
</p>
<p>
<%= f.label :serial %><br />
<%= f.text_field :serial %>
</p>
<p>
<%= f.label :category %><br />
<%= f.text_field :category %>
</p>
<p>
<%= f.label :warranty, "Warranty Expires" %><br />
<%= f.date_select :warranty %>
</p>
<p>
<%= f.label :location %><br />
<%= f.text_field :location %>
</p>
<p>
<%= f.label :assigned, "Assigned To" %><br />
<%= f.text_field :assigned %>
</p>
<p>
<%= f.label :status %><br />
<%= f.text_field :status %>
</p>
<p>
<%= f.label :updated %><br />
<%= f.date_select :updated %>
</p>
<p>
<%= f.submit 'Create' %>
</p>
<% end %>
<%= link_to 'Back', assets_path %>