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

<zk xmlns="http://www.zkoss.org/2005/zul">
    <window id="winEditarMercadoCompetido" border="normal"
            apply="${editarMercadoCompetidoController}"
            width="500px"  height="457x" contentStyle="overflow:auto"
            title="${c:l('editarMercadoCompetidoController.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('editarMercadoCompetidoController.btnApagar.tooltiptext')}"/>
                <button id="btnSalvar" height="20"
                        image="/gui/img/save.png" width="35px"
                        tooltiptext="${c:l('editarMercadoCompetidoController.btnSalvar.tooltiptext')}"/>
                <button id="btnFechar" height="20"
                        image="/gui/img/exit.png" width="35px"
                        onClick="winEditarMercadoCompetido.detach()"
                        tooltiptext="${c:l('editarMercadoCompetidoController.btnFechar.tooltiptext')}"/>
            </hbox>
        </toolbar>

        <grid fixedLayout="true">
            <columns>
                <column width="30%" />
                <column width="70%" />
            </columns>
            <rows>
                <row>
                    <label value="${c:l('busquedaMercadoCompetidoController.lhClaseServicio.label')}"/>
                    <combobox id="cmbClaseServicio" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
                                    mold="rounded" buttonVisible="true" width="90%" 
                                    model="@{winEditarMercadoCompetido$composer.lsClaseServicio}"
                                    selectedItem="@{winEditarMercadoCompetido$composer.mercadoCompetido.claseServicio}"/>
                </row>
                <row>
                    <label value="${c:l('busquedaMercadoCompetidoController.lhOrigem.label')}"/>
                    <combobox id="cmbOrigem" constraint="no empty"
                                    mold="rounded" buttonVisible="true" width="90%"
                                    sinTodos="true"
                                    use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
                                    initialValue="@{winEditarMercadoCompetido$composer.mercadoCompetido.origem}"
                                    selectedItem="@{winEditarMercadoCompetido$composer.mercadoCompetido.origem,save-when='self.onBlur'}"/>
                </row>

                <row>
                    <label value="${c:l('busquedaMercadoCompetidoController.lhDestino.label')}"/>
                    <combobox id="cmbDestino" constraint="no empty"
                                    mold="rounded" buttonVisible="true" width="90%"
                                    sinTodos="true"
                                    use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
                                    initialValue="@{winEditarMercadoCompetido$composer.mercadoCompetido.destino}"
                                    selectedItem="@{winEditarMercadoCompetido$composer.mercadoCompetido.destino,save-when='self.onBlur'}"/>
                </row>
            </rows>
        </grid>
    </window>
</zk>
