summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/scopes_checkbox_group.html
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/templates/scopes_checkbox_group.html')
-rw-r--r--ogcp/templates/scopes_checkbox_group.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/ogcp/templates/scopes_checkbox_group.html b/ogcp/templates/scopes_checkbox_group.html
new file mode 100644
index 0000000..0ebf15a
--- /dev/null
+++ b/ogcp/templates/scopes_checkbox_group.html
@@ -0,0 +1,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 %} \ No newline at end of file