mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-11 04:19:25 +00:00
general modifications
This commit is contained in:
15
stock/templates/stock/stock_item_list.jinja
Normal file
15
stock/templates/stock/stock_item_list.jinja
Normal file
@ -0,0 +1,15 @@
|
||||
{% extends "core/base.jinja" %}
|
||||
|
||||
{% block title %}
|
||||
{% trans s=stock %}{{stock}}{% endtrans %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if current_tab == "stocks" %}
|
||||
<p><a href="{{ url('stock:new_item', stock_id=stock.id)}}?stock={{stock.id}}">{% trans %}New item{% endtrans %}</a></p>
|
||||
{% endif %}
|
||||
<h3>{% trans s=stock %}{{stock}}{% endtrans %}</h3>
|
||||
|
||||
|
||||
|
||||
{% endblock %}
|
@ -11,7 +11,7 @@
|
||||
{% for s in stock_list.order_by('name') %}
|
||||
<li>
|
||||
{% if user.can_edit(s) %}
|
||||
<a href="{{ url('stock:main', stock_id=s.id) }}">{{s}}</a>
|
||||
<a href="{{ url('stock:items_list', stock_id=s.id)}}?stock={{s.id}}">{{s}}</a>
|
||||
- <a href="{{ url('stock:edit', stock_id=s.id) }}">Edit</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
|
Reference in New Issue
Block a user