<?page title="req toolbar" contentType="text/html;charset=UTF-8"?>
<zk>
<toolbar>
	<toolbarbutton image="/img/edit.png" tooltiptext="${labels.ToolbarRecEdit}" id="btnEdit" onClick="@command('edit')" disabled="@load(empty vm.dataBean ? 'true' : 'false')"/>
	<toolbarbutton image="/img/delete.png" tooltiptext="${labels.ToolbarRecDelete}" id="btnDelete" onClick="@command('delete')" disabled="@load(not vm.ableToDelete)" />
	<toolbarbutton image="/img/funnel.png" tooltiptext="${labels.ToolbarRecFilter}" id="btnFilter" onClick="@command('filter')" />
	<toolbarbutton image="/img/print.png" tooltiptext="${labels.ToolbarPrint}" id="btnPrint" onClick="@command('onPrint')" />
	<label value="${labels.SeasonsSeason}" visible="@load(vm.seasonFilter)"/>
	<combobox model="@load(vm.seasons)"
			  selectedItem="@bind(vm.selSeason)"
			  onChange="@command('filterSeason')"
			  visible="@load(vm.seasonFilter)">
		<template name="model">
			<comboitem label="@load(each.description)" style="@load(each.active ? 'font-weight: bold' : '')"/>
		</template>
	</combobox>
</toolbar>
</zk>