Measurement row component

This commit is contained in:
Matthew Dillon 2015-03-19 10:02:42 -08:00
parent ced405cd03
commit c68f0a0fee
5 changed files with 55 additions and 17 deletions

View file

@ -0,0 +1,4 @@
<td>{{measurement.characteristic}}</td>
<td>{{{measurement.computedValue}}}</td>
<td>{{measurement.notes}}</td>
<td>{{measurement.testMethod}}</td>

View file

@ -2,27 +2,14 @@
<thead>
<tr>
<th>Characteristic</th>
<th>Text Meas. Type</th>
<th>Text Value</th>
<th>Num. Value</th>
<th>Confidence Int.</th>
<th>Unit</th>
<th>Measurement</th>
<th>Notes</th>
<th>Test Method</th>
</tr>
</thead>
<tbody>
{{#each measurement in model}}
<tr>
<td>{{measurement.characteristic}}</td>
<td>{{measurement.textMeasurementType}}</td>
<td>{{measurement.txtValue}}</td>
<td>{{measurement.numValue}}</td>
<td>{{measurement.confidenceInterval}}</td>
<td>{{measurement.unitType}}</td>
<td>{{measurement.notes}}</td>
<td>{{measurement.testMethod}}</td>
</tr>
{{#each model as |measurement|}}
{{measurements/measurement-row measurement=measurement}}
{{/each}}
</tbody>
</table>