blue-ghost-19146
07/11/2022, 6:33 PM{% if condition is True %}
<div id=“true-div” hx-swap-oob=“true”/>
{% else %}
<div id=“false-div” hx-swap-oob=“true”/>
blue-ghost-19146
07/11/2022, 6:35 PMblue-ghost-19146
07/11/2022, 6:36 PMblue-ghost-19146
07/11/2022, 8:02 PMhundreds-camera-24900
07/11/2022, 8:11 PMhundreds-camera-24900
07/11/2022, 8:12 PMblue-ghost-19146
07/11/2022, 8:23 PMhundreds-camera-24900
07/11/2022, 8:28 PMblue-ghost-19146
07/11/2022, 8:29 PMhundreds-camera-24900
07/11/2022, 8:46 PMhelpful-teacher-63323
07/11/2022, 10:01 PMhelpful-teacher-63323
07/11/2022, 10:03 PMhelpful-teacher-63323
07/11/2022, 10:04 PMblue-ghost-19146
07/13/2022, 7:52 AMblue-ghost-19146
07/13/2022, 7:53 AMmodern-smartphone-82132
07/14/2022, 3:03 AMhelpful-teacher-63323
07/14/2022, 3:14 AMhelpful-teacher-63323
07/14/2022, 3:14 AMhelpful-teacher-63323
07/14/2022, 3:18 AMmodern-smartphone-82132
07/14/2022, 3:40 AMlittle-pizza-48602
07/14/2022, 5:50 AMblue-ghost-19146
07/14/2022, 6:33 AMlittle-pizza-48602
07/14/2022, 6:36 AMblue-ghost-19146
07/14/2022, 7:14 AMhandsome-shampoo-48908
07/14/2022, 1:05 PMmysterious-toddler-20573
07/14/2022, 1:39 PMhandsome-shampoo-48908
07/14/2022, 1:50 PMhtml
<form method="POST" class="d-flex gap-2 mt-2">
{% csrf_token %}
{{ form_task.description }}
<button class="btn btn-success"
hx-post="{% url 'add-task' %}"
hx-target="#tasks"
hx-vals='js:{collection: getCollectionFromURL()}'
hx-swap="beforeend"
type="submit">Add
</button>
</form>
handsome-shampoo-48908
07/14/2022, 1:54 PMmysterious-toddler-20573
07/14/2022, 2:12 PMhandsome-shampoo-48908
07/14/2022, 2:31 PM