File tree Expand file tree Collapse file tree 2 files changed +11
-13
lines changed
pgcommitfest/commitfest/templates Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -39,15 +39,6 @@ div.form-group div.controls ul li label input {
39
39
display : inline;
40
40
vertical-align : middle;
41
41
}
42
- div .form-group div .controls input [type = "checkbox" ] {
43
- width : 10px ;
44
- height : unset;
45
- display : inline-block;
46
- }
47
- div .form-group div .controls > div .form-control : has (input [type = "checkbox" ]) {
48
- display : flex;
49
- gap : 8px ;
50
- }
51
42
52
43
div .form-group div .controls input .threadpick-input {
53
44
width : 80% ;
Original file line number Diff line number Diff line change 15
15
{%for field in form%}
16
16
{%if not field.is_hidden%}
17
17
< div class ="form-group ">
18
- {{field|label_class:"control-label col-lg-1 "}}
19
- < div class ="col-lg-11 controls ">
18
+ {{field|label_class:"control-label"}}
19
+ < div class ="col-lg-12 controls ">
20
20
{%if field.errors %}
21
21
{%for e in field.errors%}
22
22
< div class ="alert alert-danger "> {{e}}</ div >
23
23
{%endfor%}
24
24
{%endif%}
25
- {%if not field.name in form.selectize_fields%}{{field|field_class:"form-control"}}{%else%}{{field}}{%endif%}
25
+ {%if field.name|slice:":7" == 'review_' %}
26
+ {%for choice in field %}
27
+ < div class ="form-check form-check-inline ">
28
+ < input type ="checkbox " class ="form-check-input " name ="{{field.name}} " value ="{{choice.data.value}} " id ="{{choice.id_for_label}} " {% if choice.data.selected %}checked{% endif %} >
29
+ < label class ="form-check-label " for ="{{choice.id_for_label}} "> {{choice.choice_label}}</ label >
30
+ </ div >
31
+ {%endfor%}
32
+ {%elif not field.name in form.selectize_fields%}{{field|field_class:"form-control"}}{%else%}{{field}}{%endif%}
26
33
{%if field.help_text%}< br /> {{field.help_text|safe}}{%endif%}</ div >
27
34
</ div >
28
35
{%else%}
31
38
{%endfor%}
32
39
< div class ="form-group ">
33
40
< div class ="col-lg-12 ">
34
- < div class =" control " > < input type ="submit " class ="btn btn-primary " value ="{{savebutton|default: "Save "}}"> </ div >
41
+ < input type ="submit " class ="btn btn-primary " value ="{{savebutton|default: "Save "}}">
35
42
</ div >
36
43
</ div >
37
44
</ form >
You can’t perform that action at this time.
0 commit comments