diff options
author | Christian Franke <nobody@nowhere.ws> | 2012-01-24 01:31:40 +0100 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2012-01-24 01:31:40 +0100 |
commit | 48b4ce88c6940eb76a20c2df7acbc0b1200b3984 (patch) | |
tree | 527c99c399e937b0f5e9a716b91c8ef7d49873ee /sublab_project/calendarium | |
parent | 639f6bee335e0f68ed6ce08bbb9934b182cc46fe (diff) |
Nicen up eventlist/calendarium
Diffstat (limited to 'sublab_project/calendarium')
-rw-r--r-- | sublab_project/calendarium/templates/calendarium/list_events.html | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/sublab_project/calendarium/templates/calendarium/list_events.html b/sublab_project/calendarium/templates/calendarium/list_events.html index b70b830..4ccecfc 100644 --- a/sublab_project/calendarium/templates/calendarium/list_events.html +++ b/sublab_project/calendarium/templates/calendarium/list_events.html @@ -1,22 +1,36 @@ {% extends 'base.html' %} {% block title %}Termine{% endblock %} +{% block header %} +<script src="{{ STATIC_URL }}js/jquery-1.7.1.js" type="text/javascript" charset="utf-8"></script> +<script type="text/javascript"> +<!-- +$(document).ready(function() { + $(".events h4").click(function() { + $(this).next().toggle('medium'); + }).next().hide(); +}); +--> +</script> +{% endblock %} {%block content %} <h2>Termine</h2> <p>Hier findest du Veranstaltungen, die im sublab und dessen Umgebung stattfinden.</p> <h3>Veranstaltungen im sublab</h3> - <ul class="events"> + <div class="events"> {% for event in events_source_import %} - <li>{{ event.start|date:"l, j. F Y H:i" }} bis {{ event.end|date:"H:i" }} Uhr - {{ event.name }}<br/>{{ event.description }}</li> + <h4>{{ event.start|date:"l, j. F Y H:i" }} bis {{ event.end|date:"H:i" }} Uhr: {{ event.name }}</h4> + <p class="description">{{ event.description }}</p> {% endfor %} - </ul> + </div> {% if events_source_admin %} <h3>Was sonst noch los ist</h3> - <ul class="events"> + <div class="events"> {% for event in events_source_admin %} - <li>{{ event.start|date:"l, j. F Y H:i" }} bis {{ event.end|date:"l, j. F Y H:i" }} Uhr - {{ event.name }}<br/>{{ event.description }}</li> + <h4>{{ event.start|date:"l, j. F Y H:i" }} bis {{ event.end|date:"l, j. F Y H:i" }} Uhr: {{ event.name }}</h4> + <p class="description">{{ event.description }}</p> {% endfor %} + </div> {% endif %} - </ul> {% endblock content %} |