Printing: retrieve number of dives per page from the template file

Add special data attribute 'data-numberofdives' in the template <body> with
the number of dives per page.
This is standard HTML5 specification so it won't corrupt the template file.
Any template that will be used for printing must contain this attribute to
assure correct output.

Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Gehad elrobey 2015-07-04 23:54:15 +02:00 committed by Lubomir I. Ivanov
parent 6446b75b9e
commit 815072d2ae
3 changed files with 9 additions and 9 deletions

View file

@ -92,7 +92,7 @@
}
</style>
</head>
<body>
<body data-numberofdives = 1>
{% block main_rows %}
{% for dive in dives %}
<div class="mainContainer">