Adding users without cards report, fixing mac registration for existing macs
This commit is contained in:
@@ -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| %>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<h1>Editing Mac</h1>
|
||||
<h1>Editing MAC</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
|
||||
@@ -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? %>>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<h1>New Mac</h1>
|
||||
<h1>New MAC</h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Mac:</b>
|
||||
<b>MAC:</b>
|
||||
<%= @mac.mac %>
|
||||
</p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user