Open-Source-Access-Control-.../app/views/cards/show.html.erb

29 lines
500 B
Plaintext
Raw Normal View History

2013-01-25 16:28:32 +00:00
<p>
<b>User:</b>
<%= @card.user.name unless @card.user.blank? %>
</p>
<p>
<b>Card Note:</b>
<%= @card.name %>
</p>
<p>
<b>Card DB ID:</b>
<%= @card.id %>
</p>
<p>
<b>Card Number:</b>
<%= @card.card_number %>
</p>
<p>
<b>Card Permissions:</b>
<%= @card.card_permissions %>
</p>
<%= link_to 'Upload to Door', upload_path(@card) if can? :upload, @card %>
2013-01-25 16:28:32 +00:00
<% if can? :update, @card then %><%= link_to 'Edit', edit_card_path(@card) %> |<% end %>
<%= link_to 'Back', cards_path %>