strawberrycanyon/redeemify

View on GitHub
app/views/application/upload_page.html.erb

Summary

Maintainability
Test Coverage
<%= render 'shared/header' %>
<%= render 'shared/messages' %>

<h4 class="center">
  <%= t 'offeror.header' %>
</h4>

<div class="center">
  <%= link_to image_tag('home2.png', alt: "/#{params[:controller]}/home",
    :size =>'40x40'), "/#{params[:controller]}/home" %>
</div>

<%= form_tag "/#{params[:controller]}/import", multipart: true do %>

  <div class="upload_title">
    Attach '.txt' file with codes, one code per line
  </div>

  <div class="upload_codes">
    <%= file_field_tag :file %>
  </div>
  
  <div class="upload_comment">
    <%= t 'offeror.comment' %>
  </div>
  
  <%= text_area_tag :comment, nil, rows: 5, cols: 50, class: "comment" %>
  
  <%= submit_tag "Submit", id: "submit", class: "submit" %>
<% end %>