Talent-Catalog / talentcatalog

https://tctalent.org
GNU Affero General Public License v3.0
13 stars 4 forks source link

Checking the "Is this file a CV?" checkbox after the attachment does not mark the file as a CV #1436

Open sadatmalik opened 1 month ago

sadatmalik commented 1 month ago

When I click on "Is this file a CV" in the attachments dialog The file should be available in the selectable CVs dropdown As this would be the expected behaviour

--

Checking the "Is this file a CV" box before the attachment is selected works as expected; however checking the box after the attachment is selected does not mark the file as a CV:

E.g. Here I selected the attachment and then marked the "Is this file a CV?" box:

Screenshot 2024-10-02 at 09.54.22.png

The file displays as a shareable attachment, not as a shareable CV:

Screenshot 2024-10-02 at 09.57.53.png
sadatmalik commented 1 month ago
sadatmalik commented 1 month ago

Conditionally display the CV checkbox only before files are uploaded:

Simplify dialog from this:

Screenshot 2024-10-08 at 14.46.29.png Screenshot 2024-10-08 at 14.46.37.png

To this:

Screenshot 2024-10-08 at 14.44.14.png Screenshot 2024-10-08 at 14.44.21.png
sadatmalik commented 1 month ago

Show a modified success message after the upload is complete, depending on whether the checkbox was checked or not

Uploaded a CV attachment:

Screenshot 2024-10-08 at 14.41.25.png

Uploaded 2 non-CV attachments:

Screenshot 2024-10-08 at 14.42.04.png