<?xml version="1.0" encoding="UTF-8"?>
<?page contentType="text/html;charset=UTF-8"?>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarImpresionLayoutConfig"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>

<zk xmlns="http://www.zkoss.org/2005/zul">
    <window id="winEditarImpresionLayoutConfig" border="normal"
            apply="${editarImpresionLayoutConfigController}"
            height="400px" width="1000px" sizable="true" contentStyle="overflow:auto"
            title="${c:l('editarImpresionLayoutConfigController.window.title')}">
        <toolbar>
            <hbox spacing="5px" style="padding:1px" align="right">
                <button id="btnApagar" height="20"
                        image="/gui/img/remove.png" width="35px"
                        tooltiptext="${c:l('editarImpresionLayoutConfigController.btnApagar.tooltiptext')}"/>
                <button id="btnSalvar" height="20"
                        image="/gui/img/save.png" width="35px"
                        tooltiptext="${c:l('editarImpresionLayoutConfigController.btnSalvar.tooltiptext')}"/>
                <button id="btnFechar" height="20"
                        image="/gui/img/exit.png" width="35px"
                        onClick="winEditarImpresionLayoutConfig.detach()"
                        tooltiptext="${c:l('editarImpresionLayoutConfigController.btnFechar.tooltiptext')}"/>
            </hbox>
        </toolbar>

        <grid fixedLayout="true">
            <columns>
                <column width="10%" />
                <column width="80%" />
            </columns>
            <rows>
                <row>
                    <label id="lbNome" value="${c:l('busquedaImpresionLayoutConfigController.txtNombre.label')}"/>
                    <textbox id="txtNome" multiline="true" constraint="no empty" width="100%"
                             value="@{winEditarImpresionLayoutConfig$composer.impresionLayoutConfig.descricao}"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>
                <row>
                    <label
						value="${c:l('editarImpresionLayoutConfigController.cmbLinguagemImpresion')}" />
					<combobox id="cmbLinguagemImpresion"
						mold="rounded" buttonVisible="true" width="100%"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
						model="@{winEditarImpresionLayoutConfig$composer.lsEnumLinguagemImpresion}"
						selectedItem="@{winEditarImpresionLayoutConfig$composer.impresionLayoutConfig.linguagem}" />
                </row>
            </rows>
        </grid>
        
       <vlayout id="layoutCkEditor" width="100%" visible="false" >
        
	        <ckeditor id="ckTexto"
							value="@{winEditarImpresionLayoutConfig$composer.impresionLayoutConfig.texto}"
							width="100%">
			</ckeditor>
		
		</vlayout>
		
	 <borderlayout id="layoutTextZpl" height="1000px" visible="false">

		<center border="0">
			<borderlayout>
				<west size="60%" border="0" splittable="true">
					<div  vflex="1">
						 <textbox id="txtTexto" tabbable="true" multiline="true" width="100%" height="100%"
	         value="@{winEditarImpresionLayoutConfig$composer.impresionLayoutConfig.texto}"  />
					</div>
				</west>
				<center>
				
			 <vlayout>
        		 <button id="btnRedesenhar" label="${c:l('editarImpresionLayoutConfigController.btnRedesenhar.value')}"/>
         		<image id="img" droppable="true"  width="100%" height="100%" />
     		</vlayout>
											
											
				</center>
				<east title="Variaveis" size="20%" collapsible="true" open="false">
					<div vflex="1">
					</div>
				</east>
			</borderlayout>
		</center>
	</borderlayout>
		
    </window>
</zk>
