Sha256: 1112b54cf26b7ecdad13a23607302df332af2ceaaa10628c8fc8124cb95e3c26

Contents?: true

Size: 1.96 KB

Versions: 6

Compression:

Stored size: 1.96 KB

Contents

- content_for :title, 'Users' + (params[:target] == 'group' ? ' > Groups' : '')
- content_for :content_title do
  <i class="fa fa-users"></i> Users#{params[:target] == 'group' ? ' <i class="fa fa-angle-double-right"></i> Groups' : ''}
- @scope = @users

- if @user.errors.any?
  .alert.alert-danger
    i.fa.fa-ban
    h4 #{pluralize(@user.errors.count, "error")} prohibited this employee from being saved:
    ul
    - @user.errors.full_messages.each do |message|
      li= message

.row
  .col-md-7
    .box
      .box-header
        h3.box-title All Users
      .box-body.table-responsive.no-padding
        table#users.table.table-hover data-definitions-path="#{users_path}"
          thead
            tr
              th #
              th.col-md-5 Name
              th.col-md-5 Email
              th.col-md-1 &nbsp;
              th.col-md-1 &nbsp;
          tbody
            - for user in @users do
              tr
                td= user.id
                td.no-decorate= link_to user.name, user_path(user)
                td= user.email
                td
                  - unless user.google_account?
                    span.label.label-default Group
                  - if user.suspended_at?
                    span.label.label-warning Suspended
                td= link_to raw('<i class="fa fa-chevron-right"></i> View Details'), user, class: 'btn btn-sm btn-default'
      .box-footer
        = paginate @users, theme: 'list'

  .col-md-5
    .box
      .box-header
        h3.box-title New Mail Address
      .box-body
        = form_for @user, url: users_path, role: 'form', method: :post do |form|
          .form-group
            = form.label :name
            = form.text_field :name, class: 'form-control', placeholder: 'Group Name'
          .form-group
            = form.label :email
            = form.text_field :email, class: 'form-control', placeholder: 'group@example.com'
          .form-group
            = form.submit 'Add mail address', class: 'btn btn-default'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kuroko2-0.4.2 app/views/kuroko2/users/index.html.slim
kuroko2-0.4.1 app/views/kuroko2/users/index.html.slim
kuroko2-0.4.0 app/views/kuroko2/users/index.html.slim
kuroko2-0.3.4 app/views/kuroko2/users/index.html.slim
kuroko2-0.3.3 app/views/kuroko2/users/index.html.slim
kuroko2-0.3.2 app/views/kuroko2/users/index.html.slim