{% if field.type == "boolean" %}
{% elif field.has_values %}
{% elif field.type == "string" or field.type == "datepicker" %}
{% elif field.type == "integer" or field.type == "float" %}
{% elif field.type == "text" or field.type == "html" %}
{% elif field.type == 'set' and field.has_list_values %}
{% comment %}
TODO: If len(list_values) is high, show an alternate editor
with a select box and a growing list of selected choices
{% endcomment %}
{% for choice in field.list_values %}
{% empty %}
{% trans "None Available" %}
{% endfor %}
{% elif field.type == 'generic' or field.type == 'list' or field.type == 'set' %}
{# Show a textarea so we can edit it as a JSON string #}
{% else %}
Unsupported field type. This setting cannot be edited.
{% endif %}
{% if field.allow_reset %}
{% endif %}
{% if field.help %}
{{ field.help|safe }}
{% endif %}