Retrospring/app/views/modal/_group.haml

29 lines
1.6 KiB
Plaintext
Raw Normal View History

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