Project

General

Profile

Feature #5456 » display_committee.txt

Nicola Chiapolini, 30.07.2018 11:35

 
1
20.sql = SELECT position, member_type, head, leitung, title, firstname, lastname, university, department, address, mail FROM committee WHERE student='...'
2

    
3
20.twig = '
4
<h2>PhD Committee</h2>
5
<table id="myTable" class="table table-hover qfq-table-50">
6
{% for row in context|sort %}
7
<tr>
8
{% for value in row|slice(4,3) %}
9
<td>{{ value }}</td>
10
{% endfor %}
11
<td>
12
{% if row.head and row.leitung %}
13
(Vorsitz und Leitung)
14
{% elseif row.head %}
15
(Vorsitz)
16
{% elseif row.leitung %}
17
(Leitung)
18
{% endif %}
19
</td>
20
<td>
21
{% if row.member_type == 1 %}
22
<span class="label label-info" data-toggle="tooltip" data-placement="top" title="Has the right to confer a PhD">
23
confer PhD
24
</span>
25
{% elseif row.university %}
26
<span class="label label-info" data-toggle="tooltip" data-placement="top" title="{{ row.university }} - {{ row.department }} - {{ row.address|default('no address stored') }}">
27
external
28
</span>
29

    
30
{% endif %}
31
<td> 
32
{% if row.mail %}
33
<a href="mailto:{{ row.mail }}">{{ row.mail }}</a>
34
{% endif %}
35
</td>
36

    
37
</tr>
38
{% endfor %}
39
</table>
(5-5/7)