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,29 +104,30 @@ | ||
104 | 104 | ||
105 | 105 | ||
106 | <!-- Cor amarela --> | 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 | <th style="text-align:center;background-color:#f8b800 ; text-shadow: 1px 1px 2px #000; color:#fff; font-weight: normal;" | 108 | <th style="text-align:center;background-color:#f8b800 ; text-shadow: 1px 1px 2px #000; color:#fff; font-weight: normal;" |
109 | data-toggle="tooltip" data-html="true" data-placement="bottom" | 109 | data-toggle="tooltip" data-html="true" data-placement="bottom" |
110 | title="<b>Meta atingida!</b><br><br>Atenção! O seu resultado foi inferior ao recomendado pelo professor." class="grey-tooltip"> | 110 | title="<b>Meta atingida!</b><br><br>Atenção! O seu resultado foi inferior ao recomendado pelo professor." class="grey-tooltip"> |
111 | {{ meta.alcancada }}%</th> | 111 | {{ meta.alcancada }}%</th> |
112 | {% endif %} | 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 | <th style="text-align:center;background-color:#f8b800 ; text-shadow: 1px 1px 2px #000; color:#fff; font-weight: normal;" | 115 | <th style="text-align:center;background-color:#f8b800 ; text-shadow: 1px 1px 2px #000; color:#fff; font-weight: normal;" |
116 | data-toggle="tooltip" data-html="true" data-placement="bottom" | 116 | data-toggle="tooltip" data-html="true" data-placement="bottom" |
117 | title="<b>Meta atingida!</b><br><br>Atenção! O seu resultado foi inferior a sua meta inicial." class="grey-tooltip"> | 117 | title="<b>Meta atingida!</b><br><br>Atenção! O seu resultado foi inferior a sua meta inicial." class="grey-tooltip"> |
118 | {{ meta.alcancada }}%</th> | 118 | {{ meta.alcancada }}%</th> |
119 | - | ||
120 | {% endif %} | 119 | {% endif %} |
120 | + | ||
121 | <!-- Cor amarela --> | 121 | <!-- Cor amarela --> |
122 | 122 | ||
123 | <!-- Cor verde --> | 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 | <th style="text-align:center;background-color:#00d337; text-shadow: 1px 1px 2px #000; color:#fff; font-weight: normal;" | 125 | <th style="text-align:center;background-color:#00d337; text-shadow: 1px 1px 2px #000; color:#fff; font-weight: normal;" |
126 | data-toggle="tooltip" data-html="true" data-placement="bottom" | 126 | data-toggle="tooltip" data-html="true" data-placement="bottom" |
127 | title="<b>Meta atingida!</b>" class="grey-tooltip"> | 127 | title="<b>Meta atingida!</b>" class="grey-tooltip"> |
128 | {{ meta.alcancada }}%</th> | 128 | {{ meta.alcancada }}%</th> |
129 | {% endif %} | 129 | {% endif %} |
130 | + | ||
130 | <!-- Cor verde --> | 131 | <!-- Cor verde --> |
131 | 132 | ||
132 | <!-- Cor vermelha --> | 133 | <!-- Cor vermelha --> |
@@ -141,7 +142,6 @@ | @@ -141,7 +142,6 @@ | ||
141 | 142 | ||
142 | 143 | ||
143 | </tr> | 144 | </tr> |
144 | - | ||
145 | {% endfor %} | 145 | {% endfor %} |
146 | 146 | ||
147 | 147 |
bulletin/templates/bulletin/window_view.html
@@ -126,29 +126,30 @@ | @@ -126,29 +126,30 @@ | ||
126 | 126 | ||
127 | 127 | ||
128 | <!-- Cor amarela --> | 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 | <th style="text-align:center;background-color:#f8b800 ; text-shadow: 1px 1px 2px #000; color:#fff; font-weight: normal;" | 130 | <th style="text-align:center;background-color:#f8b800 ; text-shadow: 1px 1px 2px #000; color:#fff; font-weight: normal;" |
131 | data-toggle="tooltip" data-html="true" data-placement="bottom" | 131 | data-toggle="tooltip" data-html="true" data-placement="bottom" |
132 | title="<b>Meta atingida!</b><br><br>Atenção! O seu resultado foi inferior ao recomendado pelo professor." class="grey-tooltip"> | 132 | title="<b>Meta atingida!</b><br><br>Atenção! O seu resultado foi inferior ao recomendado pelo professor." class="grey-tooltip"> |
133 | {{ meta.alcancada }}%</th> | 133 | {{ meta.alcancada }}%</th> |
134 | {% endif %} | 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 | <th style="text-align:center;background-color:#f8b800 ; text-shadow: 1px 1px 2px #000; color:#fff; font-weight: normal;" | 137 | <th style="text-align:center;background-color:#f8b800 ; text-shadow: 1px 1px 2px #000; color:#fff; font-weight: normal;" |
138 | data-toggle="tooltip" data-html="true" data-placement="bottom" | 138 | data-toggle="tooltip" data-html="true" data-placement="bottom" |
139 | title="<b>Meta atingida!</b><br><br>Atenção! O seu resultado foi inferior a sua meta inicial." class="grey-tooltip"> | 139 | title="<b>Meta atingida!</b><br><br>Atenção! O seu resultado foi inferior a sua meta inicial." class="grey-tooltip"> |
140 | {{ meta.alcancada }}%</th> | 140 | {{ meta.alcancada }}%</th> |
141 | - | ||
142 | {% endif %} | 141 | {% endif %} |
142 | + | ||
143 | <!-- Cor amarela --> | 143 | <!-- Cor amarela --> |
144 | 144 | ||
145 | <!-- Cor verde --> | 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 | <th style="text-align:center;background-color:#00d337; text-shadow: 1px 1px 2px #000; color:#fff; font-weight: normal;" | 147 | <th style="text-align:center;background-color:#00d337; text-shadow: 1px 1px 2px #000; color:#fff; font-weight: normal;" |
148 | data-toggle="tooltip" data-html="true" data-placement="bottom" | 148 | data-toggle="tooltip" data-html="true" data-placement="bottom" |
149 | title="<b>Meta atingida!</b>" class="grey-tooltip"> | 149 | title="<b>Meta atingida!</b>" class="grey-tooltip"> |
150 | {{ meta.alcancada }}%</th> | 150 | {{ meta.alcancada }}%</th> |
151 | {% endif %} | 151 | {% endif %} |
152 | + | ||
152 | <!-- Cor verde --> | 153 | <!-- Cor verde --> |
153 | 154 | ||
154 | <!-- Cor vermelha --> | 155 | <!-- Cor vermelha --> |