-
Notifications
You must be signed in to change notification settings - Fork 15
Make destination delete button use a modal #1359
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
base: master
Are you sure you want to change the base?
Conversation
Test results 11 files 1 320 suites 49m 59s ⏱️ Results for commit 29697c3. ♻️ This comment has been updated with latest results. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1359 +/- ##
==========================================
- Coverage 78.74% 78.58% -0.16%
==========================================
Files 142 142
Lines 5800 5814 +14
==========================================
+ Hits 4567 4569 +2
- Misses 1233 1245 +12 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
stveit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be working fine, smol thing that sonarcloud picked up on
johannaengland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| form = DestinationUpdateForm(instance=obj, prefix=f"destination_{obj.pk}") | ||
| form.modal = DeleteModal( | ||
| header="Delete destination", | ||
| explanation=f'Delete destination "{obj}"', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| explanation=f'Delete destination "{obj}"', | |
| explanation=f'Delete destination "{obj}"?', |
| <div class="flex w-full h-fit items-center gap-2 justify-center"> | ||
| {% include "htmx/destination/_edit_form.html" %} | ||
| {% include "htmx/destination/_delete_form.html" %} | ||
| {% include form.modal.template_name with modal=form.modal %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then htmx/destination/_delete_form.html can be deleted
c274506 to
29697c3
Compare
|




Scope and purpose
Fixes #1357, depends on #1358
Contributor Checklist
Every pull request should have this checklist filled out, no matter how small it is.
More information about contributing to Argus can be found in the
Development docs.