mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
29 lines
1.1 KiB
Text
29 lines
1.1 KiB
Text
.roles{ id: 'myroles' }
|
|
- unless @role.blank?
|
|
%p.text-muted
|
|
= @role.first.description
|
|
|
|
%hr
|
|
.row
|
|
.col-md-6
|
|
= semantic_form_for(:user, url: add_user_admin_conference_path(@conference.short_title, role: @selected), remote: true) do |f|
|
|
%h4
|
|
= f.input :email, label: "Add role '#{@selected}' to user: ", placeholder: "User's email"
|
|
= f.action :submit, as: :button, label: "Add User", button_html: {value: 'Add', class: 'btn btn-primary'}
|
|
.row
|
|
.col-md-12
|
|
%h3 Users with role #{@selected}
|
|
%table.table.table-striped.table-bordered.table-hover
|
|
%thead
|
|
%th ID
|
|
%th Name
|
|
%th Email
|
|
%tbody
|
|
- @role_users[@selection].each do |user|
|
|
%tr
|
|
%td
|
|
= link_to remove_user_admin_conference_path(@conference.short_title, user: user, role: @selected), method: :delete, remote: true, title: 'Remove user' do
|
|
%i{class: 'fa fa-times'}
|
|
= user.id
|
|
%td= user.name
|
|
%td= user.email
|