diff --git a/shimatta_kenkyusho/templates/paginator.html b/shimatta_kenkyusho/templates/paginator.html new file mode 100644 index 0000000..34ad0c3 --- /dev/null +++ b/shimatta_kenkyusho/templates/paginator.html @@ -0,0 +1,25 @@ +{% if paginator.has_other_pages %} + +{% endif %} \ No newline at end of file diff --git a/shimatta_kenkyusho/templates/parts/stocks-detail.html b/shimatta_kenkyusho/templates/parts/stocks-detail.html index 5f55aab..3c32f97 100644 --- a/shimatta_kenkyusho/templates/parts/stocks-detail.html +++ b/shimatta_kenkyusho/templates/parts/stocks-detail.html @@ -35,24 +35,7 @@ {% endfor %} - + {% include 'paginator.html' with paginator=storages get_param='storage_page' aria_label='Storage Page Navigation' %} diff --git a/shimatta_kenkyusho/templates/parts/stocks.html b/shimatta_kenkyusho/templates/parts/stocks.html index dbb9f3d..1b25e63 100644 --- a/shimatta_kenkyusho/templates/parts/stocks.html +++ b/shimatta_kenkyusho/templates/parts/stocks.html @@ -31,58 +31,24 @@ {% endfor %} - + {% include 'paginator.html' with paginator=low_stocks get_param='low_stock_page' aria_label='Low Stock Page Navigation' %}
-

Storages

-
- {% for storage in storages %} - -
  • -
    -
    {{storage.name}}
    - Responsible: {{ storage.responsible }} -
    - {{storage.get_total_stock_amount}} -
  • -
    - {% endfor %} -
    - +

    Storages

    +
    + {% for storage in storages %} + +
  • +
    +
    {{storage.name}}
    + Responsible: {{ storage.responsible }} +
    + {{storage.get_total_stock_amount}} +
  • +
    + {% endfor %} +
    + {% include 'paginator.html' with paginator=storages get_param='storage_page' aria_label='Storage Page Navigation'%}