2013-02-01 03:33:40 +00:00
|
|
|
<%= form_for(@mac) do |f| %>
|
|
|
|
<% if @mac.errors.any? %>
|
|
|
|
<div id="error_explanation">
|
|
|
|
<h2><%= pluralize(@mac.errors.count, "error") %> prohibited this Mac from being saved:</h2>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<% @mac.errors.full_messages.each do |msg| %>
|
|
|
|
<li><%= msg %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :user_id, "User" %><br />
|
2013-02-01 05:39:33 +00:00
|
|
|
<%= collection_select(:mac, :user_id, @users, :id, :name, :include_blank => true) %>
|
2013-02-01 03:33:40 +00:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2013-02-01 05:39:33 +00:00
|
|
|
<%= f.label :mac %><br />
|
2013-02-01 03:33:40 +00:00
|
|
|
<%= f.text_field :mac %>
|
|
|
|
</div>
|
2013-02-01 05:39:33 +00:00
|
|
|
<div class="field">
|
|
|
|
<%= f.label :note %><br />
|
|
|
|
<%= f.text_field :note %>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<%= f.label :hidden %><br />
|
|
|
|
<%= f.check_box :hidden %>
|
|
|
|
</div>
|
2013-02-01 03:33:40 +00:00
|
|
|
<div class="actions">
|
|
|
|
<%= f.submit %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|