.container .row %h3.text-center Requests %hr .col-lg-5 ALL-Pages: %a{:href => emails_path+'?mailing=true'} Mailing (YES) = '/' %a{:href => emails_path+'?mailing=false'} Mailing (NO) = '/' %a{:href => emails_path+'?mailing=all'} All %br The Grand Selection: %a{:href => emails_path+'?mailing=true&site=TGS'} Mailing (YES) = '/' %a{:href => emails_path+'?mailing=false&site=TGS'} Mailing (NO) = '/' %a{:href => emails_path+'?mailing=all&site=TGS'} All %br Sale Marbella: %a{:href => emails_path+'?mailing=true&site=SM'} Mailing (YES) = '/' %a{:href => emails_path+'?mailing=false&site=SM'} Mailing (NO) = '/' %a{:href => emails_path+'?mailing=all&site=SM'} All %br Puente Romano(Rental): %a{:href => emails_path+'?mailing=true&site=PR&type=rental'} Mailing (YES) = '/' %a{:href => emails_path+'?mailing=false&site=PR&type=rental'} Mailing (NO) = '/' %a{:href => emails_path+'?mailing=all&site=PR&type=rental'} All Puente Romano(Sale): %a{:href => emails_path+'?mailing=true&site=PR&type=sale'} Mailing (YES) = '/' %a{:href => emails_path+'?mailing=false&site=PR&type=sale'} Mailing (NO) = '/' %a{:href => emails_path+'?mailing=all&site=PR&type=sale'} All %br Hotel Sultan Club: %a{:href => emails_path+'?mailing=true&site=HSC'} Mailing (YES) = '/' %a{:href => emails_path+'?mailing=false&site=HSC'} Mailing (NO) = '/' %a{:href => emails_path+'?mailing=all&site=HSC'} All %br St.Moritz: %a{:href => emails_path+'?mailing=true&site=STM'} Mailing (YES) = '/' %a{:href => emails_path+'?mailing=false&site=STM'} Mailing (NO) = '/' %a{:href => emails_path+'?mailing=all&site=STM'} All %br 24 Courchevel: %a{:href => emails_path+'?mailing=true&site=AC'} Mailing (YES) = '/' %a{:href => emails_path+'?mailing=false&site=AC'} Mailing (NO) = '/' %a{:href => emails_path+'?mailing=all&site=AC'} All %br .col-lg-7 Emails: - @email_list.each do |sub| - @all_list_emails = sub.email.to_s + " " + @all_list_emails.to_s = text_area_tag(value = "Email", value = @all_list_emails, :readonly => true, :onclick => 'this.select();', :style => "width: 600px; height: 150px;") .container{:style => "width: 100%;"} .row .col-lg-12 %hr %table.table-hover{:style => "table-layout: fixed; width: 100%; margin: 5px;"} %thead %tr %th.center{:style => "width: 120px;"} Date & Type %th.center{:style => "width: 250px;"} Name %th.center{:style => "width: 250px;"} Email %th.center{:style => "width: 160px;"} Tel. %th.center{:style => "width: 160px;"} Period %th.center{:style => "width: 160px;"} Agency %th.center{:style => "width: 60px;"} Adult %th.center{:style => "width: 60px;"} Child. %th.center{:style => "width: 100px;"} Pref.Lang. %th.center{:style => "width: 160px;"} url %th.center{:style => "width: 440px;"} Description %tbody - @emails.each do |sub| %tr %td.center //%a.emails{href: edit_email_path(sub), title: 'Edit'} //.glyphicon.glyphicon-edit =sub.contact_type.to_s %br =sub.created_at.to_s %td.center =sub.name.to_s + " " + sub.last_name.to_s %td.center =sub.email.to_s %td.center =sub.tel.to_s %td.center =sub.date_from.to_s %br =sub.date_to.to_s %td.center =sub.agency.to_s %td.center =sub.n_adults.to_s %td.center =sub.n_children.to_s %td.center =sub.preferred_language.to_s %td.center = url_field_tag(value = "URL", value = sub.url.to_s, :readonly => true, :onclick => 'this.select();', :style => "width: 160px;") %td.center =sub.description.to_s