AppStateESS / InternshipInventory

Web app for tracking and approving student internships.
http://appstateess.github.io/InternshipInventory/
GNU General Public License v3.0
9 stars 22 forks source link

Add Affiliation Agreement Selection Box #366

Closed jlbooker closed 6 years ago

jlbooker commented 7 years ago

Separate the "Contracts & Documents" section of the Internship View into two parts: "Contract & Agreement" and "Other Documents". Each section should be its own React component.

Under the Contract & Agreement section, use a Bootstrap toggle button to offer options of "Contract" and "Affiliation Agreement". Save the user's selection to the internship record (add contract_type to intern_internship table). If "Contract" is selected, show any existing document or the "upload contract" button (using React Dropzone). If "Affiliation Agreement" is selected, show a drop down box of applicable affiliation agreements (based on Department, and State). Expired agreements should be shown, but should be grey'd out with "(expired)" appended to the name. Save the selected agreement id to the internship object (add affiliation_agreement_id column to intern_internship table).

The Other Documents section should allow the uploading of any number of documents using the React Dropzone component. This should look and operate similar to the existing Documents section.