ENH: Revised collection details (#54)

This commit is contained in:
Matthew Ryan Dillon 2017-12-01 11:55:35 -07:00 committed by GitHub
parent 4903a204e4
commit 60eadf517f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 59 additions and 8 deletions

View file

@ -5,9 +5,54 @@
onClick=(action editCollection)
}}
{{#ccdb-table model=model columns=columns as |c|}}
{{#c.grid as |g|}}
{{g.head}}
{{g.body}}
{{/c.grid}}
{{/ccdb-table}}
<h3>Main Detail</h3>
<div class="row">
<div class="col-md-12">
{{#ccdb-table model=model columns=mainColumns as |c|}}
{{#c.grid as |g|}}
{{g.head}}
{{g.body}}
{{/c.grid}}
{{/ccdb-table}}
</div>
</div>
<hr>
<h3>Species/Counts</h3>
<div class="row">
<div class="col-md-12">
{{#ccdb-table model=model.[0].collectionSpecies columns=collectionSpeciesColumns as |c|}}
{{#c.grid as |g|}}
{{g.head}}
{{g.body}}
{{/c.grid}}
{{/ccdb-table}}
</div>
</div>
<hr>
<h3>Notes</h3>
<div class="row">
<div class="col-md-12">
<ul>
<li>PLACEHOLDER</li>
<li>PLACEHOLDER</li>
<li>PLACEHOLDER</li>
</ul>
</div>
</div>
<hr>
<h3>Attachments</h3>
<div class="row">
<div class="col-md-12">
<ul>
{{#each model.[0].datasheets as |d|}}
<li><a href="{{ d.datasheet }}">{{ d.datasheet }}</a></li>
{{/each}}
</ul>
</div>
</div>