File: select.html

package info (click to toggle)
python-django-otp 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 756 kB
  • sloc: python: 3,221; makefile: 145; sh: 6
file content (11 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
{# vim: set ft=htmldjango sw=2 sts=2 #}
<label for="{{ field.id_for_label }}" class="form-label">{{ field.label }}</label>
<select class="form-select" name="{{ field.html_name }}">
  {% for option in field %}{{ option.tag }}{% endfor %}
</select>
{% if field.help_text %}
<div class="form-text">{{ field.help_text }}</div>
{% endif %}
{% for error in field.errors %}
<div class="invalid-feedback">{{ error }}</div>
{% endfor %}