Skip to content
Snippets Groups Projects
Commit 09f1a14e authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Fix and improve plan view

Add link to room detail view in slot table
Fix location based nesting in plan
parent 9a5bb464
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
{ {
'id': '{{ room.title }}', 'id': '{{ room.title }}',
'title': '{{ room.title }}', 'title': '{{ room.title }}',
'parentId': '{{ room.building }}', 'parentId': '{{ room.location }}',
}, },
{% endfor %} {% endfor %}
{% for building in buildings %} {% for building in buildings %}
......
...@@ -6,7 +6,9 @@ ...@@ -6,7 +6,9 @@
<tr> <tr>
<td><b><a href="{% url 'submit:ak_detail' event_slug=event.slug pk=akslot.ak.pk %}">{{ akslot.ak.name }}</a></b></td> <td><b><a href="{% url 'submit:ak_detail' event_slug=event.slug pk=akslot.ak.pk %}">{{ akslot.ak.name }}</a></b></td>
<td>{{ akslot.start | time:"H:i" }} - {{ akslot.end | time:"H:i" }}</td> <td>{{ akslot.start | time:"H:i" }} - {{ akslot.end | time:"H:i" }}</td>
<td>{{ akslot.room }}</td> <td>{% if akslot.room and akslot.room.pk != '' %}
<a href="{% url 'plan:plan_room' event_slug=event.slug pk=akslot.room.pk %}">{{ akslot.room }}</a>
{% endif %}</td>
</tr> </tr>
{% empty %} {% empty %}
{% trans "No AKs" %} {% trans "No AKs" %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment