2016-08-27 22:55:31 +02:00
|
|
|
{% extends 'kfet/base.html' %}
|
|
|
|
|
|
|
|
{% block title %}Commandes{% endblock %}
|
|
|
|
{% block content-header-title %}Commandes{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4 col-md-3 col-content-left">
|
|
|
|
<div class="content-left">
|
|
|
|
<div class="content-left-top">
|
2016-08-30 23:32:54 +02:00
|
|
|
<div class="line line-big">{{ orders|length }}</div>
|
|
|
|
<div class="line line-bigsub">commande{{ orders|length|pluralize }}</div>
|
2016-08-27 22:55:31 +02:00
|
|
|
</div>
|
|
|
|
<div class="buttons">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-8 col-md-9 col-content-right">
|
|
|
|
{% include 'kfet/base_messages.html' %}
|
|
|
|
<div class="content-right">
|
|
|
|
<div class="content-right-block">
|
|
|
|
<h2>Fournisseurs</h2>
|
2016-08-30 20:32:00 +02:00
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-condensed">
|
2016-08-27 22:55:31 +02:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2016-08-28 05:39:34 +02:00
|
|
|
<td></td>
|
2016-08-27 22:55:31 +02:00
|
|
|
<td></td>
|
|
|
|
<td>Nom</td>
|
|
|
|
<td>Mail</td>
|
|
|
|
<td>Tél.</td>
|
|
|
|
<td>Adresse</td>
|
|
|
|
<td>Commentaire</td>
|
|
|
|
<tbody>
|
|
|
|
{% for supplier in suppliers %}
|
|
|
|
<tr>
|
2016-08-30 20:32:00 +02:00
|
|
|
<td class="no-padding">
|
2016-08-28 05:39:34 +02:00
|
|
|
<a href="{% url 'kfet.order.new' supplier.pk %}" class="btn btn-primary">
|
|
|
|
Passer une commande
|
|
|
|
</a>
|
|
|
|
</td>
|
2016-08-30 20:32:00 +02:00
|
|
|
<td class="text-center">
|
2016-08-27 22:55:31 +02:00
|
|
|
<a href="{% url 'kfet.order.supplier.update' supplier.pk %}">
|
|
|
|
<span class="glyphicon glyphicon-cog"></span>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>{{ supplier.name }}</td>
|
|
|
|
<td>{{ supplier.email }}</td>
|
|
|
|
<td>{{ supplier.phone }}</td>
|
|
|
|
<td>{{ supplier.address }}</td>
|
|
|
|
<td>{{ supplier.comment }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-08-28 05:39:34 +02:00
|
|
|
<div class="content-right-block">
|
|
|
|
<h2>Liste des commandes</h2>
|
2016-08-30 20:32:00 +02:00
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-condensed">
|
|
|
|
<thead>
|
2016-08-28 05:39:34 +02:00
|
|
|
<tr>
|
2016-08-30 20:32:00 +02:00
|
|
|
<td></td>
|
|
|
|
<td></td>
|
|
|
|
<td>Date</td>
|
|
|
|
<td>Fournisseur</td>
|
2016-08-30 23:32:54 +02:00
|
|
|
<td>Inventaire</td>
|
2016-08-28 05:39:34 +02:00
|
|
|
</tr>
|
2016-08-30 20:32:00 +02:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for order in orders %}
|
|
|
|
<tr>
|
|
|
|
<td class="no-padding">
|
2016-08-30 23:32:54 +02:00
|
|
|
{% if not order.inventory %}
|
2016-08-30 20:32:00 +02:00
|
|
|
<a href="{% url 'kfet.order.to_inventory' order.pk %}" class="btn btn-primary">
|
|
|
|
Générer inventaire
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a href="{% url 'kfet.order.read' order.pk %}">
|
|
|
|
<span class="glyphicon glyphicon-cog"></span>
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>{{ order.at }}</td>
|
|
|
|
<td>{{ order.supplier }}</td>
|
2016-08-30 23:32:54 +02:00
|
|
|
<td>
|
|
|
|
{% if order.inventory %}
|
|
|
|
<a href="{% url 'kfet.inventory.read' order.inventory.pk %}">
|
|
|
|
#{{ order.inventory.pk }}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2016-08-30 20:32:00 +02:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
2016-08-28 05:39:34 +02:00
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-08-27 22:55:31 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|