diff --git a/application/templates/base.html b/application/templates/base.html index 1458fd9..9c0a982 100644 --- a/application/templates/base.html +++ b/application/templates/base.html @@ -21,10 +21,13 @@
{% for log in logs[0] %} -

{{log.food_item.name}} - {{log.amount}}

+

{{log.food_item.name}} - {{"{:g}".format(log.amount)}}

{% endfor %}
@@ -41,7 +41,7 @@ Food Nutritional Info
{% for log in logs[1] %} -

{{log.food_item.name}} - {{log.amount}}

+

{{log.food_item.name}} - {{"{:g}".format(log.amount)}}

{% endfor %}
@@ -52,7 +52,7 @@ Food Nutritional Info
{% for log in logs[2] %} -

{{log.food_item.name}} - {{log.amount}}

+

{{log.food_item.name}} - {{"{:g}".format(log.amount)}}

{% endfor %}
@@ -63,7 +63,7 @@ Food Nutritional Info
{% for log in logs[3] %} -

{{log.food_item.name}} - {{log.amount}}

+

{{log.food_item.name}} - {{"{:g}".format(log.amount)}}

{% endfor %}
diff --git a/application/user/templates/food_item.html b/application/user/templates/food_item.html deleted file mode 100644 index 3aa70d3..0000000 --- a/application/user/templates/food_item.html +++ /dev/null @@ -1,44 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -
-
-
{{ item.name }}
- Barcode: {{ item.barcode }} -
-
-
-
Energy per 100g
-
{{ item.energy_100 }} kcal
- -
Protein per 100g
-
{{ "%.1f"|format(item.protein_100) }} g
- -
Carbohydrates per 100g
-
{{ "%.1f"|format(item.carbs_100) }} g
- -
Sugar per 100g
-
- {% if item.sugar_100 is not none %} - {{ "%.1f"|format(item.sugar_100) }} g - {% else %} - N/A - {% endif %} -
- -
fat per 100g
-
{{ "%.1f"|format(item.fat_100) }} g
- -
Saturated fat per 100g
-
- {% if item.saturated_fat_100 is not none %} - {{ "%.1f"|format(item.saturated_fat_100) }} g - {% else %} - N/A - {% endif %} -
-
-
-
- -{% endblock%} \ No newline at end of file diff --git a/application/user/templates/get_item.html b/application/user/templates/get_item.html deleted file mode 100644 index 6fac4cf..0000000 --- a/application/user/templates/get_item.html +++ /dev/null @@ -1,76 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -
-
-

Barcode Scanner

-

Use your camera to scan barcodes

-
- -
- -
- -
- - -
-
- - - -{% endblock %} \ No newline at end of file diff --git a/application/user/templates/log_food.html b/application/user/templates/log_food.html deleted file mode 100644 index 5ec13f2..0000000 --- a/application/user/templates/log_food.html +++ /dev/null @@ -1,20 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -
- {{ form.hidden_tag() }} - -
-
- {{item_id}} -
-
- -
- {{ form.amount.label(class="form-label") }} - {{ form.amount(class="form-control") }} -
- - {{ form.submit(class="btn btn-primary") }} -
-{% endblock%} \ No newline at end of file