Name | Card DB ID | Card # | Access? | Admin? | |||
---|---|---|---|---|---|---|---|
<%= user.name %> | <%= user.card_id %> | <%= user.card_number %> | <%= if user.card_permissions == 1 then "Access" end %> | <%= if user.admin? then "Admin" end %> | <%= link_to 'Upload', upload_path(user) %> | <%= link_to 'Edit', edit_user_path(user) %> | <%= link_to 'Destroy', user, :confirm => 'Are you sure? WARNING: THIS DOES NOT REMOVE THE USER FROM THE DOOR SYSTEM! DISABLE THEM FIRST.', :method => :delete %> |