{{ key }}{% for name2 in field.opt_names %} {{ name2 }}{% endfor %}
|
{{ field.label }}{% if not field.help %}.{% endif %}
{% if field.help %}
({{ field.help }}).
{% endif %}
{{ field.typedesc }}{% if not field.is_optional and field.choices %}:{% endif %}
{% if field.is_optional %}
(OPTIONAL{% if field.initial != None %}, default: {% if field.initial is True %}true{% elif field.initial is False %}false{% else %}{{ field.initial }}{% endif %}{% endif %}){% if field.choices %}:{% endif %}
{% endif %}
{% if field.choices %}
{% if field.attrs.multiple %}one or more values{% else %}a value{% endif %}
choosable from
{% if field.choices|length > 30 %}
a list of {{ field.choices|length }} choices (too long to show)
{% else %}
{% for nme, lbl in field.choices %}
{{ nme }}{% if lbl and lbl != nme %} ({{ lbl }}){% endif %}{% if not forloop.last %}, {% endif %}
{% endfor %}
{% endif %}
{% if field.choices|length == 1 %}
(currently, only one choice is implemented)
{% endif %}
{% endif %}
|
{% endif %}{% endfor %}