1499c0bced
K-Fêt - Wagtail - Page content becomes a StreamField. - GroupTeam snippet becomes a block for stream field. - Navigation menu moved becomes a "flatmenu", preventing possible future conflicts. - Page layout can be modified in wagtail admin. K-Fêt - Add shorthands for ukf account balance/article price. - Cleaning stylesheets and templates.
61 lines
1.5 KiB
HTML
61 lines
1.5 KiB
HTML
{% extends "kfet/base_col_2.html" %}
|
|
|
|
{% block title %}Inventaire #{{ inventory.pk }}{% endblock %}
|
|
{% block header-title %}Inventaire #{{ inventory.pk }}{% endblock %}
|
|
|
|
{% block fixed %}
|
|
|
|
<aside>
|
|
<div class="text">
|
|
<ul class="list-unstyled">
|
|
<li><b>Date :</b> {{ inventory.at }}</li>
|
|
<li><b>Par :</b> {{ inventory.by }}</li>
|
|
{% if inventory.order %}
|
|
<li>
|
|
<b>Commande relative :</b>
|
|
<a href="{% url 'kfet.order.read' inventory.order.pk %}">
|
|
#{{ inventory.order.pk }}
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
</aside>
|
|
|
|
{% endblock %}
|
|
|
|
{% block main %}
|
|
|
|
<div class="table-responsive">
|
|
<table class="table table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<td>Article</td>
|
|
<td>Stock avant</td>
|
|
<td>Stock après</td>
|
|
<td>Erreur</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for inventoryart in inventoryarts %}
|
|
{% ifchanged inventoryart.article.category %}
|
|
<tr class="section">
|
|
<td colspan="4">{{ inventoryart.article.category.name }}</td>
|
|
</tr>
|
|
{% endifchanged %}
|
|
<tr>
|
|
<td>
|
|
<a href="{% url "kfet.article.read" inventoryart.article.id %}">
|
|
{{ inventoryart.article.name }}
|
|
</a>
|
|
</td>
|
|
<td>{{ inventoryart.stock_old }}</td>
|
|
<td>{{ inventoryart.stock_new }}</td>
|
|
<td>{{ inventoryart.stock_error }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
{% endblock %}
|