mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 19:42:37 +02:00
A few style changes for better display.
This commit is contained in:
parent
4067adf3e7
commit
c25ba8f974
7 changed files with 24 additions and 12 deletions
7
copanier/static/landscape.css
Normal file
7
copanier/static/landscape.css
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
body {
|
||||||
|
padding: 5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
@page {
|
||||||
|
size: landscape !important;
|
||||||
|
}
|
|
@ -1,3 +1,7 @@
|
||||||
|
body {
|
||||||
|
padding: 5em;
|
||||||
|
}
|
||||||
|
|
||||||
@page {
|
@page {
|
||||||
size: portrait !important;
|
size: portrait !important;
|
||||||
}
|
}
|
|
@ -40,13 +40,17 @@ This is the parent `<div>` that contains the menu and the content area.
|
||||||
The content `<div>` is where all your content goes.
|
The content `<div>` is where all your content goes.
|
||||||
*/
|
*/
|
||||||
.content {
|
.content {
|
||||||
margin: 0 auto;
|
|
||||||
padding: 0 2em;
|
padding: 0 2em;
|
||||||
max-width: 800px;
|
|
||||||
margin-bottom: 50px;
|
margin-bottom: 50px;
|
||||||
line-height: 1.6em;
|
line-height: 1.6em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.narrow {
|
||||||
|
margin: 0 auto;
|
||||||
|
max-width: 800px;
|
||||||
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: #333;
|
color: #333;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
{% import "includes/macros.html" as macros %}
|
{% import "includes/macros.html" as macros %}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
@ -51,7 +52,7 @@
|
||||||
{% block toplink %}{% endblock %}
|
{% block toplink %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
<div id="main">
|
<div id="main">
|
||||||
<div class="content">
|
<div class="content {% block is_wide %}narrow{% endblock %}">
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{% endblock body %}
|
{% endblock body %}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,14 +1,9 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
{% block is_wide %}{% endblock %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h1><i class="icon-wallet"></i> {{ delivery.name }} : Répartition des paiements</h1>
|
<h1>{{ delivery.name }}</h1>
|
||||||
<div class="pure-menu pure-menu-horizontal">
|
<h2><i class="icon-wallet"></i> Répartition des paiements</h2>
|
||||||
<ul class="pure-menu-list">
|
|
||||||
<li class="pure-menu-item">
|
|
||||||
<a class="pure-menu-link" href="{{ url_for('compute_payments', id=delivery.id) }}.pdf">Télécharger</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="paiements">
|
<table class="paiements">
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
{% block is_wide %}{% endblock %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
|
||||||
<div class="header">
|
<div class="header">
|
||||||
|
|
|
@ -23,6 +23,7 @@ async def list_products(request, response, id):
|
||||||
response.pdf(
|
response.pdf(
|
||||||
template_name,
|
template_name,
|
||||||
template_params,
|
template_params,
|
||||||
|
css="landscape.css",
|
||||||
filename=utils.prefix("producteurices.pdf", delivery),
|
filename=utils.prefix("producteurices.pdf", delivery),
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue