<?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="winEditarGP_PricingAsiento"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>

<zk xmlns="http://www.zkoss.org/2005/zul">
    <window id="winEditarGP_PricingAsiento" border="normal"
            apply="${editarGP_PricingAsientoController}"
            width="400px"  height="457x" contentStyle="overflow:auto"
            title="${c:l('editarPricingController.windowAsiento.title')}">
        <toolbar>
            <hbox spacing="5px" style="padding:1px" align="right">
                <!--button id="btnRemoverAsiento" height="20"
                        image="/gui/img/remove.png" width="35px"
                        tooltiptext="${c:l('editarPricingAsientoController.btnApagar.tooltiptext')}"/-->
                <button id="btnAdicionarAsiento" disabled="${arg.isReadOnly}" height="20"
                        image="/gui/img/save.png" width="35px"
                        tooltiptext="${c:l('editarPricingAsientoController.btnSalvar.tooltiptext')}"/>
                <button height="20"
                        image="/gui/img/exit.png" width="35px"
                        onClick="winEditarGP_PricingAsiento.detach()"
                        tooltiptext="${c:l('editarPricingAsientoController.btnFechar.tooltiptext')}"/>
            </hbox>
        </toolbar>

        <grid fixedLayout="true">
            <columns>
                <column width="40%" />
                <column width="60%" />
            </columns>
            <rows>
                <row>
                    <label value="${c:l('editarPricingController.asiento.value')}"/>
                    <intbox id="numeasiento" constraint="no negative,no zero, no empty"
                            value="@{winEditarGP_PricingAsiento$composer.pricingAsiento.numeasiento}" maxlength="2"/>
                </row>
                <row>
                    <label value="${c:l('editarPricingController.porcentaje.value')}"/>
                    <textbox id="porcentaje" 
                                      use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" maxValue="100" allowNegative="true" obligatorio="true"
                                      value="@{winEditarGP_PricingAsiento$composer.pricingAsiento.porcentaje,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}"/>
                    
                </row>
                <row>
                    <label value="${c:l('editarPricingController.nombAsiento.value')}"/>
                    <textbox id="nombImagen" constraint="no empty"
                            value="@{winEditarGP_PricingAsiento$composer.pricingAsiento.nombImagen}" maxlength="20"/>
                </row>
            </rows>
        </grid>
    </window>
</zk>
