diff --git a/app/pods/components/display-errors/template.hbs b/app/pods/components/display-errors/template.hbs index 8d95c0d..6a74209 100644 --- a/app/pods/components/display-errors/template.hbs +++ b/app/pods/components/display-errors/template.hbs @@ -1,3 +1,3 @@ -{{#each error in a}} +{{#each a as |error|}}
{{error.message}}
{{/each}} diff --git a/app/pods/components/sortable-table/template.hbs b/app/pods/components/sortable-table/template.hbs index 0874743..1e48be3 100644 --- a/app/pods/components/sortable-table/template.hbs +++ b/app/pods/components/sortable-table/template.hbs @@ -1,13 +1,13 @@ - {{#each a in tableAttrs}} + {{#each tableAttrs as |a|}} {{sortable-table-header title=a.name sortProperty=a.attr action="sortBy"}} {{/each}} - {{#each item in arrangedContent}} + {{#each arrangedContent as |item|}} {{component row data=item}} {{/each}} diff --git a/app/pods/components/strain-details/template.hbs b/app/pods/components/strain-details/template.hbs index 9d6e9ca..4f98ea7 100644 --- a/app/pods/components/strain-details/template.hbs +++ b/app/pods/components/strain-details/template.hbs @@ -11,17 +11,16 @@ {{! ROW 1 }} -
+
Species
{{#if isEditing}} {{ - view "select" + select-2 content=species - optionValuePath="content.id" - optionLabelPath="content.speciesName" - selection=strain.species + optionLabelPath="speciesName" + value=strain.species }} {{else}} {{#link-to 'species.show' strain.species}} diff --git a/app/pods/species/index/template.hbs b/app/pods/species/index/template.hbs index b73fee7..13fa4b7 100644 --- a/app/pods/species/index/template.hbs +++ b/app/pods/species/index/template.hbs @@ -1,5 +1,5 @@

{{genus-name}} Species

-

Total species: {{controller.length}}

+

Total species: {{model.length}}

{{add-button label="Add Species" link="species.new"}} diff --git a/app/pods/users/template.hbs b/app/pods/users/template.hbs index 005836e..f3239cb 100644 --- a/app/pods/users/template.hbs +++ b/app/pods/users/template.hbs @@ -1,3 +1,3 @@ -{{#each user in model}} +{{#each model as |user|}} {{user.email}}
{{/each}}