Skip to content

Conversation

berinhard
Copy link
Contributor

This PR changes the behavior of the contract detail under Django's admin. It changes the signed_document field to be a read-only and, thus, avoid PSF staff from by-passing the views that ensures the control of the objects states. It also adds displays that Execute button that was only being displayed for contracts under "Awaiting Signature" state. This button leads to the same old execute contract page, but now it requires a new input for the user to upload the signed contract before executing it.

Signed document as read only

Screenshot from 2021-11-12 11-18-18

New button being displayed for a draft contract

Screenshot from 2021-11-12 11-18-09

Execute contract page with file input

Screenshot from 2021-11-12 11-18-31

State of the contract after a valid submit

Screenshot from 2021-11-12 11-18-51

Screenshot from 2021-11-12 11-18-59

@berinhard berinhard requested a review from ewdurbin November 12, 2021 14:30
@ewdurbin ewdurbin merged commit 6c5a004 into main Nov 15, 2021
@ewdurbin ewdurbin deleted the bugfix/contract-as-draft branch November 15, 2021 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants