X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/0b1bf765d6185ef20235e702b2969d951bca4de5..ad422879d55a62e02c71024531aa4a2277dedaf3:/src/isbn/templates/isbn/list.html diff --git a/src/isbn/templates/isbn/list.html b/src/isbn/templates/isbn/list.html new file mode 100644 index 00000000..e9f00121 --- /dev/null +++ b/src/isbn/templates/isbn/list.html @@ -0,0 +1,75 @@ +{% extends "documents/base.html" %} +{% load pagination_tags %} +{% load l10n %} + + +{% block content %} + {% localize off %} + + {% for pool in pools %} + + + + + + {% endfor %} +
+ {{ pool.get_purpose_display }} + + ({{ pool }}) + +
+ {% with p=pool.fill_percentage %} +
{% if p > 30 %}{{ pool.entries }} / {{ pool.size }}{% endif %}
+ {% if p <= 30 %}{{ pool.entries }} / {{ pool.size }}{% endif %} + {% endwith %} +
+
+ {% endlocalize %} + + {% autopaginate list 100 %} + + + + + + + + + + + {% for isbn in list %} + + + + + + + + + + {% endfor %} + +
ISBNKsiążkaFormaCzas
+ {{ isbn.get_code }} + + {{ isbn.book|default_if_none:'—' }} + + {{ isbn.form|default_if_none:'—' }} + + {{ isbn.datestamp|default_if_none:'—' }} + + {% if isbn.wl_data %} + WL + {% endif %} + + {% if isbn.bn_data %} + BN + {% endif %} + + {% if isbn.notes %} + not. + {% endif %} +
+ {% paginate %} +{% endblock %}