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.
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
tointern_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 (addaffiliation_agreement_id
column tointern_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.