Closed caldwellc1 closed 6 years ago
Rebased so it's up-to-date with master as of Mar 5th.
Cyd,
I'm sorry this wasn't reviewed earlier but please go through and update the React code to > 15.5 https://reactjs.org/blog/2017/04/07/react-v15.5.0.html
Works well. Thank you.
Ref #366 #282 You can now toggle between uploading a contract and selecting an existing affiliation agreement. Contract is selected by default. Only one contract can be uploaded and the dropzone box goes away when a contract is uploaded. In affiliation you can select from a dropdown list of available affiliations. If the affiliation is expired or terminated it still appears in the list but you can not select it. If the affiliation expires or is terminated the choice will still be selected, but if changed you will not be able to select it again. The Other Documents section will allow multiple files to be uploaded and appear under the dropzone box.
In the update file there is an insert statement to put all the file currently in the table documents to the new table intern_contract_documents. The old files will need to be moved to their new location in the filecabinet folder, the folder called otherDocuments. There are two new folders in filecabinet for the new files, contract and otherDocuments. All the old documents are to go into otherDocuments since we do not know what type of file they are.
Deleting the internship will delete the files from the table, but will not remove the file from the folders.
Note: If the user misses the dropzone box the file will usually try to open or download in browser.
Merged in changes for affiliation upload. The dropzone method of uploading is the same as in the internship view. The contracts are going to be saved in the new folder affiliation in filecabinet. The old contracts will be move to the new table intern_affiliation_documents in the database, but the files themselves will need to be moved to the new location. I also updated the affiliateDeptRest and affiliateStateRest to the new phpws2 namespace.