Make attachment upload more understandable, indicate if attachment unreleased #1607
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously, attachment upload was very confusing, with the buttons not being helpful / informative. Also, if an attachment was unreleased, the instructor wouldn't know unless they went into the edit page for the attachment. I tried to make the upload form give more informative information for each field, and added a (Not Released) to any attachments not released when looking at the assessment page.
Before:
![Screen Shot 2022-09-24 at 15 11 12](https://user-images.githubusercontent.com/25730111/192114792-70f81bb9-9c52-4532-b653-5a308f1c924b.png)
![Screen Shot 2022-09-24 at 15 11 23](https://user-images.githubusercontent.com/25730111/192114793-18828d04-4f1e-432b-9a53-057b133ae0b3.png)
(Earfs is unreleased, but you would never know...)
After:
![Screen Shot 2022-09-24 at 15 08 32](https://user-images.githubusercontent.com/25730111/192114820-7728678e-b988-48a3-9b99-41f0acdbe918.png)
![Screen Shot 2022-09-24 at 15 17 05](https://user-images.githubusercontent.com/25730111/192114910-095e885d-8724-466d-94e0-1108a21c557b.png)
![Screen Shot 2022-09-24 at 15 16 49](https://user-images.githubusercontent.com/25730111/192114909-8d65b1bd-5d64-4a9d-adfa-8d14269785be.png)
Still kinda ugly, could polish if that is desired:
New attachment:
Edit attachment: