Hide measurements on new strain

Fixes #65
This commit is contained in:
Matthew Dillon 2015-11-20 19:00:07 -07:00
parent edc95ecb3a
commit f93c4af029

View file

@ -53,18 +53,24 @@
</div> </div>
</div> </div>
</fieldset> </fieldset>
<div> {{#if isNew}}
{{ <div>
protected/strains/measurements-table Please save before adding measurements
strain=strain </div>
add-characteristic=(action "addCharacteristic") {{else}}
allCharacteristics=allCharacteristics <div>
save-measurement=(action "saveMeasurement") {{
delete-measurement=(action "deleteMeasurement") protected/strains/measurements-table
canEdit=strain.canEdit strain=strain
canAdd=metaData.canAdd add-characteristic=(action "addCharacteristic")
}} allCharacteristics=allCharacteristics
</div> save-measurement=(action "saveMeasurement")
delete-measurement=(action "deleteMeasurement")
canEdit=strain.canEdit
canAdd=metaData.canAdd
}}
</div>
{{/if}}
<br> <br>
<a class="button-red smaller" {{action 'cancel'}}> <a class="button-red smaller" {{action 'cancel'}}>
Cancel Cancel