58 lines
1.6 KiB
Django/Jinja
58 lines
1.6 KiB
Django/Jinja
<div
|
|
id="catlist"
|
|
>
|
|
<h1>Cat list ({{ cat_list | length }})</h1>
|
|
<div class="cat_header cat"
|
|
hx-get="/hx/cat_list"
|
|
hx-include="#catlist .cat_header input, #catlist .cat_header select"
|
|
hx-target="#catlist_data"
|
|
hx-trigger="load, reloadCatList from:document, change, htmx:after-request from:(#cat-form form) queue: last"
|
|
>
|
|
<div>
|
|
<label>
|
|
Name
|
|
<input type="radio" name="sortby" value="name" />
|
|
</label>
|
|
</div>
|
|
<div>
|
|
Generation
|
|
<input type="radio" name="sortby" value="generation" />
|
|
</div>
|
|
<div>
|
|
Sex
|
|
<input type="radio" name="sortby" value="sex" />
|
|
</div>
|
|
<div>
|
|
State
|
|
<input type="radio" name="sortby" value="state" />
|
|
</div>
|
|
<div>
|
|
Parent A
|
|
<input type="radio" name="sortby" value="parent_a" />
|
|
<select name="fltr_parent" hx-get="/hx/get_parent_cat_options" hx-trigger="load, reloadCatList from:document", hhx-swap="innerHTML">
|
|
</select>
|
|
</div>
|
|
<div>
|
|
Parent B
|
|
<input type="radio" name="sortby" value="parent_b" />
|
|
<select name="fltr_parent" hx-get="/hx/get_parent_cat_options" hx-trigger="load, reloadCatList from:document", hhx-swap="innerHTML">
|
|
</select>
|
|
</div>
|
|
<div>
|
|
Stats
|
|
<input type="radio" name="sortby" value="stats" />
|
|
</div>
|
|
<div>
|
|
Filters<br/>
|
|
<label>Babys <input type="checkbox" name="state_filters" value="BABY" />
|
|
<label>Adults <input type="checkbox" name="state_filters" value="ADULT" />
|
|
<label>Retreated <input type="checkbox" name="state_filters" value="RETREAT" />
|
|
<label>Dead <input type="checkbox" name="state_filters" value="DEAD" />
|
|
</div>
|
|
</div>
|
|
<div
|
|
id="catlist_data"
|
|
>
|
|
</div>
|
|
</div>
|