#index-container{ controller: 'scripts' } .container .row .listing.col-lg-12.col-xs-12 %section.content-header.index-header %h1 = t("keppler.modules.#{controller_path.underscore}") = entries(@total, @objects) .toolbar - if can?(Script).download? %li.toolbar-item.dropdown %a.dropdown-toggle{ 'data-toggle' => 'dropdown', href: '#', title: t('keppler.actions.download_records') } %i.icon-cloud-download %ul.dropdown-menu %li= link_to 'Descargar CSV', admin_scripts_path(format: :csv), class: 'tool-btn' %li= link_to 'Descargar XLS', admin_scripts_path(format: :xls), class: 'tool-btn' - if can?(Script).upload? .toolbar-item = link_to '#', class: 'tool-btn', title: t('keppler.actions.upload_records'), id: 'upload' do %i.icon-cloud-upload .toolbar-item = link_to reload_admin_scripts_path, class: 'tool-btn', remote: true, title: 'Recargar página' do %i.icon-reload - if can?(Script).destroy_multiple? .toolbar-item .checkbox %label{ for: 'checkbox-all' } %input{ type: 'checkbox', id: 'checkbox-all', '@click' => 'selectAll()' } %span.cr %i.cr-icon.glyphicon.glyphicon-ok .toolbar-item %a.tool-btn{ 'data-confirm' => '¿Estás seguro?', 'data-method' => 'delete', 'v-bind:href' => 'link', rel: 'nofollow', ':class' => '{disabled: !checks}' } %i.icon-trash .hide = form_tag admin_script_upload_path(@objects), id: 'upload-form', multipart: true, method: :post do = file_field_tag :file, id: 'upload-file' %ol.breadcrumb %li %a{ href: '#' } %i.icon-directions = t("keppler.modules.#{action_name.underscore}") .box.slice-box .box-body.no-padding %table.table %thead - if @objects.size.zero? %tr %th{ style: 'text-align: center;' } %h6= t('keppler.messages.not_found_records', model: t('keppler.models.pluralize.scripts')) - else %tr %td %th= t('activerecord.attributes.name') %th= t('activerecord.attributes.script') %th= t('activerecord.attributes.url') %th %tbody.objects-container = render 'admin/layouts/listing_preloader' = render 'listing', objects: @objects, query: @query %center.paginator-module = paginate @objects, window: 1 .listing-show = render 'description', activities: @activities %aside.control-sidebar.index-show - if can?(Script).create? .mixed-btn = link_to new_admin_script_path, class: 'btn-float' do +