general modifications

This commit is contained in:
guillaume-renaud
2016-11-14 00:38:33 +01:00
parent 587ad96326
commit 5cb75ec3eb
7 changed files with 82 additions and 17 deletions

View 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 %}

View File

@ -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>