.container.bg_light .row .col-md-12 .page_header %h1 #{t('admin.actions.index.title', model_label_plural: 'Centrais de Ajuda')} .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 .tab-pane.fade.show.active %nav.navbar.navbar-light.bg-light.filter = simple_form_for root_path do |f| = f.input 'text', class: 'form-control mr-sm-2', placeholder: t('admin.misc.filter') = button_tag :submit, class: 'btn btn-outline-success' do %i.fa.fa-refresh = t('admin.misc.refresh') = button_tag :submit, class: 'btn btn-outline-danger' do %i.fa.fa-times = link_to t('admin.misc.add_new'), new_helpdesk_path, class: 'btn btn-default submit_buttons' %table.table.table-condensed.table-striped %thead %tr %th #{t('activerecord.attributes.helpdesk.published').titleize} %th #{t('activerecord.attributes.helpdesk.title').titleize} %th #{t('activerecord.attributes.application_record.slug').titleize} %th #{t('activerecord.attributes.application_record.created_at').titleize} %th %th %tbody - @helpdesks.each do |helpdesk| %tr %td - if helpdesk.published? = button_to unpublish_helpdesks_path(id: helpdesk.id), method: :patch, data:{confirm: "Deseja mesmo publicar #{helpdesk.title}"}, class: 'publish_button' do %i.fa.fa-eye-slash.fa-fw.fa-inverse - else = button_to publish_helpdesks_path(id: helpdesk.id), method: :patch, data:{confirm: "Deseja mesmo despublicar #{helpdesk.title}"}, class: 'publish_button' do %i.fa.fa-eye.fa-fw.fa-inverse %td= helpdesk.title %td= link_to "#{helpdesk.slug}", "#{helpdesk.slug}", target: :blank %td= l(helpdesk.created_at, format: :short) %td = link_to helpdesk_path(id: helpdesk.id) do %i.fa.fa-info-circle.fa-fw.fa-inverse = link_to edit_helpdesk_path(id: helpdesk.id) do %i.fa.fa-pencil.fa-fw.fa-inverse = link_to "/#{helpdesk.slug}", target: :blank do %i.fa.fa-camera.fa-inverse %td = button_to helpdesk_path(id: helpdesk.id), method: :delete, data:{confirm: "Deseja mesmo excluir #{helpdesk.title}"} do %i.fa.fa-times.fa-fw.fa-inverse