27 lines
1.0 KiB
HTML
27 lines
1.0 KiB
HTML
|
|
<div id="id_game_applets_container">
|
||
|
|
<div id="id_game_applet_menu" style="display:none;">
|
||
|
|
<form
|
||
|
|
hx-post="{% url "toggle_game_applets" %}"
|
||
|
|
hx-target="#id_game_applets_container"
|
||
|
|
hx-swap="outerHTML"
|
||
|
|
>
|
||
|
|
{% csrf_token %}
|
||
|
|
{% for entry in applets %}
|
||
|
|
<label>
|
||
|
|
<input
|
||
|
|
type="checkbox"
|
||
|
|
name="applets"
|
||
|
|
value="{{ entry.applet.slug }}"
|
||
|
|
{% if entry.visible %}checked{% endif %}
|
||
|
|
>
|
||
|
|
{{ entry.applet.name }}
|
||
|
|
</label>
|
||
|
|
{% endfor %}
|
||
|
|
<div class="menu-btns">
|
||
|
|
<button type="submit" class="btn btn-confirm">OK</button>
|
||
|
|
<button type="button" id="id_game_applet_menu_cancel" class="btn btn-cancel applet-menu-cancel">NVM</button>
|
||
|
|
</div>
|
||
|
|
</form>
|
||
|
|
</div>
|
||
|
|
{% include "apps/applets/_partials/_applets.html" %}
|
||
|
|
</div>
|