Advertisement
guiil

_upload_form.html.erb

Feb 22nd, 2017
495
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.77 KB | None | 0 0
  1. <%= form_for(Upload.new, html: { class: "dropzone upload-content", id: "dropzone" }) do |f| %>
  2.  <div class="upload-fields">
  3.    <div class="upload-field-single">
  4.      <%= f.label :Nome, class: "name-label" %>
  5.      <%= f.text_field :name, class: "name-field", required: true %>
  6.    </div>
  7.    <div class="upload-field-single">
  8.      <%= f.label :Email, class: "email-label" %>
  9.      <%= f.email_field :email, class: "email-field", required: true, pattern: "[^@\s]+@[^@\s]+\.[^@\s]+" %>
  10.    </div>
  11.  </div>
  12.  <div class="dz-message needsclick">
  13.    <h3>Arraste os arquivos para cá</h3> ou <strong>clique</strong> para adicioná-los
  14.  </div>
  15.  <div class="fallback">
  16.    <%= f.file_field :document %>
  17.  </div>
  18.  <%= f.submit "Envie os arquivos" , class: "submit-upload" %>
  19. <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement