Report layout with print version
This commit is contained in:
parent
9c80cfca22
commit
b864bd7a65
3 changed files with 27 additions and 38 deletions
|
|
@ -107,38 +107,24 @@ p.notes {
|
|||
margin-right: 1%;
|
||||
}
|
||||
|
||||
@media (width: 1200px) {
|
||||
#body {
|
||||
/* @media (width: 1200px) { */
|
||||
@media print {
|
||||
/* #body {
|
||||
min-width: 1200px;
|
||||
}
|
||||
/* CSS styling to avoid page breaks. */
|
||||
.break-avoid {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
#results-div {
|
||||
min-height: 875px;
|
||||
}
|
||||
.first_page {
|
||||
height: 507px;
|
||||
}
|
||||
.second_page {
|
||||
height: 560px;
|
||||
}
|
||||
.third_page {
|
||||
height: 120px;
|
||||
}
|
||||
.fourth_page {
|
||||
height: 867px;
|
||||
}
|
||||
.collapse {
|
||||
display: block!important;
|
||||
}
|
||||
} */
|
||||
#results,
|
||||
#rules,
|
||||
#data {
|
||||
display: contents!important;
|
||||
break-inside: avoid;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
#link_reproduce_results {
|
||||
display: none!important;
|
||||
}
|
||||
#pdf-qr-code {
|
||||
visibility: inherit!important;
|
||||
}
|
||||
.collapse {
|
||||
display: block!important;
|
||||
}
|
||||
.tab-content {
|
||||
border-top: none!important;
|
||||
|
|
@ -155,11 +141,15 @@ p.notes {
|
|||
.print-button {
|
||||
display: none!important;
|
||||
}
|
||||
#link_reproduce_results {
|
||||
display: none!important;
|
||||
.card {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
#pdf-qr-code {
|
||||
visibility: inherit!important;
|
||||
/* CSS styling to avoid page breaks. */
|
||||
.break-after {
|
||||
page-break-after: always;
|
||||
}
|
||||
.break-avoid {
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,8 @@
|
|||
<h2 class="text-component-title mb-0">CARA - CALCULATOR REPORT</h1>
|
||||
<p class="mb-0"> Created {{ creation_date }} using CARA calculator version v{{ form.calculator_version }}</p>
|
||||
</div>
|
||||
<button type="button" class="btn btn-outline-dark align-self-center" style="margin-right: -100pt" id="download-pdf" onclick="generate_pdf_version('{{qr_code.link}}')">Download PDF</button>
|
||||
<button type="button" class="btn btn-outline-dark align-self-center" style="margin-right: -100pt" id="download-pdf" onclick="print()">Print Report</button>
|
||||
{# To be replaced by "Generate PDF" #}
|
||||
<img id="pdf-qr-code" class="align-self-center invisible" src="{{ qr_code.image }}"/>
|
||||
</div>
|
||||
|
||||
|
|
@ -96,7 +97,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="break-avoid first_page"></div>
|
||||
<div class="card bg-light mb-3">
|
||||
<div class="card-header"><strong>Alternative scenarios</strong>
|
||||
<button class="icon_button p-0 float-right" data-toggle="collapse" href="#collapseAlternativeScenarios" role="button" aria-expanded="false" aria-controls="collapseAlternativeScenarios">
|
||||
|
|
@ -144,7 +144,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="break-avoid second_page"></div>
|
||||
{% endblock report_results %}
|
||||
|
||||
{% block report_footer %}
|
||||
|
|
@ -175,7 +174,7 @@
|
|||
|
||||
<div class="tab-pane" id="data" role="tabpanel" aria-labelledby="data-tab" style="padding: 1%">
|
||||
{% block simulation_overview %}
|
||||
<div class=card>
|
||||
<div class="card">
|
||||
<div class="card-header"><strong>Simulation:</strong></div>
|
||||
<div class="card-body">
|
||||
<p>Simulation Name: {{ form.simulation_name }}</p>
|
||||
|
|
@ -371,8 +370,8 @@
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock simulation_overview %}
|
||||
<div class="break-avoid third_page"></div>
|
||||
<br>
|
||||
{% endblock simulation_overview %}
|
||||
</div>
|
||||
{% block report_preamble %}
|
||||
{% endblock report_preamble %}
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="break-avoid fourth_page"></div>
|
||||
<div class="break-after"></div>
|
||||
{% endblock report_preamble %}
|
||||
|
||||
{% block report_footer %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue