-
-
-
-
-
-
-
-
-
-
- Health Insurance
-
-
- Click on PDF to download
- <%= link_to download_path(:type => "File", :name => "public/docs/Health_n_Stuff.pdf") do %> -
-
- - <%= link_to download_path(:type => "File", :name => "public/docs/Health_n_Stuff.pdf") do %> -
-
- <% end %>
-
-
-
- PDF
-
-
-
-
-
+
-
-
-
-
-
- Dental Insurance
-
-
- Click on PDF to download
- <%= link_to download_path(:type => "File", :name => "public/docs/Dental_n_Stuff.pdf") do %> -
-
- - <%= link_to download_path(:type => "File", :name => "public/docs/Dental_n_Stuff.pdf") do %> -
-
- <% end %>
-
-
-
- PDF
-
-
-
-
+
+
+
- + Benefit Forms +
+Download benefit documents and upload completed forms
-
-
-
-
-
-
- Health Insurance
-
-
-
-
Upload file
- <%= form_for @benefits, :url => upload_path, :html => { :action => "upload", :multipart => true, :id => "fi" } do |f| %> - -
-
- <%= hidden_field "benefits", "backup", :value => false %>
-
-
-
- Add file
- <%= f.file_field :upload %>
-
-
-
Nothing selected -
- Nothing selected -
-
-
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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 %>
+
+
+ <% end %>
+
+
- -
-
- <% end %>
-
+
+
-
-
-
+
+
Select File to Upload
+Choose a file from your computer
+ +
+
+ <%= f.file_field :upload, class: "d-none", id: "benefits_upload" %>
+
+
+
+
+ No file selected
+
- -
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0%
+
+
+
+
+
+
+
+ | File Name | +Size | +Status | +
|---|
+
+
\ No newline at end of file
+ // Show progress bar
+ $("#upload-progress").show();
+
+ // Simulate upload progress (in real implementation, this would be handled by the server)
+ var progress = 0;
+ var interval = setInterval(function() {
+ progress += 10;
+ $("#progress-bar").css('width', progress + '%');
+ $("#progress-text").text(progress + '%');
+
+ if (progress >= 100) {
+ clearInterval(interval);
+ }
+ }, 200);
+ });
+});
+
+// Handle Turbolinks page loads
+$(document).on('turbolinks:load', function() {
+ makeActive();
+});
+
+
+
+
@@ -111,16 +140,91 @@
+
+
+
Important Information
+-
+
- Download benefit forms, fill them out completely, and upload them back +
- Accepted file formats: PDF, DOC, DOCX, JPG, PNG +
- Maximum file size: 10MB +
- All uploaded documents are securely stored +