runique 2.1.21

A Django-inspired web framework for Rust with ORM, templates, and comprehensive security middleware
Documentation
<div class="form-field boolean-field">
    {% if field.label %}
    <label class="field-label{% if field.error %} field-error{% endif %}">
    {% endif %}
        <input

            type="{{ input_type }}"

            name="{{ field.name }}"

            id="id_{{ field.name }}"

            value="true"

            {% if checked %}checked{% endif %}

            {% for key, value in field.html_attributes %}{{ key }}="{{ value }}" {% endfor %}

            {% if readonly.choice %}readonly{% endif %}

            {% if disabled.choice %}disabled{% endif %}

        >
    {% if field.label %}
        <span class="checkbox-label">{{ field.label }}</span>
    </label>
    {% endif %}

    {% if field.error %}
    <span class="field-error-message">{{ field.error }}</span>
    {% endif %}
</div>