added tab navigation
This commit is contained in:
parent
b99fe56038
commit
0e052ee1be
|
@ -6,17 +6,31 @@
|
||||||
%span{"aria-hidden" => "true"} ×
|
%span{"aria-hidden" => "true"} ×
|
||||||
%span.sr-only Close
|
%span.sr-only Close
|
||||||
%h4#modal-group-memberships-label.modal-title Manage group memberships
|
%h4#modal-group-memberships-label.modal-title Manage group memberships
|
||||||
%ul.list-group.groups--list
|
%div{role: "tabpanel"}
|
||||||
- current_user.groups.each do |group|
|
%ul.nav.nav-tabs{role: "tablist"}
|
||||||
%li.list-group-item
|
%li.active{role: "presentation"}
|
||||||
.media
|
%a{href: "#grouplist", aria: {controls: "grouplist"}, data: {toggle: "tab"}, role: "tab"}
|
||||||
.pull-left.j2-table
|
Groups
|
||||||
%input.input--center{type: :checkbox, name: 'gm-group-check', data: { group_name: group.name }, checked: @user.member_of?(group)}
|
%li{role: "presentation"}
|
||||||
.media-body
|
%a{href: "#create", aria: {controls: "create"}, data: {toggle: "tab"}, role: "tab"}
|
||||||
.list-group-item-heading= group.display_name
|
Create new group
|
||||||
.list-group-item-text.text-muted.j2-up
|
|
||||||
%span{id: "#{group.name}-members"} x
|
.tab-content
|
||||||
members
|
.tab-pane.active{role:"tabpanel", id: "grouplist"}
|
||||||
|
%ul.list-group.groups--list
|
||||||
|
- current_user.groups.each do |group|
|
||||||
|
%li.list-group-item
|
||||||
|
.media
|
||||||
|
.pull-left.j2-table
|
||||||
|
%input.input--center{type: :checkbox, name: 'gm-group-check', data: { group_name: group.name }, checked: @user.member_of?(group)}
|
||||||
|
.media-body
|
||||||
|
.list-group-item-heading= group.display_name
|
||||||
|
.list-group-item-text.text-muted.j2-up
|
||||||
|
%span{id: "#{group.name}-members"} x
|
||||||
|
members
|
||||||
|
.tab-pane{role:"tabpanel", id: "create"}
|
||||||
|
.modal-body
|
||||||
|
Nothing here yet :(
|
||||||
.modal-footer
|
.modal-footer
|
||||||
%button.btn.btn-default{"data-dismiss" => "modal", :type => "button"} Cancel
|
%button.btn.btn-default{"data-dismiss" => "modal", :type => "button"} Cancel
|
||||||
%button.btn.btn-primary{name: 'gm-save', :type => "button"} Save
|
%button.btn.btn-primary{name: 'gm-save', :type => "button"} Save
|
Loading…
Reference in New Issue