summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/scopes_checkbox_group.html
blob: 0ebf15ac279a2ed5649b42f92d367bbf7e477edc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{% if form is defined and form.scopes is defined %}

<div class="form-group">
    {{ form.scopes.label(class_='form-label') }}
    <div class="mx-4">
        <div class="form-text text-muted">{{ form.scopes.description }}</div>
        {% for value, label, checked in form.scopes.iter_choices() %}
            <div class="form-check">
                <input class="form-check-input" type="checkbox" name="{{ form.scopes.name }}" value="{{ value }}" {% if checked %} checked {% endif %}>
                <label class="form-check-label">{{ label }}</label>
            </div>
        {% endfor %}
    </div>
</div>

{% endif %}