mirror of
https://github.com/internetee/registry.git
synced 2025-07-26 04:28:27 +02:00
49 lines
1.3 KiB
Text
49 lines
1.3 KiB
Text
.row
|
|
.col-sm-6
|
|
%h2.text-center-xs
|
|
= "#{t('api_user_details')}"
|
|
.col-sm-6
|
|
%h2.text-right.text-center-xs
|
|
= link_to(t('edit'), edit_admin_api_user_path(@api_user), class: 'btn btn-primary')
|
|
= link_to(t('delete'), admin_api_user_path(@api_user), method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-danger')
|
|
|
|
%hr
|
|
- if @api_user.errors.any?
|
|
- @api_user.errors.each do |attr, err|
|
|
= err
|
|
%br
|
|
- if @api_user.errors.any?
|
|
%hr
|
|
.row
|
|
.col-md-6
|
|
.panel.panel-default
|
|
.panel-heading
|
|
%h3.panel-title= t('general')
|
|
.panel-body
|
|
%dl.dl-horizontal
|
|
%dt= t('username')
|
|
%dd= @api_user.username
|
|
|
|
%dt= t('password')
|
|
%dd= @api_user.password
|
|
|
|
%dt= t('active')
|
|
%dd= @api_user.active
|
|
|
|
.col-md-6
|
|
.panel.panel-default
|
|
.panel-heading
|
|
%h3.panel-title= t('certificates')
|
|
.panel-body
|
|
%dl.dl-horizontal
|
|
%dt= t('csr')
|
|
- if @api_user.csr
|
|
%dd= link_to(t('download'), download_csr_admin_api_user_path)
|
|
- else
|
|
%dd -
|
|
|
|
%dt= t('crt')
|
|
/ - if @api_user.csr
|
|
/ %dd= link_to(t('download'), download_crt_admin_api_user_path)
|
|
/ - else
|
|
/ %dd -
|