diff --git a/src/project/templates/project/includes/field.html b/src/project/templates/project/includes/field.html index 25e8138..912c6b6 100644 --- a/src/project/templates/project/includes/field.html +++ b/src/project/templates/project/includes/field.html @@ -1,17 +1,15 @@ -{% with field.field.widget.input_type as type %} -
-
- {{ field.field.widget.input_type }} - {{ field.widget.input_type }} - {{ field.input_type }} -
- {% if label or type == 'checkbox' or type == 'radio' %} +{% load util_tags %} + +{% with type=field|field_type|upper type_checkbox='CHECKBOXSELECTMULTIPLE' type_radio='RADIOSELECT' %} +
+ {% if label or type == type_checkbox or type == type_radio %} {% endif %} - {% if type == 'checkbox' or type == 'radio' %} + {% if type == type_checkbox or type == type_radio %} {% for value, text in field.field.choices %} -