Addition of the stock parameter to the counter admin list

This commit is contained in:
guillaume-renaud
2016-11-08 18:14:41 +01:00
parent 33c7e7db9f
commit 29fb0af893
5 changed files with 43 additions and 5 deletions

View File

@ -33,7 +33,12 @@
<a href="{{ url('counter:stats', counter_id=c.id) }}">{% trans %}Stats{% endtrans %}</a> -
{% endif %}
{% if user.is_owner(c) %}
<a href="{{ url('counter:prop_admin', counter_id=c.id) }}">{% trans %}Props{% endtrans %}</a>
<a href="{{ url('counter:prop_admin', counter_id=c.id) }}">{% trans %}Props{% endtrans %}</a> -
{%if c.stock %}
<a href="{{ url('stock:main', stock_id=c.stock.id) }}">{{c.stock}}</a>
{% else %}
<a href="{{ url('stock:new', counter_id=c.id) }}">{% trans %}Create new stock{% endtrans%}</a>
{% endif %}
{% endif %}
</li>
{% endfor %}