php-pdf-bundle/src/Resources/views/Pdf/document.html.twig

99 lines
1.9 KiB
Twig

{#
# This is the base document template for PdfBundle. You should construct your
# views by extending from this template.
#
# (c) 2017, NoccyLabs. Licensed under GPL v3
#}
{# -- break macro -- #}
{% macro break() %}
</div><div class="new-page">
{% if block("footer") is defined %}
<div class="page-footer">{{ block("footer") }}</div>
{% endif %}
{% endmacro %}
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
@media all {
div.page-footer {
position: fixed;
bottom: 2cm;
}
div.new-page {
page-break-before: always;
}
div.row {
display: block;
margin: 5px 0px;
width: 100%;
}
div.row:before,
div.row:after {
content: "";
display: table;
clear: both;
}
div.row > div {
float: left;
min-height: 1px;
}
div.col-1 {
width: 8.333%;
}
div.col-2 {
width: 16.667%;
}
div.col-3 {
width: 25.000%;
}
div.col-4 {
width: 33.333%;
}
div.col-5 {
width: 41.667%;
}
div.col-6 {
width: 50.000%;
}
div.col-7 {
width: 58.333%;
}
div.col-8 {
width: 66.667%;
}
div.col-9 {
width: 75.000%;
}
div.col-10 {
width: 83.333%;
}
div.col-11 {
width: 91.667%;
}
div.col-12 {
width: 100.000%;
}
{% block styles %}
{% endblock %}
}
</style>
</head>
<body>
{% if block("footer") is defined %}
<div class="page-footer">{{ block("footer") }}</div>
{% endif %}
<div>
{% block body %}
{% endblock %}
</div>
</body>
</html>