Making it possible for users to easily register existing MACs

This commit is contained in:
2013-09-23 18:51:22 -07:00
parent cad46e45c5
commit c5e02a51be
4 changed files with 17 additions and 2 deletions

View File

@@ -93,6 +93,14 @@
<% end %>
</p>
<b>Computers: </b><%= link_to "+ Add", new_mac_path, :class => 'btn' if can? :create, Mac %>
<ul>
<% @user.macs.each do |mac| %>
<li><%= link_to mac.mac, mac %></li>
<% end %>
<% if @user.macs.blank? %><li>n/a</li><% end %>
</ul>
<p>
<% if current_user.admin? then %>
<b>Payments:</b>