Species {{#if isEditing}} {{input value=species.speciesName}} {{else}} {{species.speciesName}} {{/if}} {{display-errors a=species.errors.speciesName}} {{! ROW 1 }}
Strains
{{#each species.strains as |strain index|}} {{if index ","}} {{#link-to 'strains.show' strain.id}} {{strain.strainName}} {{/link-to}} {{/each}} {{#if (can "edit species" species)}} {{#if species.isNew}} PENDING SAVE {{else}}
{{#link-to 'strains.new' class="button-gray smaller"}} Add Strain {{/link-to}} {{/if}} {{/if}}
Type Species?
{{#if isEditing}} {{input type="checkbox" checked=species.typeSpecies}} {{/if}} {{if species.typeSpecies 'Yes' 'No'}} {{display-errors a=species.errors.typeSpecies}}
{{! ROW 2 }}
Etymology
{{#if isEditing}} {{textarea value=species.etymology cols="70" rows="3"}} {{else}} {{species.etymology}} {{/if}} {{display-errors a=species.errors.etymology}}
{{! ROW 3 }}
Record Created
{{null-time species.createdAt 'LL'}}
Record Updated
{{null-time species.updatedAt 'LL'}}
Record Deleted
{{null-time species.deletedAt 'LL'}}
{{! ROW 4 }} {{#if (can "edit species" species)}}
{{! Does nothing ATM }} {{#if isEditing}}Cancel{{else}}Edit{{/if}} {{#if isEditing}} Save {{/if}}
{{/if}}