<% content_for :contextual_header do %>
<%= I18n.t('toggle_fold_all')%> Exporter

<%= I18n.t 'terms_title' %>

<%= I18n.t('terms', provider_word: I18n.t("the_#{session[:provider_word]}", count: 1)) %>


<% end %> <% # TODO : Sami refactor this pw_contact = PixPalaceContact[{'fr' =>'FR','en' => 'EN'}[I18n.locale.to_s]] %> <% unless session[:pixtech] != "" %> <% end %> <% @providers.each do |p| %> <% unless p.local %> <% mc = p.provider_contacts.find_by_main(true) %> <% p.provider_contacts.where(main: false).each do |c| %> <% end %> <% end %> <% end %>
<%= I18n.t(session[:provider_word], count: 1).capitalize %> <%= I18n.t('a_rights') unless session[:pixtech] && session[:pixtech].include?('vitrine') %> <%= I18n.t(:contact) %> <%= I18n.t(:email) %> <%= I18n.t(:phone) %> <%= I18n.t(:portable) %> <%= I18n.t(:site) %> <%= I18n.t(:address) %> <%= I18n.t('a_cgv') %>
PixPalace <%= pw_contact[:contact] %> <%= mail_to(pw_contact[:mail]) %> <%= pw_contact[:phone] %> <%= pw_contact[:portable] %> <%= link_to(pw_contact[:web], "http://#{pw_contact[:web]}", :target => '_blank') %> <%= pw_contact[:address] %>
 <%= p.name %> <% unless session[:pixtech] && session[:pixtech].include?('vitrine') %> <% if session[:provhd][p.id] == 1 %> HD <% elsif session[:provbd][p.id] == 1 %> BD <% elsif session[:provpe][p.id] == 1 %> PE <% else %> Vignette <% end %> <% end %> <%= [mc.first_name, mc.last_name].compact.join(' ') unless mc.nil? %> <%= mail_to(mc.email) unless mc.nil? %> <%= mc.phone unless mc.nil? %> <%= mc.portable unless mc.nil? %> <%= link_to(p.site, "http://#{p.site}", :target => '_blank') unless p.site.blank? %> <%= [p.address, p.zip_code, p.city, p.country].compact.join(", ") %> <%= link_to "Voir", "http://#{p.cgv}", target: "_blank" unless p.cgv.blank? %>
<% content_for :document_ready do %> PwCollapsibleTable(); PwSlide(); $('.fixed-header-table>.fixed-thead').affix({ offset: { top: function () { return (this.top = $('.fixed-header-table>.fixed-thead').offset().top - $('#pw_top').height()); } }, target: '#pw_center' }) $('.fixed-header-table>.fixed-thead').on("affix.bs.affix", function(){ $(this).css('top', $('#pw_top').height()) }) <% end %>