clarion/app/views/management/users/index.html.slim

31 lines
1.1 KiB
Plaintext

.row
.col-lg-12
.panel.panel-default
.panel-heading
h2.panel-title= User.model_name.human(count: 2).mb_chars.capitalize
.panel-body
table.table.table-striped.table-hover.record-table#conferences
thead
tr
th = User.human_attribute_name :picture
th = User.human_attribute_name :title
th = User.human_attribute_name :admin
th.actions
tbody
- @profiles.each do |profile|
- user = profile.user
tr
td= image_tag(profile.picture.thumb.url)
td= profile.name
td.boolean-col
= link_to toggle_admin_management_user_path(user), method: :put do
- if user.admin?
.btn.btn-primary= icon('circle-o')
- else
.btn.btn-success= icon('dot-circle-o')
td.actions
div.btn-group.btn-group-sm
= action_buttons(@conference, user, [:show, :edit, :destroy])