Strains/Strain routes.
This commit is contained in:
parent
2a82dfe3fe
commit
867c20948b
3 changed files with 61 additions and 51 deletions
|
@ -11,7 +11,11 @@ Router.map(function() {
|
|||
this.resource('genera');
|
||||
this.resource('species');
|
||||
this.resource('strains');
|
||||
this.resource('strain', { path: '/strain/:strain_id' }, function() {
|
||||
this.resource('measurements');
|
||||
});
|
||||
this.resource('measurements');
|
||||
this.resource('measurement', { path: '/measurement/:measurement_id' });
|
||||
});
|
||||
|
||||
export default Router;
|
||||
|
|
53
app/templates/strain.hbs
Normal file
53
app/templates/strain.hbs
Normal file
|
@ -0,0 +1,53 @@
|
|||
<div class="grid-1">
|
||||
<div class="span-1">
|
||||
<fieldset class="flakes-information-box">
|
||||
<legend>{{strainName}}</legend>
|
||||
<div class="grid-9">
|
||||
<dl class="span-3">
|
||||
<dt>Species</dt>
|
||||
<dd>{{species.speciesName}}</dd>
|
||||
</dl>
|
||||
<dl class="span-3">
|
||||
<dt>Strain</dt>
|
||||
<dd>{{strainName}}</dd>
|
||||
</dl>
|
||||
<dl class="span-3">
|
||||
<dt>Type</dt>
|
||||
<dd>{{strainType}}</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div class="grid-9">
|
||||
<dl class="span-3">
|
||||
<dt>Accession Banks</dt>
|
||||
<dd>{{accessionBanks}}</dd>
|
||||
</dl>
|
||||
<dl class="span-3">
|
||||
<dt>Genbank EMBL DDB</dt>
|
||||
<dd>{{genbankEmblDdb}}</dd>
|
||||
</dl>
|
||||
<dl class="span-3">
|
||||
<dt>Isolated From</dt>
|
||||
<dd>{{isolatedFrom}}</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<dl>
|
||||
<dt>Etymology</dt>
|
||||
<dd>{{etymology}}</dd>
|
||||
</dl>
|
||||
<div class="grid-9">
|
||||
<dl class="span-3">
|
||||
<dt>Created</dt>
|
||||
<dd>{{createdAt}}</dd>
|
||||
</dl>
|
||||
<dl class="span-3">
|
||||
<dt>Updated</dt>
|
||||
<dd>{{updatedAt}}</dd>
|
||||
</dl>
|
||||
<dl class="span-3">
|
||||
<dt>Deleted</dt>
|
||||
<dd>{{null-time deletedAt}}</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
|
@ -1,53 +1,6 @@
|
|||
<div class="grid-1">
|
||||
<h2>Strains</h2>
|
||||
<ul>
|
||||
{{#each}}
|
||||
<div class="span-1">
|
||||
<fieldset class="read-only-information">
|
||||
<legend>{{strainName}}</legend>
|
||||
<dl>
|
||||
<dt>Id</dt>
|
||||
<dd>{{id}}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>Species</dt>
|
||||
<dd>{{species.speciesName}}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>Strain</dt>
|
||||
<dd>{{strainName}}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>Type</dt>
|
||||
<dd>{{strainType}}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>Etymology</dt>
|
||||
<dd>{{etymology}}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>Accession Banks</dt>
|
||||
<dd>{{accessionBanks}}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>Genbank EMBL DDB</dt>
|
||||
<dd>{{genbankEmblDdb}}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>Isolated From</dt>
|
||||
<dd>{{isolatedFrom}}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>Created</dt>
|
||||
<dd>{{createdAt}}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>Updated</dt>
|
||||
<dd>{{updatedAt}}</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dt>Deleted</dt>
|
||||
<dd>{{deletedAt}}</dd>
|
||||
</dl>
|
||||
</fieldset>
|
||||
</div>
|
||||
<li>{{#link-to 'strain' this}}{{strainName}}{{/link-to}}</li>
|
||||
{{/each}}
|
||||
</div>
|
||||
</ul>
|
||||
|
|
Reference in a new issue