Strain {{#if isEditing}} {{input value=strain.strainName}} {{else}} {{strain.strainName}} {{/if}} {{display-errors a=strain.errors.strainName}} {{! ROW 1 }}
Species
{{#if isEditing}} {{ view "select" content=species optionValuePath="content.id" optionLabelPath="content.speciesName" selection=strain.species }} {{else}} {{#link-to 'species.show' strain.species}} {{strain.species.speciesName}} {{/link-to}} {{/if}}
Type Strain?
{{#if isEditing}} {{input type="checkbox" checked=strain.typeStrain}} {{/if}} {{if strain.typeStrain 'Yes' 'No'}} {{display-errors a=strain.errors.typeStrain}}
{{! ROW 2 }}
Accession Numbers
{{#if isEditing}} {{input value=strain.accessionNumbers}} {{else}} {{strain.accessionNumbers}} {{/if}} {{display-errors a=strain.errors.accessionNumbers}}
Genbank
{{#if isEditing}} {{input value=strain.genbank}} {{else}} {{strain.genbank}} {{/if}} {{display-errors a=strain.errors.genbank}}
{{! ROW 3 }}
Isolated From
{{#if isEditing}} {{textarea value=strain.isolatedFrom cols="70" rows="3"}} {{else}} {{strain.isolatedFrom}} {{/if}} {{display-errors a=strain.errors.isolatedFrom}}
{{! ROW 4 }}
Notes
{{#if isEditing}} {{textarea value=strain.notes cols="70" rows="3"}} {{else}} {{strain.notes}} {{/if}} {{display-errors a=strain.errors.notes}}
{{! ROW 5 }}
Record Created
{{null-time strain.createdAt 'LL'}}
Record Updated
{{null-time strain.updatedAt 'LL'}}
Record Deleted
{{null-time strain.deletedAt 'LL'}}
{{! ROW 6 }} {{#if (can "edit strain" strain)}}
{{! Does nothing ATM }} {{#if isEditing}}Cancel{{else}}Edit{{/if}} {{#if isEditing}} Save {{/if}}
{{/if}}