Benefit Forms

Download benefit documents and upload completed forms

Health Insurance

Download your health insurance benefit forms and information

<%= link_to download_path(type: "File", name: "public/docs/Health_n_Stuff.pdf"), class: "btn btn-primary btn-lg" do %> Download PDF <% end %>

Dental Insurance

Download your dental insurance benefit forms and information

<%= link_to download_path(type: "File", name: "public/docs/Dental_n_Stuff.pdf"), class: "btn btn-success btn-lg" do %> Download PDF <% end %>

Upload Completed Forms

<%= form_for @benefits, url: upload_path, html: { multipart: true, id: "fi", class: "needs-validation" } do |f| %> <%= hidden_field "benefits", "backup", value: false %>
Select File to Upload

Choose a file from your computer

<%= f.file_field :upload, class: "d-none", id: "benefits_upload" %>
No file selected
File Name Size Status
<% end %>
<% if @uploaded_files.any? %>

Uploaded Files

<% @uploaded_files.each do |file| %> <% end %>
File Name Size Uploaded Actions
<% icon_class = case File.extname(file[:name]).downcase when '.pdf' then 'bi-file-earmark-pdf text-danger' when '.doc', '.docx' then 'bi-file-earmark-word text-primary' when '.jpg', '.jpeg', '.png' then 'bi-file-earmark-image text-success' else 'bi-file-earmark' end %> <%= file[:name] %> <%= number_to_human_size(file[:size]) %> <%= file[:modified].strftime("%b %d, %Y at %I:%M %p") %> <%= link_to download_path(type: "File", name: "public/data/#{file[:name]}"), class: "btn btn-sm btn-outline-primary" do %> Download <% end %>
<% end %>