Adding users without cards report, fixing mac registration for existing macs

This commit is contained in:
2013-09-23 18:34:18 -07:00
parent 377170d47c
commit cad46e45c5
8 changed files with 79 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
<%= 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>
<h2><%= pluralize(@mac.errors.count, "error") %> prohibited this MAC from being saved:</h2>
<ul>
<% @mac.errors.full_messages.each do |msg| %>

View File

@@ -1,4 +1,4 @@
<h1>Editing Mac</h1>
<h1>Editing MAC</h1>
<%= render 'form' %>

View File

@@ -29,7 +29,7 @@ Rails.logger.info mac.inspect %>
<% end %>
<% if can? :manage, Mac %>
<h3>All Macs</h3>
<h3>All MACs</h3>
<table>
<% @all_macs.each do |mac| %>
<tr <%= raw('class="hidden"') if mac.hidden? %>>

View File

@@ -1,4 +1,4 @@
<h1>New Mac</h1>
<h1>New MAC</h1>
<%= render 'form' %>

View File

@@ -4,7 +4,7 @@
</p>
<p>
<b>Mac:</b>
<b>MAC:</b>
<%= @mac.mac %>
</p>