Self hosted FLOSS fitness/workout, nutrition and weight tracker
Split the table with the nutritional data in 2
Roland Geider465f01a36531
diff --git a/nutrition/templates/view_nutrition_plan.html b/nutrition/templates/view_nutrition_plan.htmlindex 0feac30be..9c7f9f6e9 100644--- a/nutrition/templates/view_nutrition_plan.html+++ b/nutrition/templates/view_nutrition_plan.html@@ -148,7 +148,14 @@ $(document).ready(function() {{% block sidebar %}<h3>{% trans "Nutritional data" %}</h3>-<table>+<table id="nutritional-data-macronutrients">+ <thead>+ <tr>+ <th colspan="2">+ {% trans "Macronutrients" %}+ </th>+ </tr>+ </thead><tbody><tr><td>{% trans "Energy" %}</td>@@ -166,6 +173,18 @@ $(document).ready(function() {<td>{% trans "Fat" %}</td><td>{{nutritional_data.fat}} g</td></tr>+ </tbody>+</table>++<table id="nutritional-data-others">+ <thead>+ <tr>+ <th colspan="2">+ {% trans "Others" %}+ </th>+ </tr>+ </thead>+ <tbody><tr><td>{% trans "Fibres" %}</td><td>{{nutritional_data.fibres}} g</td>@@ -178,6 +197,7 @@ $(document).ready(function() {</table>+<h3>{% trans "Options" %}</h3><p><a href="{% url nutrition.views.edit_plan plan.id %}"