This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
hymenobacterdotinfo/app/pods/protected/compare/template.hbs
Matthew Dillon 24c870353f 'Select All' in compare.
Fixes #8
2015-09-03 10:50:01 -07:00

57 lines
1.6 KiB
Handlebars

<h2>{{genus-name}} - Compare Strains</h2>
<div class="span-1">
<fieldset>
<form {{action 'search' on='submit'}}>
<ul>
<li>
<label>Strains</label>
{{
select-2
multiple=true
content=strains
value=selectedStrains
optionValuePath="id"
optionLabelPath="fullNameMU"
placeholder="Select one or more strains"
}}
</li>
<li>
<button class="action button-green smaller right" {{action 'selectAllStrains'}}>
Select All
</button>
<button class="action button-red smaller right" {{action 'deselectAllStrains'}}>
Deselect All
</button>
</li>
<li>
<label>Characteristics</label>
{{
select-2
multiple=true
content=characteristics
value=selectedCharacteristics
optionValuePath="id"
optionLabelPath="characteristicName"
placeholder="Select one or more characteristics"
}}
</li>
<li>
<button class="action button-green smaller right" {{action 'selectAllCharacteristics'}}>
Select All
</button>
<button class="action button-red smaller right" {{action 'deselectAllCharacteristics'}}>
Deselect All
</button>
</li>
<li>
<button type="submit" class="action button-gray smaller right">
Search
</button>
</li>
</ul>
</form>
</fieldset>
</div>
{{outlet}}