mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
Refactor user to admin and api user
This commit is contained in:
parent
f3215680d5
commit
037cb57e00
34 changed files with 551 additions and 551 deletions
46
app/views/admin/admin_users/show.haml
Normal file
46
app/views/admin/admin_users/show.haml
Normal file
|
@ -0,0 +1,46 @@
|
|||
.row
|
||||
.col-sm-6
|
||||
%h2.text-center-xs
|
||||
= "#{t('user_details')}"
|
||||
.col-sm-6
|
||||
%h2.text-right.text-center-xs
|
||||
= link_to(t('edit'), edit_admin_admin_user_path(@admin_user), class: 'btn btn-primary')
|
||||
= link_to(t('delete'), admin_admin_user_path(@admin_user), method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-danger')
|
||||
|
||||
%hr
|
||||
- if @admin_user.errors.any?
|
||||
- @admin_user.errors.each do |attr, err|
|
||||
= err
|
||||
%br
|
||||
- if @admin_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= @admin_user.username
|
||||
|
||||
%dt= t('password')
|
||||
%dd= @admin_user.password
|
||||
|
||||
%dt= t('identity_code')
|
||||
%dd= @admin_user.identity_code
|
||||
|
||||
.col-md-6
|
||||
.panel.panel-default
|
||||
.panel-heading
|
||||
%h3.panel-title= t('address')
|
||||
.panel-body
|
||||
%dl.dl-horizontal
|
||||
%dt= t('email')
|
||||
%dd= @admin_user.email
|
||||
|
||||
%dt= t('role')
|
||||
- if @admin_user.roles
|
||||
%dd= t(@admin_user.roles.first)
|
||||
- else
|
||||
%dd
|
Loading…
Add table
Add a link
Reference in a new issue