diff --git a/python/web/library/views.py b/python/web/library/views.py index fd2b131..a1eee0f 100644 --- a/python/web/library/views.py +++ b/python/web/library/views.py @@ -58,7 +58,9 @@ def PersonIndex(request): return render_to_response('person/index.html', {'persons': Person.objects.all().order_by('last_name')}) def MapIndex(request): - return render_to_response('map/index.html', {'shelves': Placement.get_all_shelves()}) + shelves = Placement.get_all_shelves() + shelf_lists = [(shelf, Placement.shelf_as_list_row_then_col(shelf)) for shelf in shelves] + return render_to_response('map/index.html', {'shelf_lists': shelf_lists}) def MapView(request,shelf_identifier): if shelf_identifier not in Placement.get_all_shelves(): diff --git a/python/web/templates/map/index.html b/python/web/templates/map/index.html index c5700c8..3670d7a 100644 --- a/python/web/templates/map/index.html +++ b/python/web/templates/map/index.html @@ -4,12 +4,25 @@ Hyllekart {% endblock %} + {% block content %} -

Hyller

-