{{ action-button isPrimary=true label='New Collection' onClick=(action createCollection) }}
{{#ccdb-filter filters=filters options=options }}
{{#power-select-multiple options=options.projects selected=filters.project onchange=(action (mut filters.project)) searchField='name' as |project| }} {{project.name}} {{/power-select-multiple}}
{{#power-select-multiple options=options.regions selected=filters.region onchange=(action (mut filters.region)) searchField='name' as |region| }} {{region.name}} {{/power-select-multiple}}
{{#power-select-multiple options=options.sites selected=filters.site onchange=(action (mut filters.site)) searchField='name' as |site| }} {{site.name}} {{/power-select-multiple}}
{{#power-select-multiple options=options.studyLocations selected=filters.study_location onchange=(action (mut filters.study_location)) searchField='code' as |studyLocation| }} {{studyLocation.code}} {{/power-select-multiple}}
{{#power-select-multiple options=options.collectionMethods selected=filters.collection_method onchange=(action (mut filters.collection_method)) searchField='name' as |collectionMethod| }} {{collectionMethod.name}} {{/power-select-multiple}}
{{input type="text" class="form-control" value=filters.number_of_traps}}
{{#power-select-multiple options=options.adfgPermits selected=filters.adfg_permit onchange=(action (mut filters.adfg_permit)) searchField='name' as |adfgPermit| }} {{adfgPermit.name}} {{/power-select-multiple}}
{{ pikaday-input onSelection=(action (mut filters.collection_start_date)) value=filters.collection_start_date useUTC=true format='YYYY-MM-DD' class='form-control' }}
{{ pikaday-input onSelection=(action (mut filters.collection_end_date)) value=filters.collection_end_date useUTC=true format='YYYY-MM-DD' class='form-control' }}
{{ action-button isSuccess=true label='Search' onClick=(action changeFilter filters) }} {{ action-button isWarning=true label='Reset' onClick=(action resetFilter) }}
{{/ccdb-filter}} {{ ccdb-table model=model columns=columns changePage=(action changePage) onRowClick=(action onRowClick) }}