<%= link_to api_user, admin_registrar_api_user_path(registrar, api_user) %> |
<%= api_user.active %> |
<% if !api_user.accredited? || api_user.accreditation_expired? %>
<%= button_to t('.set_test_btn'),
{ controller: 'api_users', action: 'set_test_date_to_api_user', user_api_id: api_user.id },
{ method: :post, class: 'btn btn-primary'} %>
<% else %>
<%= button_to t('.remove_test_btn'),
{ controller: 'api_users', action: 'remove_test_date_to_api_user', user_api_id: api_user.id },
{ method: :post, class: 'btn btn-danger'} %>
<% end %>
|
<% end %>