Add measurements to strains page

This commit is contained in:
Matthew Dillon 2015-09-09 11:40:32 -07:00
parent 137ba20bd9
commit 3b3f8cc691
5 changed files with 72 additions and 1 deletions

View file

@ -0,0 +1,30 @@
{{#if measurementsPresent}}
<table class="flakes-table">
<thead>
<tr>
<th>Characteristic</th>
<th>Value</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
{{#each measurementsTable as |row|}}
<tr>
<td>
{{#link-to 'protected.characteristics.show' row.characteristic.id}}
{{{row.characteristic.characteristicName}}}
{{/link-to}}
</td>
<td>
{{row.measurement.value}}
</td>
<td>
{{row.measurement.notes}}
</td>
</tr>
{{/each}}
</tbody>
</table>
{{else}}
No measurements on record.
{{/if}}