{{#crud-form changeset=changeset onSave=(action onSave) onCancel=(action onCancel) as |f| }}
{{#f.content class='form-horizontal'}}
{{#power-select options=projectOptions selected=changeset.project onchange=(action (mut changeset.project)) searchField='name' as |project| }} {{project.name}} {{/power-select}}
{{#power-select options=studyLocationOptions selected=changeset.studyLocation onchange=(action (mut changeset.studyLocation)) searchField='name' as |studyLocation| }} {{studyLocation.name}} {{/power-select}}
{{#power-select options=collectionTypeOptions selected=changeset.collectionType onchange=(action (mut changeset.collectionType)) searchField='name' as |collectionType| }} {{collectionType.name}} {{/power-select}}
{{#power-select options=collectionMethodOptions selected=changeset.collectionMethod onchange=(action (mut changeset.collectionMethod)) searchField='name' as |collectionMethod| }} {{collectionMethod.name}} {{/power-select}}
{{input value=changeset.numberOfTraps type='number' class='form-control'}}
{{input value=changeset.collectionStartDate type='date' class='form-control'}}
{{input value=changeset.collectionStartTime type='time' class='form-control'}}
{{input value=changeset.collectionEndDate type='date' class='form-control'}}
{{input value=changeset.collectionEndTime type='time' class='form-control'}}
{{/f.content}} {{f.save}} {{f.cancel}}
{{/crud-form}}