Guest User

Untitled

a guest
Jan 13th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. <% @patients.each do |patient| %>
  2. <tr>
  3. <td><%=h patient.first_name %></td>
  4. <td><%=h patient.last_name %></td>
  5. <td><center><%=h patient.show_remaining_visits(patient) %></center></td>
  6. <td><%=h patient.therapist.therapist_full_name %></td>
  7. <td><%= link_to 'Show', patient %></td>
  8. <% if can? :update, patient %>
  9. <td><%= link_to 'Edit', edit_patient_path(patient) %></td>
  10. <% end %>
  11. <% if can? :destroy, patient %>
  12. <td><%= link_to 'Destroy', patient, :confirm => 'Are you sure? Remember, if this Patient is assigned to a Patient Authorization, it cannot be destroyed.', :method => :delete %></td>
  13. <% end %>
Add Comment
Please, Sign In to add comment