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/select-form/template.hbs
2015-11-13 15:13:46 -07:00

53 lines
1.6 KiB
Handlebars

<div class="span-1">
<fieldset>
<form {{action 'search' on='submit'}}>
<ul>
<li>
<label>Strains</label>
{{
x-select
options=strains
nameAttr='fullNameMU'
multiple=true
selected=selectedStrains
update=(action "updateStrainSelection")
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>
{{
x-select
options=characteristics
nameAttr='characteristicName'
multiple=true
selected=selectedCharacteristics
update=(action "updateCharacteristicsSelection")
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>