Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%= form_for(Upload.new, html: { class: "dropzone upload-content", id: "dropzone" }) do |f| %>
- <div class="upload-fields">
- <div class="upload-field-single">
- <%= f.label :Nome, class: "name-label" %>
- <%= f.text_field :name, class: "name-field", required: true %>
- </div>
- <div class="upload-field-single">
- <%= f.label :Email, class: "email-label" %>
- <%= f.email_field :email, class: "email-field", required: true, pattern: "[^@\s]+@[^@\s]+\.[^@\s]+" %>
- </div>
- </div>
- <div class="dz-message needsclick">
- <h3>Arraste os arquivos para cá</h3> ou <strong>clique</strong> para adicioná-los
- </div>
- <div class="fallback">
- <%= f.file_field :document %>
- </div>
- <%= f.submit "Envie os arquivos" , class: "submit-upload" %>
- <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement