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'] MD_EXTENSIONS = ['toc']
TALKS = { TALKS = {
1: { 'Relat@' : 'ciccio', u'1': { u'Speaker' : u'ciccio',
'Titolo': 'quanto è bello l''ha''ing', u'Title': u'quanto è bello l''ha''ing',
'Abstract': 'dio ''ane quanto è bello l''asinello', u'Abstract': u'dio \'ane quanto è bello l''asinello',
'Stanza': 'Quella piccola', u'Room': u'Quella piccola',
'Orario': '19:00 - 6:00', u'Schedule': u'19:00 - 6:00',
u'Day':'Venerday',
} }
} }

View file

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