% vingtmin_logo = Provider.find_by(string_key:'Local20minutes').logo rescue nil %>
<%= image_tag(vingtmin_logo, title: "20 Minutes") unless vingtmin_logo.nil? %>
Indexation
<%= simple_form_for [:uploads, @photo], :wrapper => :bootstrap3_horizontal, :html => { :onSubmit => 'return validateform();', class: 'form-horizontal', style: 'max-width: 700px' } do |f| %>
<%= f.error_notification %>
<% @photos.each do |p| %>
<%= p.photo_identifier %>
<%= image_tag p.photo.url, width: "200px" %>
Dimension : <%= EXIFR::JPEG.new("public#{p.photo.url}").width %>X<%= EXIFR::JPEG.new("public#{p.photo.url}").height %>
<% end %>
<%= f.input :photo_cache, as: :hidden %>
<%= hidden_field_tag :tabph, @phtab %>
<%= f.input :credit, label: "Auteur / Copyright", required: true %>
<%= f.input :city, label: "Bureau / Agence", required: true %>
<%= f.input :reportage, label: "Titre", required: true %>
<%= f.input :description, label: "Description", as: :text, required: true, :input_html => { cols: 60, rows: 10 } %>
<%= f.input :date_photo, label: "Date" %>
<%= f.input :keywords, label: "Mots-clé ", as: :text, :input_html => { cols: 60, rows: 7 } %>
<%= f.button :submit, value: "Ajouter dans PixPalace" %>
<% end %>