boundless-vase-80440
11/28/2022, 9:23 PMdelightful-candle-13758
11/28/2022, 10:06 PMlate-king-98305
11/28/2022, 11:44 PMHX-Request
header. If it's there, the request came from htmx, and you could render the relevant partial; if it's not, you would render the full page. If you still want different URLs, though, the /docs/1/card pattern is really clean.delightful-candle-13758
11/29/2022, 12:29 AMmysterious-doctor-98164
11/29/2022, 2:33 AMsl-input
) But not for other controls (sl-rating
, sl-checkbox
, etc.). I'm not sure how the distinction works, but that's what shows up in my testing.prehistoric-smartphone-78535
11/29/2022, 4:39 AMprehistoric-smartphone-78535
11/29/2022, 4:39 AMprehistoric-smartphone-78535
11/29/2022, 4:39 AMancient-father-3063
11/29/2022, 5:07 AM<select class="select form-control" hx-ext="debug" hx-get="/listofarchetypes" hx-include="deckdoctor" hx-target="#id_archetype" hx-trigger="load, change" id="id_mtgFormat" name="mtgFormat" required=""> <option value="">---------</option> <option selected="" value="1">Legacy</option> <option value="2">Vintage</option>
</select>
So the hx-include part of this is not working, and I'm not sure whyancient-father-3063
11/29/2022, 5:08 AMancient-father-3063
11/29/2022, 5:08 AMproud-dentist-32878
11/29/2022, 7:24 AMhx-swap="none"
to work. It just continues to swap in the content, on htmx version 1.8.4proud-dentist-32878
11/29/2022, 7:54 AMblue-ghost-19146
11/29/2022, 8:03 AMhx-include=“#deckdoctor”
- need the # symbol to specify it’s an id, right?mysterious-toddler-20573
11/29/2022, 4:40 PMwhite-motorcycle-95262
11/29/2022, 5:08 PMhx-trigger
value for an input
if I want "when enter is pressed and I'm focused"? e.g., I don't want it to fire for any/every "enter" press, only when the input is focused (e.g., they type something then press enter).mysterious-toddler-20573
11/29/2022, 5:11 PMwhite-motorcycle-95262
11/29/2022, 5:11 PMmysterious-toddler-20573
11/29/2022, 5:11 PMwhite-motorcycle-95262
11/29/2022, 5:11 PMmysterious-toddler-20573
11/29/2022, 5:11 PMmysterious-toddler-20573
11/29/2022, 5:12 PMkeyup
event and use a filter to check for the enter keywhite-motorcycle-95262
11/29/2022, 5:12 PMinput
means it won't catch other enter presses?white-motorcycle-95262
11/29/2022, 5:13 PMon keyup[enterKey]
and on keyup[enterKey] from elsewhere
abundant-spring-38265
11/29/2022, 5:19 PM<div class="input-group">
<select class="form-select form-select-sm" name="device">
<option selected disabled>Select Device</option>
{% for device in data.devices %}
<option value="{{ device.id }}">{{ device.hostname }}</option>
{% endfor %}
</select>
<select class="form-select form-select-sm" name="test">
<option selected disabled>Select Test Type</option>
{% for test in data.tests %}
<option value="{{ test.id }}">{{ test.name }}</option>
{% endfor %}
</select>
<button class="btn btn-sm btn-primary" type="submit" hx-get="/api/testing/dut/{{device.id}}/test_type/{{test.id}}">
<i class="bi bi-cloud-upload-fill"></i> Push
</button>
</div>
abundant-spring-38265
11/29/2022, 5:20 PMabundant-spring-38265
11/29/2022, 5:20 PMmysterious-toddler-20573
11/29/2022, 5:49 PMmysterious-toddler-20573
11/29/2022, 5:50 PMgreen-activity-6102
11/29/2022, 5:59 PM