%= render partial: '/layouts/favicon' %> <%= csrf_meta_tag %> <%= stylesheet_link_tag "application" %> <%= stylesheet_link_tag "bootstrap" %> <%= javascript_include_tag "application" %> <%= javascript_include_tag "bootstrap" %>
<%= simple_form_for [:uploads, @photo], html: { class: 'form-inline', multipart: true } do |f| %> <%= f.input :photo, input_html: { multiple: true }, label: false %> <%= f.hidden_field :user_id, value: @user.id %> <%= f.hidden_field :city, value: "20 Minutes #{@user.city}" %> <%= f.hidden_field :description, value: I18n.t('uploads.description') %> <%= f.hidden_field :reportage, value: I18n.t('uploads.reportage') %> <%= f.hidden_field :credit, value: "#{@user.first_name.capitalize.first} #{@user.last_name.capitalize} / 20 Minutes" %> <%= f.error_notification %>
<% if flash[:notice] %>
<%= link_to I18n.t('close'),'',onclick: "window.close();" %>