#all_index_admin_jquery_start .container .row .col-lg-12.col-md-12.col-sm-12.col-xs-12 %button#toTop{:title => "Go to top"} ⌅ %h3.text-center Services %hr = link_to 'New Service', new_service_path, class: 'btn btn-success btn-lg btn-block' %hr .col-lg-3.col-md-3.col-sm-12.col-xs-12 =render 'layouts/admin/side_menu' .col-lg-9.col-md-9.col-sm-12.col-xs-12 .row = form_tag services_path, :method => 'get', :id => "form-search-in", :class => '' do .col-lg-4.col-md-4.col-sm-12.col-xs-12 .filter-admin-searcher = select_tag "pag_web", options_for_select([[t('the_grand_selection')+" ("+@all_TGS.count.to_s+")","TGS"],[t('puente_romano_marbella')+" ("+@all_PRM.count.to_s+")","PRM"],[t('hotel_sultan_club')+" ("+@all_HSC.count.to_s+")","HSC"],[t('suitesbanus')+" ("+@all_SB.count.to_s+")","SB"],[t('stmoritz')+" ("+@all_STM.count.to_s+")","STM"],[t('alp_courchevel')+" ("+@all_ALP.count.to_s+")","ALP"],[t('cabo_san_lucas')+" ("+@all_CSL.count.to_s+")","CSL"]], params[:pag_web]), :class => 'form-control padding-form', include_blank: t('all') = text_field_tag :ref, params[:ref], placeholder: "Reference", :class => 'form-control padding-form-admin' .col-lg-2.col-md-2.col-sm-12.col-xs-12 .filter-admin-searcher - if params[:hidden] == 'true' .right-align-text = t('not_hidden')+':' = radio_button_tag 'hidden', false .right-align-text = t('hidden')+':' = radio_button_tag 'hidden', true, checked = true .right-align-text = t('both')+':' = radio_button_tag 'hidden', '' - elsif params[:hidden] == 'false' .right-align-text = t('not_hidden')+':' = radio_button_tag 'hidden', false, checked = true .right-align-text = t('hidden')+':' = radio_button_tag 'hidden', true .right-align-text = t('both')+':' = radio_button_tag 'hidden', '' - elsif params[:hidden] == '' .right-align-text = t('not_hidden')+':' = radio_button_tag 'hidden', false .right-align-text = t('hidden')+':' = radio_button_tag 'hidden', true .right-align-text = t('both')+':' = radio_button_tag 'hidden', '', checked = true - else .right-align-text = t('not_hidden')+':' = radio_button_tag 'hidden', false, checked = true .right-align-text = t('hidden')+':' = radio_button_tag 'hidden', true .right-align-text = t('both')+':' = radio_button_tag 'hidden', '' .col-lg-2.col-md-2.col-sm-12.col-xs-12 .filter-admin-searcher - if params[:show] == 'all' .right-align-text = t('full_list')+':' = radio_button_tag 'show', 'all', checked = true .right-align-text = t('last_5')+':' = radio_button_tag 'show', 'last' - elsif params[:show] == 'last' .right-align-text = t('full_list')+':' = radio_button_tag 'show', 'all' .right-align-text = t('last_5')+':' = radio_button_tag 'show', 'last', checked = true - else .right-align-text = t('full_list')+':' = radio_button_tag 'show', 'all', checked = true .right-align-text = t('last_5')+':' = radio_button_tag 'show', 'last' .col-lg-2.col-md-2.col-sm-12.col-xs-12 .filter-admin-searcher %button.btn.btn-block.btn-primary-search.btn-primary.search-btn-x{:type => "submit", :class => 'padding-form', :title => t('search')} .fas.fa-search %table.table.table-striped.table-bordered.table-hover{:width => "825", :style => "table-layout: fixed; width: 100%;"} %tr %th{:width => "220", :style => "width: 220px;"} Title %th{:width => "605", :style => "width: 605px;"} Info(private) - @services.each do |service| -if service.hidden == true %tr#tr-accommodation-hidde %td{:width => "220", :style => "width: 220px;"} .center = "TGS-S" + service.id.to_s + " (hidden)" %br = service.title_en %br %br = image_tag(service.ImagesService.order("position").first.image.thumblittle.url, class: 'img-thumbnail') unless service.ImagesService.blank? %br %br = link_to 'Show', service, class: 'btn btn-primary' = link_to 'Edit', edit_service_path(service), class: 'btn btn-warning', data: { 'no-turbolink'=>true} = link_to 'Destroy', service, :method => :delete, :data => { confirm: 'Are you sure?' }, class: 'btn btn-danger' %td{:width => "605", :style => "width: 605px; word-wrap:break-word;"} = raw(service.p_info) - else %tr#tr-accommodation %td{:width => "220", :style => "width: 220px;"} .center = "TGS-S" + service.id.to_s %br = service.title_en %br %br = image_tag(service.ImagesService.order("position").first.image.thumblittle.url, class: 'img-thumbnail') unless service.ImagesService.blank? %br %br = link_to 'Show', service, class: 'btn btn-primary' = link_to 'Edit', edit_service_path(service), class: 'btn btn-warning', data: { 'no-turbolink'=>true} = link_to 'Destroy', service, :method => :delete, :data => { confirm: 'Are you sure?' }, class: 'btn btn-danger' %td{:width => "605", :style => "width: 605px; word-wrap:break-word;"} = raw(service.p_info)