X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/b15e203d42d3fd0880ca21d6251dca6fa46405c9..0b1bf765d6185ef20235e702b2969d951bca4de5:/src/documents/templates/documents/book_detail.html diff --git a/src/documents/templates/documents/book_detail.html b/src/documents/templates/documents/book_detail.html index 273b3a74..f534cd69 100644 --- a/src/documents/templates/documents/book_detail.html +++ b/src/documents/templates/documents/book_detail.html @@ -141,39 +141,39 @@ - {% if perms.depot.add_shopbookpublish %} - {% depot_shops book as shops %} - {% for shop in shops %} + {% if perms.depot.add_sitebookpublish %} + {% depot_sites book as sites %} + {% for site in sites %}
-

{{ shop.name }}

- {% if not shop.errors %} -
+

{{ site.name }}

+ {% if not site.errors %} + {% csrf_token %}
- {% for info in shop.info %} + {% for info in site.info %}
{{ info }}
{% endfor %} {% else %} - {% for error in shop.errors %} + {% for error in site.errors %}
{{ error }}
{% endfor %} {% endif %} - {% for warning in shop.warnings %} + {% for warning in site.warnings %}
{{ warning }}
{% endfor %} - {% if shop.id %} - id:{{ shop.id }} + {% if site.id %} + id:{{ site.id }} {% endif %} - {% with last=shop.last %} + {% with last=site.last %} {% if last %} {{ last.created_at }} → {{ last.started_at }} → @@ -181,7 +181,7 @@ ({{ last.get_status_display }}) - + {% endif %} {% endwith %} {% endfor %}