<%= image_tag("pixpalace.png", title: "PixPalace", style: "margin-right:20px;") %>

 

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 %>
Tous les champs sont obligatoires
<%= f.input :credit, label: "Auteur / Copyright" %> <%= f.input :source, label: "Source" %> <%= f.input :city, label: "Ville-Lieu", input_html: {value: ""} %> <%= f.input :up_country, label: "Pays", collection: @countries, include_blank: "", selected: "" %> <%= f.input :reportage, label: 'Titre reportage', label_html: {title: I18n.t('uploads.feature_hint')}, input_html: {value: "",title: I18n.t('uploads.feature_hint')} %> <%= f.input :description, label: "Légende", as: :text, :input_html => { cols: 60, rows: 5, value: "" } %> <%= f.input :date_photo, label: "Date photo" %> <%= f.input :keywords, label: "Mots-clés ", as: :text, :input_html => { cols: 60, rows: 5 } %>

 

<%= f.button :submit, value: I18n.t('uploads.add_in_mediatheque') %>
<% end %>