laterite-admin 0.9.12

Laterite CMF admin surface: the Axum router, session middleware, and login shell
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{% if group %}
<details class="lat-checklist__group"{% if open %} open{% endif %}>
  <summary class="lat-checklist__summary">
    <input class="lat-checklist__parent" type="checkbox" aria-label="{{ label }}" hidden{% if checked %} checked{% endif %}{% if locked %} disabled{% endif %}>
    <span class="lat-checklist__title">{{ label }}</span>
    <span class="lat-checklist__count">{{ count }}</span>
  </summary>
  <div class="lat-checklist__items">
    {% for node in nodes %}{{ node|safe }}{% endfor %}
  </div>
</details>
{% else %}
<label class="lat-check lat-checklist__item{% if locked %} is-locked{% endif %}">
  <input type="checkbox" name="{{ name }}" value="{{ value }}"{% if checked %} checked{% endif %}{% if locked %} disabled{% endif %}>
  <span class="lat-checklist__label">{{ label }}{% if let Some(note) = note %}<small class="lat-checklist__note">{{ note }}</small>{% endif %}</span>
  {% if let Some(code) = code %}<code class="lat-code">{{ code }}</code>{% endif %}
</label>
{% endif %}