diff options
author | Nico von Geyso <Nico.Geyso@FU-Berlin.de> | 2012-08-15 15:49:32 +0200 |
---|---|---|
committer | Nico von Geyso <Nico.Geyso@FU-Berlin.de> | 2012-08-15 15:49:32 +0200 |
commit | ed5e89436e219f0cf0f699c322f23b762d18f385 (patch) | |
tree | 354e0311bfd748538adadab35b4962051b1b1252 /templates/module_show.html | |
parent | e44bf2091f1e873b8a7b1978fbf5754f1363bab2 (diff) | |
download | klausuren-ed5e89436e219f0cf0f699c322f23b762d18f385.tar.gz klausuren-ed5e89436e219f0cf0f699c322f23b762d18f385.tar.bz2 klausuren-ed5e89436e219f0cf0f699c322f23b762d18f385.zip |
added module entries in form upload
Diffstat (limited to 'templates/module_show.html')
-rw-r--r-- | templates/module_show.html | 44 |
1 files changed, 26 insertions, 18 deletions
diff --git a/templates/module_show.html b/templates/module_show.html index 8b2dda1..9e7e336 100644 --- a/templates/module_show.html +++ b/templates/module_show.html @@ -1,24 +1,32 @@ +{% macro render_module_list(module) %} +<ul id="module-list"> +{% for year,files in module %} + <li> + {{year}} + <ul> + {% for name,oid in files %} + <li> + <a href="{{url_for('study_show', study = study, oid=oid)}}">{{name}}</a> + </li> + {% endfor %} + </ul> + </li> +{% else %} + <li>Keine Einträge bisher</li> +{% endfor %} +</ul> +{% endmacro %} + {% extends "layout.html" %} {% block body %} - <h3>{{module}}</h3> + <p class="right"> + <a href="{{url_for('study_index', study=study)}}">zurück zur Übersicht</a> + </p> - <p> - <a href="{{url_for('study_index', study=study)}}">zurück zur Übersicht</a> - </p> + <div id="module-index"> + <h3>{{module}}</h3> - <ul> - {% for year,files in entries %} - <li> - {{year}} - <ul> - {% for name,oid in files %} - <li> - <a href="{{url_for('study_show', study = study, oid=oid)}}">{{name}}</a> - </li> - {% endfor %} - </ul> - </li> - {% endfor %} - </ul> + {{ render_module_list(entries)}} + </div> {% endblock %} |