User | Note | DB ID | Card # | Access? | |||
---|---|---|---|---|---|---|---|
<%= card.user.name %> | <%= card.name %> | <%= card.id %> | <%= card.card_number %> | <%= if card.card_permissions == 1 then "Access" end %> | <%= link_to 'Upload', upload_path(card) if can? :upload, card %> | <%= link_to 'Edit', edit_card_path(card) if can? :update, card %> | <%= link_to 'Destroy', card, :confirm => 'Are you sure? WARNING: THIS DOES NOT REMOVE THE CARD FROM THE DOOR SYSTEM! DISABLE AND UPLOAD IT FIRST.', :method => :delete if can? :destroy, card %> |