Sha256: 8fc193eac18fce8acdb2727e896f408a7e2e25d057ea54d7c1d2d29157ae5a07

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 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:"account[q]", id:'account_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"=>"active"}= t('.active')
          %th= t(:delete)

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

    %br

  .row
    .right-align
      = link_to t('.new'), new_account_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/accounts/index.html.haml
oxen_account-0.1.0 app/views/accounts/index.html.haml