.container.bg_light .row .col-md-12 .page_header %h1 #{t('admin.action.index.title')} DE USUÁRIOS CRUZAGRAFOS .hr .row .col-md-12 .breadcrumb .row .col-md-12 %ul.nav.nav-tabs %li.nav-item = link_to '', class: 'nav-link active', method: :get do %i.fa.fa-list = t('admin.actions.index.menu').capitalize .row .col-md-12 .tab-content.list .row .col-md-12.text-right = link_to 'Download as .xlsx', admin_cruza_grafos_users_path(request.parameters.merge(format: :xlsx)),download: 'CruzaGrafos.xlsx', class: 'pr-1' .tab-pane.fade.show.active %nav.navbar.navbar-light.bg-light.filter = simple_form_for 'cruza_grafos_users', :url =>"/admin/cruza_grafos_users", :method => :get, :id=>'form_filter', html: { class: "form-inline"} do |f| = f.input 'text', class: 'form-control mr-sm-2', placeholder: t('admin.misc.filter'), input_html: { name: 'q',value: params[:q]} = button_tag :button, class: 'btn btn-outline-success' do %i.fa.fa-refresh = t('admin.misc.refresh') %a.btn.btn-outline-danger{:href => '/admin/cruza_grafos_users'} %i.fa.fa-times %table.table.table-condensed.table-striped %thead %tr %th #{t('simple_form.labels.defaults.username').titleize} %th Email %th #{t('activerecord.attributes.user.situation').titleize} %th #{t('simple_form.labels.defaults.options').titleize} %th #{t('simple_form.labels.defaults.actions').titleize} %tbody - @admin_cruza_grafos_users.each do |admin_cruza_grafos_user| %tr %td= admin_cruza_grafos_user.user.name %td= admin_cruza_grafos_user.user.email - if admin_cruza_grafos_user.in_trial %td Tempo Experimental - else %td= t("activerecord.models.cruza_grafos_user.#{admin_cruza_grafos_user.user_state}") %td = link_to admin_cruza_grafos_user_path(admin_cruza_grafos_user) do %img{:title => "Informações do usuário Cruza Grafos", :alt => "Informações do usuário Cruza Grafos", :src => asset_path( 'icons/info.png' )}/ = link_to edit_admin_cruza_grafos_user_path(admin_cruza_grafos_user) do %img{:title => "Editar informações Cruza Grafos", :alt => "Editar informações Cruza Grafos", :src => asset_path( 'icons/edit.png' )}/ = link_to admin_cruza_grafos_user_path(admin_cruza_grafos_user), method: :delete, data:{confirm: "Deseja mesmo excluir"} do %img{:title => "Excluir usuário Cruza Grafos", :alt => "Excluir usuário Cruza Grafos", :src => asset_path( 'icons/delete.png' )}/ %td - if admin_cruza_grafos_user.waiting_moderation? = link_to approve_moderation_admin_cruza_grafos_users_path(admin_cruza_grafos_user), method: :get, data:{confirm: "Deseja mesmo aprovar?"} do %img{:title => "Aprovar", :alt => "Aprovar", :src => asset_path( 'icons/approve.png' )}/ = link_to '' , 'data-target': "#myModal_"+admin_cruza_grafos_user.id, 'data-toggle': "modal" do %img{:title => "Negar", :alt => "Negar", :src => asset_path( 'icons/reject.png' )}/ - else Sem ação - @admin_cruza_grafos_users.each do |admin_cruza_grafos_user| .modal.fade{"aria-labelledby" => "myModalLabel", :role => "dialog", :tabindex => "-1", :id => "myModal_"+admin_cruza_grafos_user.id} .modal-dialog{:role => "document"} .modal-content .modal-header %h4#myModalLabel.modal-title Escreva o Motivo %button.close{"aria-label" => "Close", "data-dismiss" => "modal", :type => "button"} %span{"aria-hidden" => "true"} × .modal-body %form.rejectMessageForm{:action => reject_moderation_admin_cruza_grafos_users_path(admin_cruza_grafos_user), :method => "get", :id => "userReject_" + admin_cruza_grafos_user.id} .form-group %textarea{:name => "reason", :class => 'form-control'} .col-12 %input.submitReject.btn.btn-primary{:type => "submit"}/ %button.btn.btn-secondary{"aria-label" => "Close", "data-dismiss" => "modal", :type => "button"} %span{"aria-hidden" => "true"} Cancelar