<% content_for :document_ready do %> <% if notice %> ('
<%= notice %>
').dialog({ buttons: { 'OK': function() { $(this).dialog('close'); } } }); <% end %> <% end %>

<%= notice %>

<%= I18n.t('features_admin') %>

<% unless session[:provs].count <= 1 || Pixways.get_pixtech_param_value(session[:pixtech],'hide_providers_panel') == 'true'%> <%= render partial: 'providers_form', :locals => {:action_title => 'index'} %>
<%end%>
<%= render partial: 'search_form', :locals => {:action_title => 'index'} %>
<%= paginate @reportages unless @reportages.blank? %>
<% if current_user.is_provider_admin? || current_user.is_superadmin? %> <% end %>
<%= sortable "no_reportage",I18n.t("features.reference")%> <%= sortable "rep_titre",I18n.t("features.title")%> <%= sortable "nb_photos",I18n.t('features.nb_pictures').capitalize %> <%= sortable "signatur",I18n.t('features.credit')%> <%= sortable "rep_date",I18n.t("features.feature_date")%> <%= sortable "created_at",I18n.t("features.release_date")%> <%= sortable "rep_texte",I18n.t("features.text")%> <%= sortable "visible","Visible" %>
<% @reportages.each do |rep| %> <% im = Image.where(:ms_image_id => rep.prem_photo).first %> <% unless im.nil? %> <% pw_c = "#{image_tag(im.medium_location, class: "pw_media_img_preview")}" %> <% pw_c += "

#{I18n.t('original_filename')} : #{im.original_filename}

#{I18n.t('reception_date')} : #{im.localised_reception_date}

#{I18n.t('date_created')} : #{im.localised_date_created}

#{I18n.t('normalized_credit')} : #{im.normalized_credit}

#{I18n.t('description')} : #{im.description}

" %> "> <% if current_user.is_provider_admin? || current_user.is_superadmin? %> <% end %> <% end %> <% end %>
<%= rep.no_reportage %> <%= rep.rep_titre %> <%= rep.nb_photos %> <%= rep.signatur %> <%= image_tag(im.thumb_location, class: 'popover-trigger', 'data-c' => pw_c, 'data-style' => 'primary', :height => 50)%> <%= I18n.l(rep.rep_date, format: "%d/%m/%Y") unless rep.rep_date.nil? %> <%= I18n.l(rep.created_at, format: "%d/%m/%Y") %> <%= truncate(rep.rep_texte, length: 125, separator: ' ')%> <%= check_box_tag :visible, rep.visible, rep.visible, disabled: :disabled %> <%= link_to "".html_safe, edit_reportage_path(rep.id,:keyword=>params[:keyword],:liste_providers => params[:liste_providers],:offres_reportages => params[:offres_reportages],:sort=>params[:sort],:direction=>params[:direction],:page=>params[:page]), title: I18n.t('modify').capitalize %> <%= link_to "".html_safe, reportage_path(rep.id,:keyword=>params[:keyword],:liste_providers => params[:liste_providers],:offres_reportages => params[:offres_reportages],:sort=>params[:sort],:direction=>params[:direction],:page=>params[:page]), method: :delete, :remote => :true, data: { confirm: I18n.t('features.delete_message') }, :title =>I18n.t('destroy') %>
<%= paginate @reportages unless @reportages.blank? %>