Sha256: 8e5e116e3b817f2644d80e99ee7096d468dc838939210565ab583e4bd749a9e7
Contents?: true
Size: 1.97 KB
Versions: 1
Compression:
Stored size: 1.97 KB
Contents
%h2 Utilisateurs .nav .search-wrapper =form_tag users_path,:method => :get, :user_id => :id_element, id:'user_index_search' do .input-field =search_field_tag 'search', params['query'], {:placeholder => "Rechercher un utilisateur ...", name:"query", autofocus: true} %label.label-icon{:for => "user_index_search"} %i.material-icons search .card .card-content = link_to t('users.forms.buttons.new'), new_user_path,:class => "waves-effect waves-light btn" %table.table-auto.collection %thead %tr %th.hide-on-med-and-down= User.human_attribute_name('fullname') %th= User.human_attribute_name('hruid') %th %tbody - @users.each do |user| %tr.collection-item %td.hide-on-med-and-down .circle %img{:src => "#{user.avatar_url}",onerror:"this.style.display='none'", height: "100%"} = user.fullname+(user.role ? " - #{user.role.name}" : "") %td= user.hruid %td.hide-on-large-only %a.dropdown-button.btn-small{"data-activates" => "dropdown-users#{user.id}", "data-constrainwidth"=>"false", "data-beloworigin"=>"true", "hover" => "false", :href => "#"} %i.material-icons more_vert %td.hide-on-med-and-down = link_to t('users.forms.buttons.show'), user_path(user) %div{id: "dropdown-users#{user.id}", class: "dropdown-content"} %ul %li %span %b=user.fullname %li = link_to t('users.forms.buttons.show'), user_path(user) -if can? :update, user %li = link_to t('users.forms.buttons.edit'), edit_user_path(user) / = link_to 'Destroy', user, :method => :delete, :data => { :confirm => 'Are you sure?' } =will_paginate(@users,renderer: MaterializeLinkRenderer, class: 'pagination center')
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gorg_engine-1.2.3 | app/views/users/index.html.haml |