diff --git a/templates/adjustment-new-stock-form.html b/templates/adjustment-new-stock-form.html index 4510840..cc52379 100644 --- a/templates/adjustment-new-stock-form.html +++ b/templates/adjustment-new-stock-form.html @@ -1,28 +1,30 @@
-
- - + + {% if !amount_error.is_empty() -%} - {{ amount_error }} + {{ amount_error }} {% endif -%}
-
- - + + {% if !price_error.is_empty() -%} - {{ price_error }} + {{ price_error }} {% endif -%}
- +
+ +
diff --git a/templates/adjustment-sale-form.html b/templates/adjustment-sale-form.html index 804a9a1..6e239f3 100644 --- a/templates/adjustment-sale-form.html +++ b/templates/adjustment-sale-form.html @@ -1,16 +1,18 @@
-
- - + + {% if !amount_error.is_empty() -%} - {{ amount_error }} + {{ amount_error }} {% endif -%}
- +
+ +
diff --git a/templates/adjustments-table-fragment.html b/templates/adjustments-table-fragment.html index 4387b66..cd6352c 100644 --- a/templates/adjustments-table-fragment.html +++ b/templates/adjustments-table-fragment.html @@ -1,5 +1,5 @@ - +
diff --git a/templates/catalog.html b/templates/catalog.html index dd5d849..96db39e 100644 --- a/templates/catalog.html +++ b/templates/catalog.html @@ -4,21 +4,24 @@ {% block content %} -

- -

+
+

+ +

-
- {% include "catalog_item_fragment.html" %} -
+
+ {% include "catalog_item_fragment.html" %} +
+
{% endblock %} \ No newline at end of file diff --git a/templates/catalog_item_fragment.html b/templates/catalog_item_fragment.html index 3e9cfe1..f67e95d 100644 --- a/templates/catalog_item_fragment.html +++ b/templates/catalog_item_fragment.html @@ -1,8 +1,11 @@ - -{% for item in items %} -
-
-
{{ item.name }}
-
-
-{% endfor %} \ No newline at end of file +
+ +
diff --git a/templates/history.html b/templates/history.html index ed89ce7..f33d1c9 100644 --- a/templates/history.html +++ b/templates/history.html @@ -6,34 +6,33 @@

Audit Log (Coming soon)

- -
-
- - -
-
- - - Timezone {{ time_zone }} -
-
+
+ +
+
+ + +
+
+ + + Timezone {{ time_zone }} +
+
+ + +
+
+ + + Timezone {{ time_zone }} +
+
+ +
-
-
- - -
-
- - - Timezone {{ time_zone }} -
-
- - -
+
{% include "history_item_fragment.html" %} -
+ {% endblock %} \ No newline at end of file diff --git a/templates/history_item_fragment.html b/templates/history_item_fragment.html index 0eded54..655ab33 100644 --- a/templates/history_item_fragment.html +++ b/templates/history_item_fragment.html @@ -1,18 +1,22 @@ -{% for item in items %} -
-
-

{{ item.create_date }}

-

{{ item.item_name }}

-

{{ item.user_name }}

-

- {% match item.item_type %} - {% when HistoryItemEntry::PositiveAdjustment with (entry) %} - {{ entry.amount }} @ {{ entry.unit_value }} - {% when HistoryItemEntry::NegativeAdjustment with (entry) %} - {{ entry.amount }} {{ entry.reason }} - {% endmatch %} -

-
-
-{% endfor %} \ No newline at end of file +
+ +
\ No newline at end of file diff --git a/templates/home.html b/templates/home.html index c9c18b9..4438ccb 100644 --- a/templates/home.html +++ b/templates/home.html @@ -4,20 +4,24 @@ {% block content %} -

- -

+
+

+ +

-
- {% include "home_search_item_fragment.html" %} +
+ {% include "home_search_item_fragment.html" %} +
{% endblock %} \ No newline at end of file diff --git a/templates/home_search_item_fragment.html b/templates/home_search_item_fragment.html index 6a5b883..2db42c7 100644 --- a/templates/home_search_item_fragment.html +++ b/templates/home_search_item_fragment.html @@ -1,9 +1,16 @@ -{% for item in items %} -
-
-
{{ item.name }}
-
Count: 0
-
Reorder Point: {{ item.reorder_point }}
-
-
-{% endfor %} + +{% if items.len() > 0 %} +
+ +
+{% endif %} diff --git a/templates/item-stats-fragment.html b/templates/item-stats-fragment.html index f11f778..547d65c 100644 --- a/templates/item-stats-fragment.html +++ b/templates/item-stats-fragment.html @@ -1,6 +1,6 @@ -
-
Amount in stock: {{amount}} {{unit_abbreviation}}
-
Total Value: {{value}}
+
+
Amount in stock: {{amount}} {{unit_abbreviation}}
+
Total Value: {{value}}
diff --git a/templates/item.html b/templates/item.html index 18ef5fa..57792a1 100644 --- a/templates/item.html +++ b/templates/item.html @@ -4,8 +4,9 @@ {% block content %} -

{{item.name}} {% if !item.active %} Inactive {% endif %}

-
+

{{item.name}} {% if !item.active %}Inactive {% endif %}

+ +
@@ -15,24 +16,21 @@
{% if item.active %} -
-
-
-

Sale

-
+
+
+
+
+
-
- -
-

New Stock

-
+
+
+
-
-
+
{% endif %} -
+
diff --git a/templates/main.html b/templates/main.html index dafc015..5350f0a 100644 --- a/templates/main.html +++ b/templates/main.html @@ -1,29 +1,41 @@ - + - + + + + + {% block title %}Title{% endblock %} -
-
Date