Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

court mandates can be edited/removed #1733

Closed
8 tasks
Zrrrpy opened this issue Feb 16, 2021 · 2 comments · Fixed by #1802
Closed
8 tasks

court mandates can be edited/removed #1733

Zrrrpy opened this issue Feb 16, 2021 · 2 comments · Fixed by #1802

Comments

@Zrrrpy
Copy link
Collaborator

Zrrrpy commented Feb 16, 2021

Part of epic #1730, dependent on #1731

AS a supervisor,
I WANT to be able to edit and/or remove court mandates,
SO THAT court mandates remain relevant, up-to-date, and can be removed if I make a mistake.

How it works now

After #1731 is complete, supervisors will have the ability to add court mandates, but not edit or remove them.

How it should work instead

Supervisors should be able to easily edit or remove court mandates from CASA Case Details.

Acceptance Criteria

  • A blue "Edit" button appears to the right of each court mandate.
  • Clicking the blue edit button drops the user's cursor into the corresponding text field.
  • A "Submit" button appears when the text field is being edited, just like when a court mandate is initially added.
  • Clicking the "submit" button saves changes.
  • A red "Remove" button appears to the right of the blue "Edit" button.
  • Clicking "Remove" triggers a dialogue box with the text: Are you sure you want to remove this court mandate? Doing so will delete all records of it unless it was included in a previous court report. with two buttons underneath it: "Return" or "Remove".
    • Clicking "Return" closes the dialogue box and does nothing.
    • Clicking "Remove" closes the dialogue box and deletes the court mandate. This should trigger a banner style notification reading, "Court mandate has been removed."
@Zrrrpy Zrrrpy added ✨ New Feature 👩‍⚖️ Court Reports & Details Part of epic #1730 or #880 Help Wanted This is a special label that enables github to showcase issues that want help Priority: High labels Feb 16, 2021
@rhian-cs
Copy link
Contributor

rhian-cs commented Mar 1, 2021

Hello there, I am working on this issue.
I already did the edit part when implementing #1795, but I will finish the job by adding the delete option too.

@compwron
Copy link
Collaborator

compwron commented Mar 1, 2021

very cool! :)

@github-actions github-actions bot removed the Help Wanted This is a special label that enables github to showcase issues that want help label Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants