Add basic average cadence calculation to treatments
This commit is contained in:
parent
3a1db11e47
commit
d3b9d34bd2
4 changed files with 172 additions and 21 deletions
|
|
@ -251,6 +251,7 @@
|
|||
<div class="card mb-4">
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<p>Estimated Treatment Cadence: {{.TreatmentCadence|timeInterval}}</p>
|
||||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
|
|
@ -265,7 +266,7 @@
|
|||
<tr>
|
||||
<td>{{.Date|timeSince}}</td>
|
||||
<td>{{.Product}}</td>
|
||||
<td class="time-delta-neutral">On time</td>
|
||||
<td class="time-delta-neutral">{{.CadenceDelta|timeDelta}}</td>
|
||||
<td>{{.Notes}}</td>
|
||||
</tr>
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue