-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
H: Display form instead of text details
- Loading branch information
Showing
7 changed files
with
28 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 2 additions & 13 deletions
15
src/argus/htmx/templates/htmx/notificationprofile/_notificationprofile_buttons.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
src/argus/htmx/templates/htmx/notificationprofile/_notificationprofile_detail.html
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
src/argus/htmx/templates/htmx/notificationprofile/_notificationprofile_form.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<section class="card-body"> | ||
<form method="post" | ||
action="{% url "htmx:notificationprofile-update" pk=form.instance.pk %}" | ||
class="flex flex-row gap-4"> | ||
{% csrf_token %} | ||
{{ form.as_div }} | ||
{% include "./_notificationprofile_buttons.html" with object=form.instance %} | ||
</form> | ||
</section> |
10 changes: 0 additions & 10 deletions
10
src/argus/htmx/templates/htmx/notificationprofile/notificationprofile_detail.html
This file was deleted.
Oops, something went wrong.
8 changes: 3 additions & 5 deletions
8
src/argus/htmx/templates/htmx/notificationprofile/notificationprofile_form.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
{% extends "./base.html" %} | ||
{% block profile_main %} | ||
<form method="post" class="flex flex-row gap-4"> | ||
{% csrf_token %} | ||
{{ form.as_div }} | ||
<input class="btn btn-primary" type="submit" value="Save"> | ||
</form> | ||
<section class="card my-4 bg-base-100 glass shadow-2xl"> | ||
{% include "./_notificationprofile_form.html" %} | ||
</section> | ||
{% endblock profile_main %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters