Completes table code considering the order of fields

This commit is contained in:
sValo 2016-03-06 01:22:35 +01:00
parent f86cf212d1
commit 62800c0666
2 changed files with 31 additions and 17 deletions

View file

@ -60,10 +60,12 @@ PLUGINS = ['langmenu']
MD_EXTENSIONS = ['toc']
TALKS = {
1: { 'Relat@' : 'ciccio',
'Titolo': 'quanto è bello l''ha''ing',
'Abstract': 'dio ''ane quanto è bello l''asinello',
'Stanza': 'Quella piccola',
'Orario': '19:00 - 6:00',
u'1': { u'Speaker' : u'ciccio',
u'Title': u'quanto è bello l''ha''ing',
u'Abstract': u'dio \'ane quanto è bello l''asinello',
u'Room': u'Quella piccola',
u'Schedule': u'19:00 - 6:00',
u'Day':'Venerday',
}
}

View file

@ -5,14 +5,17 @@
<th>
#
</th>
<th>
Giorno
</th>
<th>
Orario
</th>
<th>
Relat
Titolo
</th>
<th>
Titolo
Relatore/Relatrice/i
</th>
<th>
Abstract
@ -20,22 +23,31 @@
<th>
Stanza
</th>
<th>
{{ TALKS }}
</th>
</tr>
{% for talk_num, talk in TALKS %}
{% for talk_num, talk in TALKS.iteritems() %}
{# Write description of the talk #}
<tr>
<td>
<b>talk_num:</b>
{{ talk_num }}
</td>
{% for col, cont in talk %}
<td>
{{ talk.col }}
</td>
{% endfor %}
<td>
{{ talk.Day }}
</td>
<td>
{{ talk.Schedule }}
</td>
<td>
{{ talk.Title }}
</td>
<td>
{{ talk.Speaker }}
</td>
<td>
{{ talk.Abstract }}
</td>
<td>
{{ talk.Room }}
</td>
</tr>
{% endfor %}
</table>