48 lines
2.0 KiB
HTML
48 lines
2.0 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% 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>Liste des contrats {% if client %}pour <i>{{ client }}</i>{% endif %}</h1>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
|
|
{% if contract_list %}
|
|
<table class="table table-striped table-bordered table-condensed">
|
|
<thead>
|
|
<th class="centered">Année</th>
|
|
<th>Nom</th>
|
|
{% if not client %}
|
|
<th class="centered">Client</th>
|
|
{% endif %}
|
|
<th class="centered">Acompte</th>
|
|
<th class="centered"># Prest.</th>
|
|
</thead>
|
|
{% for contract in contract_list %}
|
|
<tr>
|
|
<td class="centered">{{ contract.date.year }}</td>
|
|
<td><a href="{% url 'contract_detail' contract.id %}">{{ contract.name }}</a></td>
|
|
{% if not client %}
|
|
<td>{{ contract.client }}</td>
|
|
{% endif %}
|
|
<td class="push-right">{{ contract.advance }}</td>
|
|
<td class="push-right">{{ contract.get_prestation.count }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{% endblock %} |