2026-03-09 21:13:35 -04:00
|
|
|
<section
|
|
|
|
|
id="id_applet_palette"
|
|
|
|
|
class="palette"
|
|
|
|
|
style="--applet-cols: {{ entry.applet.grid_cols }}; --applet-rows: {{ entry.applet.grid_rows }};"
|
|
|
|
|
>
|
2026-03-24 00:26:22 -04:00
|
|
|
<h2>Palettes</h2>
|
2026-03-09 21:13:35 -04:00
|
|
|
<div class="palette-scroll">
|
|
|
|
|
{% for palette in palettes %}
|
|
|
|
|
<div class="palette-item">
|
|
|
|
|
<div class="swatch {{ palette.name }}{% if user_palette == palette.name %} active{% endif %}{% if palette.locked %} locked{% endif %}"></div>
|
|
|
|
|
{% if not palette.locked %}
|
|
|
|
|
<form method="POST" action="{% url "set_palette" %}">
|
|
|
|
|
{% csrf_token %}
|
|
|
|
|
<button type="submit" name="palette" value="{{ palette.name }}" class="btn btn-confirm">OK</button>
|
|
|
|
|
</form>
|
|
|
|
|
{% else %}
|
|
|
|
|
<span class="btn btn-disabled">×</span>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|