mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
User form
This commit is contained in:
parent
14f9304c6d
commit
0e7e83134c
11 changed files with 252 additions and 6 deletions
46
app/views/admin/users/show.haml
Normal file
46
app/views/admin/users/show.haml
Normal file
|
@ -0,0 +1,46 @@
|
|||
.row
|
||||
.col-sm-6
|
||||
%h2.text-center-xs
|
||||
= "#{t('shared.user_details')}"
|
||||
.col-sm-6
|
||||
%h2.text-right.text-center-xs
|
||||
= link_to(t('shared.edit'), edit_admin_user_path(@user), class: 'btn btn-primary')
|
||||
= link_to(t('shared.delete'), admin_user_path(@user), method: :delete, data: { confirm: t('shared.are_you_sure') }, class: 'btn btn-danger')
|
||||
|
||||
%hr
|
||||
- if @user.errors.any?
|
||||
- @user.errors.each do |attr, err|
|
||||
= err
|
||||
%br
|
||||
- if @user.errors.any?
|
||||
%hr
|
||||
.row
|
||||
.col-md-6
|
||||
.panel.panel-default
|
||||
.panel-heading
|
||||
%h3.panel-title= t('shared.general')
|
||||
.panel-body
|
||||
%dl.dl-horizontal
|
||||
%dt= t('shared.username')
|
||||
%dd= @user.username
|
||||
|
||||
%dt= t('shared.password')
|
||||
%dd= @user.password
|
||||
|
||||
%dt= t('shared.identity_code')
|
||||
%dd= @user.identity_code
|
||||
|
||||
.col-md-6
|
||||
.panel.panel-default
|
||||
.panel-heading
|
||||
%h3.panel-title= t('shared.address')
|
||||
.panel-body
|
||||
%dl.dl-horizontal
|
||||
%dt= t('shared.email')
|
||||
%dd= @user.email
|
||||
|
||||
%dt= t('shared.registrar')
|
||||
%dd= @user.registrar
|
||||
|
||||
%dt= t('shared.admin')
|
||||
%dd= @user.admin
|
Loading…
Add table
Add a link
Reference in a new issue