Skip to content

Commit

Permalink
Make _selected_incidents_header.html singular
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf committed Dec 6, 2024
1 parent 52965a7 commit 18d0954
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/argus/htmx/incidents/customization.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class IncidentTableColumn:
"row_select",
"Selected",
"htmx/incidents/_incident_checkbox.html",
"htmx/incidents/_selected_incidents_header.html",
"htmx/incidents/_incident_list_select_all_checkbox.html",
),
IncidentTableColumn("id", "ID", "htmx/incidents/_incident_pk.html"),
IncidentTableColumn(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<p class="sr-only">{{ label }}</p>
<label for="select-all-on-page-{{ page.number }}" class="sr-only">Select all visible</label>
<input id="select-all-on-page-{{ page.number }}"
hx-preserve
type="checkbox"
autocomplete="off"
class="checkbox checkbox-sm checkbox-accent border"
hx-on:change="htmx.findAll('.row-select').forEach(peer => peer.checked = event.target.checked); event.target.checked ? htmx.find('.tab-select').checked = event.target.checked : null; " />

0 comments on commit 18d0954

Please sign in to comment.