core-jgi/org.adempiere.ui.zk/calendar_mini.zul

30 lines
1.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<?component name="divarrow" macro-uri="divarrow.zul"?>
<zk>
<zscript><![CDATA[
var calendarIcon = org.adempiere.webui.theme.ThemeManager.getThemeResource("images/Calendar16.png");
import org.compiere.util.Msg;
import org.compiere.util.Env;
import org.compiere.util.Util;
var today = Msg.getMsg(Env.getCtx(),"Today");
var refresh = Util.cleanAmp(Msg.getMsg(Env.getCtx(),"Refresh"));
]]></zscript>
<style src="calendar.css"/>
<calendars firstDayOfWeek="Monday" model="${cm}" mold="month" id="cal">
<toolbar sclass="calendar-toolbar">
<div class="float-left">
<hbox>
<divarrow id="divArrowLeft" type="arrow-left"/>
<divarrow id="divArrowRight" type="arrow-right"/>
<div>
<button id="btnCurrentDate" label="${today}" sclass="btn-small"/>
<separator orient="vertical" spacing="2px"/>
<label id="lblDate"/>
<toolbarbutton id="btnRefresh" label="${refresh}" class="refresh"/>
<toolbarbutton id="btnCal" image="${calendarIcon}"/>
</div>
</hbox>
</div>
</toolbar>
</calendars>
</zk>