Misc cleanup

This commit is contained in:
Matthew Dillon 2015-06-18 14:38:12 -08:00
parent 0710fdf680
commit 19359c341d
5 changed files with 9 additions and 10 deletions

View file

@ -1,3 +1,3 @@
{{#each error in a}}
{{#each a as |error|}}
<div class="flakes-message error">{{error.message}}</div>
{{/each}}

View file

@ -1,13 +1,13 @@
<thead>
<tr>
{{#each a in tableAttrs}}
{{#each tableAttrs as |a|}}
{{sortable-table-header title=a.name sortProperty=a.attr action="sortBy"}}
{{/each}}
</tr>
</thead>
<tbody>
{{#each item in arrangedContent}}
{{#each arrangedContent as |item|}}
{{component row data=item}}
{{/each}}
</tbody>

View file

@ -11,17 +11,16 @@
</legend>
{{! ROW 1 }}
<div class="grid-4">
<div class="grid-4 gutter-50">
<dl class="span-2">
<dt>Species</dt>
<dd>
{{#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}}

View file

@ -1,5 +1,5 @@
<h2>{{genus-name}} Species</h2>
<h3>Total species: {{controller.length}}</h3>
<h3>Total species: {{model.length}}</h3>
{{add-button label="Add Species" link="species.new"}}

View file

@ -1,3 +1,3 @@
{{#each user in model}}
{{#each model as |user|}}
{{user.email}}<br>
{{/each}}