diff --git a/counter/templates/counter/counter_list.jinja b/counter/templates/counter/counter_list.jinja index 195d1175..68c33cbf 100644 --- a/counter/templates/counter/counter_list.jinja +++ b/counter/templates/counter/counter_list.jinja @@ -33,7 +33,12 @@ {% trans %}Stats{% endtrans %} - {% endif %} {% if user.is_owner(c) %} - {% trans %}Props{% endtrans %} + {% trans %}Props{% endtrans %} - + {%if c.stock %} + {{c.stock}} + {% else %} + {% trans %}Create new stock{% endtrans%} + {% endif %} {% endif %} {% endfor %} diff --git a/sith/urls.py b/sith/urls.py index d759979e..075e2f20 100644 --- a/sith/urls.py +++ b/sith/urls.py @@ -34,6 +34,7 @@ urlpatterns = [ url(r'^com/', include('com.urls', namespace="com", app_name="com")), url(r'^club/', include('club.urls', namespace="club", app_name="club")), url(r'^counter/', include('counter.urls', namespace="counter", app_name="counter")), + url(r'^stock/', include('stock.urls', namespace="stock", app_name="stock")), url(r'^accounting/', include('accounting.urls', namespace="accounting", app_name="accounting")), url(r'^eboutic/', include('eboutic.urls', namespace="eboutic", app_name="eboutic")), url(r'^launderette/', include('launderette.urls', namespace="launderette", app_name="launderette")), diff --git a/stock/templates/stock/stock_main.jinja b/stock/templates/stock/stock_main.jinja index fe9f8145..3cf56022 100644 --- a/stock/templates/stock/stock_main.jinja +++ b/stock/templates/stock/stock_main.jinja @@ -1 +1,11 @@ -TOTO \ No newline at end of file +{% extends "core/base.jinja" %} + +{% block title %} +{{stock}} +{% endblock %} + +{% block content %} +