mirror of
https://github.com/almet/copanier.git
synced 2025-04-28 11:32:38 +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 {
|
||||
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.
|
||||
*/
|
||||
.content {
|
||||
margin: 0 auto;
|
||||
padding: 0 2em;
|
||||
max-width: 800px;
|
||||
|
||||
margin-bottom: 50px;
|
||||
line-height: 1.6em;
|
||||
}
|
||||
|
||||
.narrow {
|
||||
margin: 0 auto;
|
||||
max-width: 800px;
|
||||
}
|
||||
|
||||
.header {
|
||||
margin: 0;
|
||||
color: #333;
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
|
||||
{% import "includes/macros.html" as macros %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
@ -51,7 +52,7 @@
|
|||
{% block toplink %}{% endblock %}
|
||||
</div>
|
||||
<div id="main">
|
||||
<div class="content">
|
||||
<div class="content {% block is_wide %}narrow{% endblock %}">
|
||||
{% block body %}
|
||||
{% endblock body %}
|
||||
</div>
|
||||
|
|
|
@ -1,14 +1,9 @@
|
|||
{% extends "base.html" %}
|
||||
{% block is_wide %}{% endblock %}
|
||||
{% block body %}
|
||||
<div class="header">
|
||||
<h1><i class="icon-wallet"></i> {{ delivery.name }} : Répartition des paiements</h1>
|
||||
<div class="pure-menu pure-menu-horizontal">
|
||||
<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>
|
||||
<h1>{{ delivery.name }}</h1>
|
||||
<h2><i class="icon-wallet"></i> Répartition des paiements</h2>
|
||||
</div>
|
||||
|
||||
<table class="paiements">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block is_wide %}{% endblock %}
|
||||
{% block body %}
|
||||
|
||||
<div class="header">
|
||||
|
|
|
@ -23,6 +23,7 @@ async def list_products(request, response, id):
|
|||
response.pdf(
|
||||
template_name,
|
||||
template_params,
|
||||
css="landscape.css",
|
||||
filename=utils.prefix("producteurices.pdf", delivery),
|
||||
)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue