mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-30 04:54:23 +00:00
25 lines
679 B
Django/Jinja
25 lines
679 B
Django/Jinja
{% extends "core/base.jinja" %}
|
|
|
|
{% block title %}
|
|
{% trans %}Stock list{% endtrans %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if stock_list %}
|
|
<h3>{% trans %}Stock list{% endtrans %}</h3>
|
|
<ul>
|
|
{% for s in stock_list.order_by('name') %}
|
|
<li>
|
|
{% if user.can_edit(s) %}
|
|
<a href="{{ url('stock:items_list', stock_id=s.id) }}">{{ s }}</a>
|
|
- <a href="{{ url('stock:edit', stock_id=s.id) }}">Edit</a>
|
|
- <a href="{{ url('stock:shoppinglist_list', stock_id=s.id)}}">{% trans %}Shopping lists{% endtrans %}</a>
|
|
{% endif %}
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% else %}
|
|
{% trans %}There is no stocks in this website.{% endtrans %}
|
|
{% endif %}
|
|
{% endblock %}
|