File tree Expand file tree Collapse file tree 7 files changed +60
-0
lines changed Expand file tree Collapse file tree 7 files changed +60
-0
lines changed Original file line number Diff line number Diff line change @@ -320,6 +320,12 @@ class HTMLFormRenderer(BaseRenderer):
320
320
serializers .ListSerializer : {
321
321
'base_template' : 'list_fieldset.html'
322
322
},
323
+ serializers .ListField : {
324
+ 'base_template' : 'list_field.html'
325
+ },
326
+ serializers .DictField : {
327
+ 'base_template' : 'dict_field.html'
328
+ },
323
329
serializers .FilePathField : {
324
330
'base_template' : 'select.html' ,
325
331
},
Original file line number Diff line number Diff line change
1
+ < div class ="form-group ">
2
+ {% if field.label %}
3
+ < label class ="col-sm-2 control-label {% if style.hide_label %}sr-only{% endif %} ">
4
+ {{ field.label }}
5
+ </ label >
6
+ {% endif %}
7
+
8
+ < div class ="col-sm-10 ">
9
+ < p class ="form-control-static "> Dictionaries are not currently supported in HTML input.</ p >
10
+ </ div >
11
+ </ div >
Original file line number Diff line number Diff line change
1
+ < div class ="form-group ">
2
+ {% if field.label %}
3
+ < label class ="col-sm-2 control-label {% if style.hide_label %}sr-only{% endif %} ">
4
+ {{ field.label }}
5
+ </ label >
6
+ {% endif %}
7
+
8
+ < div class ="col-sm-10 ">
9
+ < p class ="form-control-static "> Lists are not currently supported in HTML input.</ p >
10
+ </ div >
11
+ </ div >
Original file line number Diff line number Diff line change
1
+ < div class ="form-group ">
2
+ {% if field.label %}
3
+ < label class ="sr-only ">
4
+ {{ field.label }}
5
+ </ label >
6
+ {% endif %}
7
+
8
+ < p class ="form-control-static "> Dictionaries are not currently supported in HTML input.</ p >
9
+ </ div >
Original file line number Diff line number Diff line change
1
+ < div class ="form-group ">
2
+ {% if field.label %}
3
+ < label class ="sr-only ">
4
+ {{ field.label }}
5
+ </ label >
6
+ {% endif %}
7
+
8
+ < p class ="form-control-static "> Lists are not currently supported in HTML input.</ p >
9
+ </ div >
Original file line number Diff line number Diff line change
1
+ < div class ="form-group ">
2
+ {% if field.label %}
3
+ < label {% if style.hide_label %}class ="sr-only "{% endif %} > {{ field.label }}</ label >
4
+ {% endif %}
5
+
6
+ < p class ="form-control-static "> Dictionaries are not currently supported in HTML input.</ p >
7
+ </ div >
Original file line number Diff line number Diff line change
1
+ < div class ="form-group ">
2
+ {% if field.label %}
3
+ < label {% if style.hide_label %}class ="sr-only "{% endif %} > {{ field.label }}</ label >
4
+ {% endif %}
5
+
6
+ < p class ="form-control-static "> Lists are not currently supported in HTML input.</ p >
7
+ </ div >
You can’t perform that action at this time.
0 commit comments