<?page title="Změnit heslo" contentType="text/html;charset=UTF-8"?>
<zk>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>

<window id="passwd" border="normal" closable="true" width="350px"
	apply="org.zkoss.bind.BindComposer"
	viewModel="@id('vm') @init('info.bukova.isspst.ui.users.PasswdVM')">
	<caption src="/img/passwd.png" zclass="form-caption" label="Změnit heslo" />

	<grid>
		<columns>
			<column hflex="min"/>
			<column/>
		</columns>
		<rows>
			<row><label value="Staré heslo:"/><textbox type="password" value="@bind(vm.oldPw)"/></row>
			<row><label value="Nové heslo:"/><textbox type="password" value="@bind(vm.newPw)"/></row>
			<row><label value="Nové heslo znovu:"/><textbox type="password" value="@bind(vm.retPw)"/></row>
		</rows>
	</grid>
	<button image="/img/save.png" label="Uložit" onClick="@command('save', window=passwd)" sclass="nicebutton" /><button image="~./zul/img/misc/drag-disallow.png" label="Zrušit" onClick="passwd.detach()" sclass="nicebutton"/>
</window>
</zk>