Retrospring/app/views/user/_modal_group_memberships.ht...

22 lines
1.1 KiB
Plaintext
Raw Normal View History

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
%button.close{"data-dismiss" => "modal", :type => "button"}
%span{"aria-hidden" => "true"} ×
%span.sr-only Close
%h4#modal-group-memberships-label.modal-title Manage group memberships
2015-01-14 06:35:53 -08:00
%ul.list-group
2015-01-13 22:07:40 -08:00
- current_user.groups.each do |group|
2015-01-14 06:35:53 -08:00
%li.list-group-item
.media
2015-01-14 06:44:27 -08:00
.pull-left.j2-table
%input.input--center{type: :checkbox, name: 'gm-group-check', data: { group_name: group.name }, checked: @user.member_of?(group)}
2015-01-14 06:35:53 -08:00
.media-body
.list-group-item-heading= group.display_name
.list-group-item-text.text-muted.j2-up
%span{id: "#{group.name}-members"} x
members
2015-01-13 22:07:40 -08:00
.modal-footer
%button.btn.btn-default{"data-dismiss" => "modal", :type => "button"} Cancel
%button.btn.btn-primary{name: 'gm-save', :type => "button"} Save