57 lines
2.6 KiB
HTML
57 lines
2.6 KiB
HTML
|
{% extends "base.html" %}
|
||
|
{% load intdot %}
|
||
|
|
||
|
{% block content %}
|
||
|
|
||
|
<div id="page" class=" sidebar_right">
|
||
|
<div class="container">
|
||
|
<div id="frame2">
|
||
|
<div id="content">
|
||
|
<div class="row">
|
||
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
||
|
<h1>{{ contract.title }} <small>({{ prestation_count }} prestations{% if not contract.is_paid%} <b><u>non payées</u></b>{% endif %})</small></h1>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="row">
|
||
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
||
|
<table class="table table-striped table-bordered table-condensed">
|
||
|
<thead>
|
||
|
<th>Date</th>
|
||
|
<th>Prestation</th>
|
||
|
<th class="centered">Unité</th>
|
||
|
<th class="centered">Prix</th>
|
||
|
<th class="centered">Total</th>
|
||
|
</thead>
|
||
|
{% for prestation in prestation_list %}
|
||
|
<tr>
|
||
|
<td>{{ prestation.date|date:"d-m-Y" }}</td>
|
||
|
<td><a href="{% url 'prestation_update' prestation.id %}">{{ prestation.label }}</a></td>
|
||
|
<td class="push-right">{{ prestation.unit }}</td>
|
||
|
<td class="push-right">{{ prestation.unit_price }}</td>
|
||
|
<td class="push-right">{{ prestation.total_amount }}</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
<tr>
|
||
|
<td colspan="4" class="push-right"><b>Total :</b></td>
|
||
|
<td class="push-right"><b>{{ total|floatformat:2|intdot }}</b></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
|
||
|
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
|
||
|
<a href="/billing/contract/pdf/{{ contract.id }}" class="btn btn-default btn-success" role="button">Facture PDF</a>
|
||
|
</div>
|
||
|
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
|
||
|
<p class="text-right">
|
||
|
<a href="{% url 'prestation_create' %}" class="btn btn-default btn-primary" role="button">Ajouter prestation</a>
|
||
|
</p>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
{% endblock %}
|