.container .row .col-lg-12.col-md-12.col-sm-12.col-xs-12 %h3.text-center Web Page Configs %hr = link_to 'Add New web page config', new_web_page_config_path, class: 'btn btn-success btn-block btn-lg', data: { 'no-turbolink'=>true} %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 %table.table.table-striped.table-bordered.table-hover{:width => "825", :style => "table-layout: fixed; width: 100%;"} %tr %th{:width => "220", :style => "width: 220px;"} Config %th{:width => "605", :style => "width: 605px;"} Web - Page - @web_page_configs.each do |web_page_configs| %tr#tr-accommodation %td{:width => "220", :style => "width: 220px;"} .center = link_to 'Show', web_page_configs, class: 'btn btn-primary' = link_to 'Edit', edit_web_page_config_path(web_page_configs), class: 'btn btn-warning', data: { 'no-turbolink'=>true} = link_to 'Destroy', web_page_configs, :method => :delete, :data => { confirm: 'Are you sure?' }, class: 'btn btn-danger' %td{:width => "605", :style => "width: 605px; word-wrap:break-word;"} - if web_page_configs.pag_web == "HSC" = "Hotel Sultan Club" - elsif web_page_configs.pag_web == "PRM" = "Puente Romano Marbella" - elsif web_page_configs.pag_web == "TGS" = "The Grand Selection" - elsif web_page_configs.pag_web == "SM" = "Sale Marbella" - elsif web_page_configs.pag_web == "AC" = "Alp Courchevel" - elsif web_page_configs.pag_web == "STM" = "St Moritz" - else = web_page_configs.pag_web = " - " = web_page_configs.pag_config .col-lg-9.col-md-9.col-sm-12.col-xs-12 %p %br %b Possible page configurations: %hr %b The Grand Selection: (conditions, our-best-offers, events) %hr %b Puente Romano Marbella: (conditions, our-best-offers, events) %hr %b Hotel Sultan Club: (conditions, prices) %hr %b St Moritz: (conditions, our-best-offers, events) %hr %b Alp Courchevel: (conditions, our-best-offers, events, information-courchevel-1850, information-courchevel-1650, information-courchevel-1550, information-meribel)