File tree 2 files changed +13
-11
lines changed
2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,16 @@ class HeatMapFeedbackForm(forms.Form):
51
51
execution_id = forms .IntegerField (
52
52
widget = forms .HiddenInput (), required = True )
53
53
corresponds_to_perception = forms .BooleanField (
54
- label = 'Na sua percepção o gráfico ao lado corresponde a realidade ?' ,
55
- initial = True , required = False )
54
+ label = 'O gráfico ao lado exibe as áreas da função para onde você precisou olhar com mais frequência para entender o código. Você concorda com ele ?' ,
55
+ initial = False , required = False )
56
56
notes = forms .CharField (
57
57
label = 'Gostaria de deixar algum comentário?' ,
58
58
max_length = 500 , widget = forms .Textarea , required = False )
59
59
60
+ def __init__ (self , * args , ** kwargs ):
61
+ super (HeatMapFeedbackForm , self ).__init__ (* args , ** kwargs )
62
+ self .fields ['notes' ].widget .attrs ['class' ] = 'form-control'
63
+
60
64
def save_heat_map_feedback (self ):
61
65
corresponds_to_perception = self .cleaned_data [
62
66
'corresponds_to_perception'
Original file line number Diff line number Diff line change 13
13
< div class ="jumbotron ">
14
14
< div class ="row ">
15
15
< div class ="col-sm-9 " style ="height: 100% ">
16
- < img src ="{{ execution_heatmap_url }} " style ="width: 100%; object-fit: contain; top: 0; position: relative; di ">
16
+ < img src ="{{ execution_heatmap_url }} " style ="width: 100%; object-fit: contain; top: 0; position: relative; ">
17
17
</ div >
18
18
< div class ="col-sm-3 ">
19
19
< form method ="post ">
20
20
{% csrf_token %}
21
21
22
22
{{ form.execution_id }}
23
23
24
- {% for field in form.visible_fields %}
25
24
< div class ="form-group ">
26
- {{ field.label_tag }}
27
- {% render_field field class="form-control" %}
28
- {% if field.help_text %}
29
- < small class ="form-text text-muted "> {{ field.help_text }}</ small >
30
- {% endif %}
25
+ {{ form.corresponds_to_perception.label_tag }}
26
+ Sim: {{ form.corresponds_to_perception }}
31
27
</ div >
32
- {% endfor %}
33
- </ table >
34
28
29
+ < div class ="form-group ">
30
+ {{ form.notes.label_tag }}
31
+ {{ form.notes }}
32
+ </ div >
35
33
< button type ="submit " class ="btn btn-primary "> Enviar</ button >
36
34
</ form >
37
35
</ div >
You can’t perform that action at this time.
0 commit comments