1
0

List binding goal targets

This commit is contained in:
cryptogopher
2021-02-21 19:41:24 +01:00
parent 7f87b3bc84
commit 09e27eb754
18 changed files with 26 additions and 20 deletions

View File

@@ -1 +1 @@
<%= title t(:body_trackers_title), t(".heading") %>
<%= title t(".heading") %>

View File

@@ -9,7 +9,7 @@
<div id="new-food">
</div>
<%= title t(:body_trackers_title), t(".heading") %>
<%= title t(".heading") %>
<div id='foods'>
<%= render partial: 'foods/index' %>
</div>

View File

@@ -9,7 +9,7 @@
<div id="new-food">
</div>
<%= title t(:body_trackers_title), t(".heading") %>
<%= title t(".heading") %>
<div id='nutrients'>
<%= render partial: 'foods/nutrients' %>
</div>

View File

@@ -12,7 +12,7 @@
<tr id="goal-<%= g.id %>" class="primary goal">
<td class="name unwrappable">
<div style="float:left;">
<%= checked_image g.is_binding %><%= link_to g.name, g %>
<%= checked_image g.is_binding %><%= link_to g.name, targets_goal_path(g) %>
</div>
<div style="float:right;">
<%# TODO: display # of active targets/targeted quantities %>

View File

@@ -7,7 +7,7 @@
<div id="new-goal">
</div>
<%= title t(:body_trackers_title), t(".heading") %>
<%= title t(".heading") %>
<div id='goals'>
<%= render partial: 'goals/index' %>
</div>

View File

@@ -5,7 +5,7 @@
<div id="new-meal">
</div>
<%= title t(:body_trackers_title), t(".heading") %>
<%= title t(".heading") %>
<div id='meals'>
<%= render partial: 'meals/index' %>
</div>

View File

@@ -5,7 +5,7 @@
<div id="new-measurement">
</div>
<%= title t(:body_trackers_title), t(".heading") %>
<%= title t(".heading") %>
<div id='measurements'>
<%= render partial: 'measurements/index' %>
</div>

View File

@@ -5,8 +5,7 @@
<div id="new-measurement">
</div>
<%= title t(:body_trackers_title),
[t("measurements.index.heading"), project_measurements_path(@project)],
<%= title [t("measurements.index.heading"), project_measurements_path(@project)],
@routine.name %>
<div id='readouts'>
<%= render partial: 'measurements/readouts' %>

View File

@@ -8,7 +8,7 @@
<div id="new-quantity">
</div>
<%= title t(:body_trackers_title), t(".heading") %>
<%= title t(".heading") %>
<div id='quantities'>
<%= render partial: 'quantities/index' %>
</div>

View File

@@ -19,7 +19,7 @@
<hr>
</div>
<%= title t(:body_trackers_title), t(".heading") %>
<%= title t(".heading") %>
<% if @sources.any? { |s| s.persisted? } %>
<table class="list">
<thead>

View File

@@ -5,7 +5,7 @@
<div id="new-target">
</div>
<%= title t(:body_trackers_title), t(".heading") %>
<%= title [t("goals.index.heading"), project_goals_path(@project)], @goal.name %>
<div id='targets'>
<%= render partial: 'targets/index' %>
</div>

View File

@@ -19,7 +19,7 @@
<hr>
</div>
<%= title t(:body_trackers_title), t(".heading") %>
<%= title t(".heading") %>
<% if @units.any? { |u| u.persisted? } %>
<table class="list">
<thead>