This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
hymenobacterdotinfo/app/pods/protected/strains/show/measurements-table-row/template.hbs
2015-09-16 09:12:13 -07:00

37 lines
676 B
Handlebars

{{#if isEditing}}
<td>
{{input value='Foo'}}
</td>
<td>
{{input value='Bar'}}
</td>
<td>
{{input value='Baz'}}
</td>
{{#if canEdit}}
<td>
<button class="button-gray smaller" {{action 'save'}}>
Save
</button>
</td>
{{/if}}
{{else}}
<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>
{{#if canEdit}}
<td>
<button class="button-gray smaller" {{action 'edit'}}>
Edit
</button>
</td>
{{/if}}
{{/if}}