mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 05:26:17 +02:00
47 lines
2.1 KiB
Text
47 lines
2.1 KiB
Text
<ol class="breadcrumb">
|
|
<li><%= link_to t('admin.registrars.index.header'), admin_registrars_path %></li>
|
|
<li><%= link_to @api_user.registrar, admin_registrar_path(@api_user.registrar) %></li>
|
|
<li><%= t 'admin.registrars.show.api_users.header' %></li>
|
|
<li><%= @api_user.username %></li>
|
|
</ol>
|
|
|
|
<div class="page-header">
|
|
<div class="row" style="display: flex; flex-direction: row; align-items: baseline;">
|
|
<div class="col-sm-8">
|
|
<h1><%= @api_user.username %></h1>
|
|
</div>
|
|
|
|
<div class="col-sm-4 text-right" style="display: flex; flex-direction: row; align-items: baseline; justify-content: space-evenly;">
|
|
<%= link_to t('.edit_btn'), edit_admin_registrar_api_user_path(@api_user.registrar,
|
|
@api_user),
|
|
class: 'btn btn-primary' %>
|
|
<%= link_to t('.delete_btn'), admin_registrar_api_user_path(@api_user.registrar,
|
|
@api_user),
|
|
method: :delete,
|
|
data: { confirm: t('.delete_btn_confirm') },
|
|
class: 'btn btn-default' %>
|
|
|
|
<% 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 %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<%= render 'admin/api_users/show/details' %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<%= render 'admin/api_users/show/certificates' %>
|
|
</div>
|
|
</div>
|