2015-01-13 22:07:40 -08:00
|
|
|
|
#modal-group-memberships.modal.fade{"aria-hidden" => "true", "aria-labelledby" => "modal-group-memberships-label", :role => "dialog", :tabindex => "-1"}
|
|
|
|
|
.modal-dialog
|
|
|
|
|
.modal-content
|
|
|
|
|
.modal-header
|
2020-04-19 14:26:29 -07:00
|
|
|
|
%h5#modal-group-memberships-label.modal-title= t 'views.modal.group.title'
|
2015-01-13 22:07:40 -08:00
|
|
|
|
%button.close{"data-dismiss" => "modal", :type => "button"}
|
|
|
|
|
%span{"aria-hidden" => "true"} ×
|
2015-06-07 06:10:17 -07:00
|
|
|
|
%span.sr-only= t 'views.actions.close'
|
2015-01-14 11:14:58 -08:00
|
|
|
|
%div{role: "tabpanel"}
|
|
|
|
|
%ul.nav.nav-tabs{role: "tablist"}
|
2020-04-25 10:02:39 -07:00
|
|
|
|
%li.nav-item{role: "presentation"}
|
|
|
|
|
%a.nav-link.active{href: "#grouplist", aria: {controls: "grouplist"}, data: {toggle: "tab"}, role: "tab"}
|
2015-06-07 06:10:17 -07:00
|
|
|
|
= t 'views.modal.group.tabs.main'
|
2020-04-25 10:02:39 -07:00
|
|
|
|
%li.nav-item{role: "presentation"}
|
|
|
|
|
%a.nav-link{href: "#create", aria: {controls: "create"}, data: {toggle: "tab"}, role: "tab"}
|
2015-06-07 06:10:17 -07:00
|
|
|
|
= t 'views.modal.group.tabs.create'
|
2015-01-14 11:14:58 -08:00
|
|
|
|
|
|
|
|
|
.tab-content
|
|
|
|
|
.tab-pane.active{role:"tabpanel", id: "grouplist"}
|
|
|
|
|
%ul.list-group.groups--list
|
|
|
|
|
- current_user.groups.each do |group|
|
2020-04-25 06:16:45 -07:00
|
|
|
|
= render 'modal/group/item', group: group, user: @user
|
2015-01-14 11:14:58 -08:00
|
|
|
|
.tab-pane{role:"tabpanel", id: "create"}
|
|
|
|
|
.modal-body
|
2015-06-07 06:10:17 -07:00
|
|
|
|
%input#new-group-name.form-control{type: :text, placeholder: t('views.modal.group.name')}
|
|
|
|
|
%button#create-group.btn.btn-primary{type: :button, data: { user: @user.screen_name }}= t('views.modal.group.create')
|
2015-01-13 22:07:40 -08:00
|
|
|
|
.modal-footer
|
2015-06-07 06:10:17 -07:00
|
|
|
|
%button.btn.btn-primary{name: 'gm-save', type: :button, data: { dismiss: :modal }}= t 'views.actions.done'
|