rework users page, add role assignment
This commit is contained in:
parent
9998e00ae3
commit
80d48ed7d8
13 changed files with 118 additions and 72 deletions
19
app/views/admin/users/edit.html.haml
Normal file
19
app/views/admin/users/edit.html.haml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
.row
|
||||
.col-md-12
|
||||
.tabbable
|
||||
%ul.nav.nav-tabs
|
||||
%li.active
|
||||
= link_to 'User', '#user-content', 'data-toggle'=>'tab'
|
||||
%li= link_to 'Roles', '#roles-content', 'data-toggle'=>'tab'
|
||||
.tab-content
|
||||
#user-content.tab-pane.active
|
||||
= render partial: 'form'
|
||||
|
||||
#roles-content.tab-pane
|
||||
.row
|
||||
.col-md-6
|
||||
%br
|
||||
= render partial: 'user_roles', locals: { user: @user }
|
||||
.col-md-6
|
||||
%br
|
||||
= render partial: 'add_roles', locals: { user: @user }
|
||||
Loading…
Add table
Add a link
Reference in a new issue