Commit 2e5ec041eccf92354f48312274752d47a83ab545
1 parent
e2fa5bb5
Exists in
master
and in
2 other branches
Adjusting conditional in bulletin goals table
Showing
2 changed files
with
10 additions
and
9 deletions
Show diff stats
bulletin/templates/bulletin/view.html
... | ... | @@ -104,29 +104,30 @@ |
104 | 104 | |
105 | 105 | |
106 | 106 | <!-- Cor amarela --> |
107 | - {% if meta.alcancada < meta.desejada and meta.alcancada > meta.estabelecida %} | |
107 | + {% if meta.alcancada < meta.desejada and meta.alcancada > meta.estabelecida or meta.alcancada < meta.desejada and meta.alcancada == meta.estabelecida %} | |
108 | 108 | <th style="text-align:center;background-color:#f8b800 ; text-shadow: 1px 1px 2px #000; color:#fff; font-weight: normal;" |
109 | 109 | data-toggle="tooltip" data-html="true" data-placement="bottom" |
110 | 110 | title="<b>Meta atingida!</b><br><br>Atenção! O seu resultado foi inferior ao recomendado pelo professor." class="grey-tooltip"> |
111 | 111 | {{ meta.alcancada }}%</th> |
112 | 112 | {% endif %} |
113 | 113 | |
114 | - {% if meta.alcancada > meta.desejada and meta.alcancada < meta.estabelecida %} | |
114 | + {% if meta.alcancada > meta.desejada and meta.alcancada < meta.estabelecida or meta.alcancada == meta.desejada and meta.alcancada < meta.estabelecida %} | |
115 | 115 | <th style="text-align:center;background-color:#f8b800 ; text-shadow: 1px 1px 2px #000; color:#fff; font-weight: normal;" |
116 | 116 | data-toggle="tooltip" data-html="true" data-placement="bottom" |
117 | 117 | title="<b>Meta atingida!</b><br><br>Atenção! O seu resultado foi inferior a sua meta inicial." class="grey-tooltip"> |
118 | 118 | {{ meta.alcancada }}%</th> |
119 | - | |
120 | 119 | {% endif %} |
120 | + | |
121 | 121 | <!-- Cor amarela --> |
122 | 122 | |
123 | 123 | <!-- Cor verde --> |
124 | - {% if meta.alcancada > meta.desejada and meta.alcancada > meta.estabelecida or meta.alcancada == 100 %} | |
124 | + {% if meta.alcancada > meta.desejada and meta.alcancada > meta.estabelecida or meta.alcancada == meta.desejada and meta.alcancada > meta.estabelecida or meta.alcancada > meta.desejada and meta.alcancada == meta.estabelecida or meta.alcancada == 100 or meta.alcancada == meta.desejada and meta.alcancada == meta.estabelecida %} | |
125 | 125 | <th style="text-align:center;background-color:#00d337; text-shadow: 1px 1px 2px #000; color:#fff; font-weight: normal;" |
126 | 126 | data-toggle="tooltip" data-html="true" data-placement="bottom" |
127 | 127 | title="<b>Meta atingida!</b>" class="grey-tooltip"> |
128 | 128 | {{ meta.alcancada }}%</th> |
129 | 129 | {% endif %} |
130 | + | |
130 | 131 | <!-- Cor verde --> |
131 | 132 | |
132 | 133 | <!-- Cor vermelha --> |
... | ... | @@ -141,7 +142,6 @@ |
141 | 142 | |
142 | 143 | |
143 | 144 | </tr> |
144 | - | |
145 | 145 | {% endfor %} |
146 | 146 | |
147 | 147 | ... | ... |
bulletin/templates/bulletin/window_view.html
... | ... | @@ -126,29 +126,30 @@ |
126 | 126 | |
127 | 127 | |
128 | 128 | <!-- Cor amarela --> |
129 | - {% if meta.alcancada < meta.desejada and meta.alcancada > meta.estabelecida %} | |
129 | + {% if meta.alcancada < meta.desejada and meta.alcancada > meta.estabelecida or meta.alcancada < meta.desejada and meta.alcancada == meta.estabelecida %} | |
130 | 130 | <th style="text-align:center;background-color:#f8b800 ; text-shadow: 1px 1px 2px #000; color:#fff; font-weight: normal;" |
131 | 131 | data-toggle="tooltip" data-html="true" data-placement="bottom" |
132 | 132 | title="<b>Meta atingida!</b><br><br>Atenção! O seu resultado foi inferior ao recomendado pelo professor." class="grey-tooltip"> |
133 | 133 | {{ meta.alcancada }}%</th> |
134 | 134 | {% endif %} |
135 | 135 | |
136 | - {% if meta.alcancada > meta.desejada and meta.alcancada < meta.estabelecida %} | |
136 | + {% if meta.alcancada > meta.desejada and meta.alcancada < meta.estabelecida or meta.alcancada == meta.desejada and meta.alcancada < meta.estabelecida %} | |
137 | 137 | <th style="text-align:center;background-color:#f8b800 ; text-shadow: 1px 1px 2px #000; color:#fff; font-weight: normal;" |
138 | 138 | data-toggle="tooltip" data-html="true" data-placement="bottom" |
139 | 139 | title="<b>Meta atingida!</b><br><br>Atenção! O seu resultado foi inferior a sua meta inicial." class="grey-tooltip"> |
140 | 140 | {{ meta.alcancada }}%</th> |
141 | - | |
142 | 141 | {% endif %} |
142 | + | |
143 | 143 | <!-- Cor amarela --> |
144 | 144 | |
145 | 145 | <!-- Cor verde --> |
146 | - {% if meta.alcancada > meta.desejada and meta.alcancada > meta.estabelecida or meta.alcancada == 100 %} | |
146 | + {% if meta.alcancada > meta.desejada and meta.alcancada > meta.estabelecida or meta.alcancada == meta.desejada and meta.alcancada > meta.estabelecida or meta.alcancada > meta.desejada and meta.alcancada == meta.estabelecida or meta.alcancada == 100 or meta.alcancada == meta.desejada and meta.alcancada == meta.estabelecida %} | |
147 | 147 | <th style="text-align:center;background-color:#00d337; text-shadow: 1px 1px 2px #000; color:#fff; font-weight: normal;" |
148 | 148 | data-toggle="tooltip" data-html="true" data-placement="bottom" |
149 | 149 | title="<b>Meta atingida!</b>" class="grey-tooltip"> |
150 | 150 | {{ meta.alcancada }}%</th> |
151 | 151 | {% endif %} |
152 | + | |
152 | 153 | <!-- Cor verde --> |
153 | 154 | |
154 | 155 | <!-- Cor vermelha --> | ... | ... |