diff options
author | Gehad elrobey <gehadelrobey@gmail.com> | 2015-08-16 15:45:15 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2015-08-22 18:32:17 +0300 |
commit | b19d07c61cc985eeaccf6cbf8b87db2e1dcfa774 (patch) | |
tree | 96fc2ebe7a5b6d4943283755eab0cdc53d3ccd2a /printing_templates | |
parent | 67bfa9f96819ae3e2da07ff1413b90990fab745d (diff) | |
download | subsurface-b19d07c61cc985eeaccf6cbf8b87db2e1dcfa774.tar.gz |
Printing: fix the six dives per page layout
Add container with height 100% which contains the six dives, so dives
don't overflow the page.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com>
Diffstat (limited to 'printing_templates')
-rw-r--r-- | printing_templates/Six Dives.html | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/printing_templates/Six Dives.html b/printing_templates/Six Dives.html index 3f2c7b95e..9d4d1341e 100644 --- a/printing_templates/Six Dives.html +++ b/printing_templates/Six Dives.html @@ -40,11 +40,11 @@ .mainContainer { width: 50%; - height: 33.333333%; + height: 33.333%; margin-left: 0%; margin-right: 0%; - margin-top: 0; - margin-bottom: 0; + margin-top: 0%; + margin-bottom: 0%; overflow: hidden; page-break-inside: avoid; float: left; @@ -111,12 +111,20 @@ text-overflow: ellipsis; line-height: {{ template_options.line_spacing }}; } + + #sixdivespack { + width: 100%; + height: 100%; + } </style> </head> <body data-numberofdives = 6> <div id="body_div"> {% block main_rows %} {% for dive in dives %} + {% if forloop.counter|divisibleby:6 %} + <div id = "sixdivespack"> + {% endif %} <div class="mainContainer"> <div class="innerContainer"> <div class="diveDetails"> @@ -173,6 +181,9 @@ </div> </div> </div> + {% if forloop.counter|divisibleby:6 %} + </div> + {% endif %} {% endfor %} {% endblock %} <div id="footer"> |