-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
loading state disable pt level report
Signed-off-by: anchit-chandran <[email protected]>
- Loading branch information
1 parent
25e9706
commit 3465630
Showing
4 changed files
with
29 additions
and
9 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
5 changes: 4 additions & 1 deletion
5
project/npda/templates/dashboard/pt_level_menu_tab_button.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,6 +1,9 @@ | ||
<button class="{% if selected %} bg-rcpch_pink text-white {% else %} bg-rcpch_lightest_grey {% endif %} p-5" | ||
hx-get="/get_patient_level_report_partial" | ||
hx-vals='{"selected": "{{ key }}"}' | ||
hx-target="#pt_level_report"> | ||
hx-target="#pt_level_report" | ||
hx-swap="outerHTML" | ||
{% if selected %}disabled{% endif %} | ||
_="on click toggle @disabled on #pt_level_report until htmx:afterOnLoad"> | ||
{{ button_text }} | ||
</button> |
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
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