--- /dev/null
+<html>
+<head>
+ <title>AUF CODA {{code}} {{numero | int}}</title>
+</head>
+<body>
+
+<div id="titre">
+<h2><a href="../{{code_rest}}/{{numero | int}}.html">{{code}} {{numero | int}}</a> ({{statut}})</h2>
+</div>
+
+<div id="dates">
+Document créé le {{date_creation}}{% if date_modif != date_creation %} et mis à jour le {{date_modif}}{% endif %}
+<br />
+Date de livraison attendue : {{date_livraison}}
+</div>
+
+<div id="demandeur">
+Demandeur : <a href="../utilisateur/{{demandeur}}.html">{{demandeur}}</a>
+</div>
+
+<div id="approbateur">
+Approbateur : <a href="../utilisateur/{{approbateur}}.html">{{approbateur}}</a>
+</div>
+
+<div id="fournisseur">
+Fournisseur : <a href="../fournisseur/{{fournisseur}}.html">{{fournisseur}}</a>
+</div>
+
+<div id="code_service">
+Code service (imputation) : <a href="../budget/{{code_service}}.html?annee={{ budget.annee }}">{{ code_service }}</a>
+</div>
+
+<div id="implantation_payeuse">
+Implantation payeuse : {{implantation_payeuse}}
+</div>
+
+{% if commentaires and not commentaires is matching @/^\s*$/ %}
+<div id="commentaires">
+Commentaires : {{commentaires}}
+</div>
+{% endif %}
+
+<div id="details">
+<table id="details">
+<tr>
+ <th></th>
+ <th>Code</th>
+ <th>Description</th>
+ <th>Qté</th>
+ <th>P.U.</th>
+ <th>Valeur ligne</th>
+ <th>Taxe</th>
+</tr>
+{% for d in details %}
+<tr bgcolor="{% cycle '#c0c0c0', '#ffffff' %}">
+ <td>{{d.ligne}}</td>
+ <td>{{d.code_article}}</td>
+ <td>{{d.description_article}}
+ {% if d.commentaires_imprimer and not d.commentaires_imprimer is matching @/^\s*$/ %}
+ <br /><em>commentaires imprimés : </em><pre>{{ d.commentaires_imprimer }}</<pre>
+ {% endif %}
+ {% if d.commentaires_supplementaires and not d.commentaires_supplementaires is matching @/^\s*$/ %}
+ <br /><em>commentaires supplémentaires : </em><pre>{{ d.commentaires_supplementaires }}</pre>
+ {% endif %}
+ </td>
+ <td align="right">{{d.quantite}}</td>
+ <td align="right">{{d.prix_unitaire}} {{devise}}</td>
+ <td align="right">{{d.valeur_ligne}} {{devise}}</td>
+ <td>{{d.taxe}}</td>
+</tr>
+<!-- {{d.utilisateur}} {{d.date_creation}} {{d.date_modification}} -->
+{% endfor %}
+<tr>
+ <th colspan="5" align="right">Total</th>
+ <th align="right">{{total}} {{ devise }}</th>
+ <th></th>
+<tr>
+</table>
+</div>
+
+<table>
+<tr>
+<td>
+<div id="adresse_facturation">
+<strong>Adresse de facturation :</strong><br />
+{% for f in ( facturation_destination, facturation_addresse1, facturation_addresse2, facturation_addresse3, facturation_addresse4, facturation_addresse5, facturation_addresse6 ) %}
+ {% if not f is matching @/^\s*$/ %}{{ f }}<br />{% endif %}
+{% endfor %}
+Code postal : {{facturation_code_postal}}<br />
+Téléphone : {{facturation_telephone}}<br />
+Télécopie : {{facturation_telecopie}}<br />
+</div>
+</td>
+<td>
+<div id="adresse_livraison">
+<strong>Adresse de livraison :</strong><br />
+{% for f in ( livraison_destination, livraison_addresse1, livraison_addresse2, livraison_addresse3, livraison_addresse4, livraison_addresse5, livraison_addresse6 ) %}
+ {% if not f is matching @/^\s*$/ %}{{ f }}<br />{% endif %}
+{% endfor %}
+Code postal : {{livraison_code_postal}}<br />
+Téléphone : {{livraison_telephone}}<br />
+Télécopie : {{livraison_telecopie}}<br />
+</div>
+</td>
+</tr>
+</table>
+
+<div id="annexes">
+<h3>Annexes</h3>
+
+{% if liaisons %}
+ <div id=liaison">
+ Liaisons :
+ {% for l in liaisons %}
+ <a href="../{{l.code_rest}}/{{l.numero | int}}.html">{{ l.code }} {{ l.numero | int }}</a>{% if not loop.last %}, {% endif %}
+ {% endfor %}
+ </div>
+{% endif %}
+
+<div id="budget">
+Budget (le {{budget.date_interrogation}})
+<table id="budget" border="1">
+<tr>
+ <th>Année</th>
+ <th>Implantation</th>
+ <th colspan="2">Projet poste</th>
+ <th>Budget</th>
+ <th>Réel</th>
+ <th>Engagé</th>
+ <th>Solde</th>
+</tr>
+<tr>
+ <td>{{ budget.annee }}</td>
+ <td>{{ budget.implantation }}</td>
+ <td>{{ budget.poste}}<br />{{ budget.projet }}</td>
+ <td><a href="../budget/{{ budget.projet_poste }}.html?annee={{ budget.annee }}">{{ budget.projet_poste }}</a></td>
+ <td>{{ budget.budget }} €</td>
+ <td>{{ budget.reel }} €</td>
+ <td>{{ budget.engage }} €</td>
+ <td>{{ budget.solde }} €</td>
+</tr>
+</table>
+</div>
+
+</div>
+
+<!-- {{requete_sql}} -->
+</body>
+</html>
+