Skip to content

Commit

Permalink
Add form and triggers to msg search.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesturner246 committed Oct 18, 2024
1 parent 0f4da91 commit 0d48499
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions process_manager/templates/process_manager/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
placeholder="Search..."
hx-trigger="input changed delay:500ms, every 1s"
hx-get="{% url 'process_manager:process_table' %}"
hx-target="div.table-container">
hx-target="#table-container">
<div id="table-container"
hx-trigger="load"
hx-get="{% url 'process_manager:process_table' %}"></div>
Expand All @@ -70,10 +70,17 @@
class="btn-close"
aria-label="Hide Messages"
_="on click hide #message-panel show #show-messages-button"></button>
<input class="form-control"
type="search"
name="search"
placeholder="Search..."
hx-trigger="input changed delay:500ms, every 1s"
hx-get="{% url 'process_manager:messages' %}"
hx-target="#message-list">
</div>
<div id="message-list"
class="card-body"
hx-trigger="load, every 1s"
hx-trigger="load"
hx-get="{% url 'process_manager:messages' %}"></div>
</div>
</div>
Expand Down

0 comments on commit 0d48499

Please sign in to comment.