Feature #5456 » display_state.txt
1 |
30.sql = SELECT reg_done, check_head_done, check_studentaffairs_done, check_division_done, defense_processed, validation_done, scheduled_for_ceremony FROM phd_graduation WHERE id='...' |
---|---|
2 |
|
3 |
30.twig = '<h2>Status</h2> |
4 |
<table class="table table-hover qfq-table-50"> |
5 |
{% set row = context.0 %} |
6 |
{% set labels = {'reg_done': "Registration by Student", 'check_head_done': "Check by Head of Committee", 'check_studentaffairs_done': "Check by Office of Student Affairs", 'check_division_done': "Processed by Division", 'defense_processed': "Defense Processed", 'validation_done': "Validated by Faculty", 'scheduled_for_ceremony': "Scheduled for Ceremony" } %} |
7 |
{% for key, value in row %} |
8 |
{% if value != 0 %} |
9 |
<tr class="alert alert-success"> |
10 |
{% else %} |
11 |
<tr class="alert alert-warning"> |
12 |
{% endif %} |
13 |
<th style="width: 30%">{{ labels[key] }}</th> |
14 |
<td> |
15 |
{% if value != 0 %} |
16 |
<span class="glyphicon glyphicon-ok"> {{value}}</span> |
17 |
{% endif %} |
18 |
</td> |
19 |
</tr> |
20 |
{% endfor %} |
21 |
</table> |