|
4 | 4 | {% endblock %}
|
5 | 5 | {% block body %}
|
6 | 6 | <div class="container main">
|
| 7 | + <div class="row mobile-hide"> |
| 8 | + <div class="col-sm-10"> |
| 9 | + <h3 class="page-title">Intro Evaluations</h3> |
| 10 | + </div> |
| 11 | + <div class="col-sm-2"> |
| 12 | + <div class="material-switch align-center"> |
| 13 | + <div class="switch-label">Table View</div> |
| 14 | + <input id="evalToggle" name="evalToggle" type="checkbox" data-module="evalToggle"/> |
| 15 | + <label for="evalToggle" class="label-primary"></label> |
| 16 | + </div> |
| 17 | + </div> |
| 18 | + </div> |
| 19 | + <div id="eval-blocks"> |
7 | 20 | {% if members|length > 0 %}
|
8 | 21 | {% for m in members %}
|
9 | 22 | <div class="panel panel-default">
|
@@ -169,8 +182,90 @@ <h4>Other Comments</h4>
|
169 | 182 |
|
170 | 183 | </div>
|
171 | 184 | {% endfor %}
|
| 185 | +</div> |
172 | 186 | {% else %}
|
173 | 187 | <div class="alert alert-info" role="alert"><span class="glyphicon glyphicon-info-sign white" style="padding-right:5px"></span> There are currently no active intro members.</div>
|
174 | 188 | {% endif %}
|
| 189 | + |
| 190 | +<div id="eval-table" style="display:none;"> |
| 191 | + <div class="panel panel-default"> |
| 192 | + <div class="panel-body table-fill"> |
| 193 | + <div class="panel-body table-fill"> |
| 194 | + <div class="table-responsive"> |
| 195 | + <table class="table table-striped no-bottom-margin" data-module="table" data-searchable="true" data-sort-column="3" data-sort-order="asc" data-length-changable="true" data-paginated="false"> |
| 196 | + <thead> |
| 197 | + <tr> |
| 198 | + <th>Name</th> |
| 199 | + <th>Result</th> |
| 200 | + <th>Meetings</th> |
| 201 | + <th>Signatures Missed</th> |
| 202 | + <th>Freshman Project</th> |
| 203 | + <th>Technical Seminars</th> |
| 204 | + <th>House Meetings Missed</th> |
| 205 | + </tr> |
| 206 | + </thead> |
| 207 | + <tbody> |
| 208 | + {% for m in members %} |
| 209 | + <tr> |
| 210 | + <td> |
| 211 | + <img class="eval-user-img" alt="{{m['uid']}}" src="https://profiles.csh.rit.edu/image/{{m['uid']}}" width="30" height="30" /> {{m['name']}} ({{m['uid']}}) |
| 212 | + </td> |
| 213 | + <td> |
| 214 | + {% if m['status'] == "Passed" %} |
| 215 | + <span class="glyphicon glyphicon-ok green"></span> Passed |
| 216 | + {% elif m['status'] == "Pending" %} |
| 217 | + <span class="glyphicon glyphicon-hourglass yellow"></span> Pending |
| 218 | + {% else %} |
| 219 | + <span class="glyphicon glyphicon-remove red"></span> Failed |
| 220 | + {% endif %} |
| 221 | + </td> |
| 222 | + <td> |
| 223 | + {% if m['committee_meetings'] < 10 %} |
| 224 | + <span class="glyphicon glyphicon-remove-sign red eval-info-status"></span> {{m['committee_meetings']}} |
| 225 | + {% else %} |
| 226 | + <span class="glyphicon glyphicon-ok-sign green eval-info-status"></span> {{m['committee_meetings']}} |
| 227 | + {% endif %} |
| 228 | + </td> |
| 229 | + <td> |
| 230 | + {% if m['signatures_missed'] == 0 %} |
| 231 | + <span class="glyphicon glyphicon-ok-sign green eval-info-status"></span> {{ m['signatures_missed'] }} |
| 232 | + {% elif m['signatures_missed'] > 0 %} |
| 233 | + <span class="glyphicon glyphicon-remove-sign red eval-info-status"></span> {{ m['signatures_missed'] }} |
| 234 | + {% else %} |
| 235 | + <span class="glyphicon glyphicon-hourglass yellow eval-info-status"></span> Pending |
| 236 | + {% endif %} |
| 237 | + </td> |
| 238 | + <td> |
| 239 | + {% if m['freshman_project'] == "Passed" %} |
| 240 | + <span class="glyphicon glyphicon-ok-sign green eval-info-status"></span> Passed |
| 241 | + {% elif m['freshman_project'] == "Failed" %} |
| 242 | + <span class="glyphicon glyphicon-remove-sign red eval-info-status"></span> Failed |
| 243 | + {% else %} |
| 244 | + <span class="glyphicon glyphicon-hourglass yellow eval-info-status"></span> Pending |
| 245 | + {% endif %} |
| 246 | + </td> |
| 247 | + <td> |
| 248 | + {% if m['technical_seminars']|length >= 2 %} |
| 249 | + <span class="glyphicon glyphicon-ok-sign green eval-info-status"></span> {{m['technical_seminars']|length}} |
| 250 | + {% else %} |
| 251 | + <span class="glyphicon glyphicon-remove-sign red eval-info-status"></span> {{m['technical_seminars']|length}} |
| 252 | + {% endif %} |
| 253 | + </td> |
| 254 | + <td> |
| 255 | + {% if m['house_meetings_missed']|length == 0 %} |
| 256 | + <span class="glyphicon glyphicon-ok-sign green eval-info-status"></span> {{m['house_meetings_missed']|length}} |
| 257 | + {% else %} |
| 258 | + <span class="glyphicon glyphicon-remove-sign red eval-info-status"></span> {{m['house_meetings_missed']|length}} |
| 259 | + {% endif %} |
| 260 | + </td> |
| 261 | + </tr> |
| 262 | + {% endfor %} |
| 263 | + </tbody> |
| 264 | + </table> |
| 265 | + </div> |
| 266 | + </div> |
| 267 | + </div> |
| 268 | + </div> |
| 269 | + </div> |
175 | 270 | </div>
|
176 | 271 | {% endblock %}
|
0 commit comments