Sha256: 63c0b761d69dc0e851b3bf9fbb207adbf81e9fc80b6aaaa81c681cafca147776

Contents?: true

Size: 1.46 KB

Versions: 2

Compression:

Stored size: 1.46 KB

Contents

- content_for :title do
  = t('.title')

.row
  .col.s12
    %h3= t('.title')
    %form{ class: 'col s12', style: "font-size: 1.5em"}
      .input-field
        %input.col.s11{ placeholder: "#{ t('.search')}", autofocus:"autofocus", type: "text", name:"user[q]", id:'user_q'}
        %i.col.s1.mdi-action-search{ style: "font-size: 2em"}

.row
  .col.s12
    %table.responsive-table.hoverable.striped
      %thead
        %tr
          %th{ :"data-field"=>"name"}= t('.name')
          %th{ :"data-field"=>"account"}= t('.account')
          %th{ :"data-field"=>"email"}= t('.email')
          %th{ :"data-field"=>"active"}= t('.active')
          %th{ :"data-field"=>"invitations"}= t('.invitations')
          %th= t(:delete)

      %tbody
        - @resources.each do |user|
          %tr{ id: "tr-#{user.id}", class:"#{invited_user? user}"}
            %td= link_to user.name, user
            %td= link_to( user.account.name, user.account) rescue ''
            %td= user.email rescue ''
            %td
              - if user.active
                %i.mdi-action-done.small
            %td= user.invitations.count
            %td
              = link_to user, class: 'delete_link', data: { url: '/admin/users', name: "#{user.name}", id: "#{user.id}", remove: "#tr-#{user.id}" } do
                %i.mdi-action-delete.small{ title: "#{t('.delete')}"}

    %br

  .row
    .right-align
      = link_to t('.new'), new_user_path, class: 'waves-effect waves-light btn' if policy(resource).new?

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oxen_account-0.1.1 app/views/users/index.html.haml
oxen_account-0.1.0 app/views/users/index.html.haml