Rough in species

This commit is contained in:
Matthew Dillon 2015-06-02 14:27:23 -08:00
parent dfc62cd1ac
commit afcf24a8d8
22 changed files with 399 additions and 2 deletions

View file

@ -0,0 +1,30 @@
<h2>{{genus-name}} Species</h2>
<h3>Total species: {{controller.length}}</h3>
{{#if (can "add species")}}
{{! Does nothing ATM }}
{{#link-to 'species.new' class="button-gray smaller"}}
Add Species
{{/link-to}}
{{/if}}
<table class="flakes-table">
<thead>
<tr>
<th {{action "setSortBy" "speciesName"}}>Name</th>
<th {{action "setSortBy" "totalStrains"}}>Strains</th>
</tr>
</thead>
<tbody>
{{#each species in controller}}
<tr>
<td>
{{#link-to 'species.show' species}}
{{species.speciesName}}
{{/link-to}}
</td>
<td>{{species.totalStrains}}</td>
</tr>
{{/each}}
</tbody>
</table>

View file

@ -0,0 +1 @@
{{species/species-details species=model isEditing=true isNew=true action="cancelSpecies"}}

View file

@ -0,0 +1 @@
{{species/species-details species=model}}