<?xml version="1.0" encoding="UTF-8"?>
<!--

    ***************************************************************************
    Copyright (c) 2010 Qcadoo Limited
    Project: Qcadoo MES
    Version: 1.4

    This file is part of Qcadoo.

    Qcadoo is free software; you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published
    by the Free Software Foundation; either version 3 of the License,
    or (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty
    of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    See the GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    ***************************************************************************

-->
<view defaultAuthorizationRole="ROLE_ADMIN" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://schema.qcadoo.org/view"
      xsi:schemaLocation="http://schema.qcadoo.org/view http://schema.qcadoo.org/view.xsd"
      name="licenses" modelName="parameter" menuAccessible="true">

    <component type="window" name="window" reference="window">

        <ribbon>
            <group name="actions" defaultAuthorizationRole="ROLE_SUPERADMIN">
                <bigButton name="save" icon="saveIcon24.png" action="#{form}.performSave;"/>
            </group>
        </ribbon>

        <windowTab name="mainTab" reference="mainTab">
            <component type="form" name="parameter" reference="form" defaultAuthorizationRole="ROLE_SUPERADMIN">
                <component type="gridLayout" name="gridLayout"
                           columns="3" rows="5" hasBorders="false">
                    <layoutElement column="1" row="1">
                        <component type="input" name="numberOfficeLicenses" field="numberOfficeLicenses"
                                   reference="numberOfficeLicenses">
                            <option type="labelWidth" value="55"/>
                            <option type="alignment" value="right"/>
                        </component>
                    </layoutElement>
                    <layoutElement column="1" row="2">
                        <component type="input" name="numberAPSLicenses" field="numberAPSLicenses"
                                   reference="numberAPSLicenses">
                            <option type="labelWidth" value="55"/>
                            <option type="alignment" value="right"/>
                        </component>
                    </layoutElement>
                    <layoutElement column="1" row="3">
                        <component type="input" name="numberWMSMobileLicenses" field="numberWMSMobileLicenses"
                                   reference="numberWMSMobileLicenses">
                            <option type="labelWidth" value="55"/>
                            <option type="alignment" value="right"/>
                        </component>
                    </layoutElement>
                    <layoutElement column="1" row="4">
                        <component type="input" name="numberTerminalLicenses" field="numberTerminalLicenses"
                                   reference="numberTerminalLicenses" defaultVisible="never">
                            <option type="labelWidth" value="55"/>
                            <option type="alignment" value="right"/>
                            <listener event="onInputChange"
                                      class="com.qcadoo.view.api.listeners.RerenderListener"
                                      method="onChangeRerender"/>
                        </component>
                    </layoutElement>
                    <layoutElement column="1" row="5">
                        <component type="select" name="typeTerminalLicenses" field="typeTerminalLicenses"
                                   reference="typeTerminalLicenses" defaultVisible="false" defaultEnabled="false">
                            <option type="labelWidth" value="55"/>
                        </component>
                    </layoutElement>
                </component>

                <option type="header" value="true"/>
                <option type="expression" value="' '"/>
            </component>
        </windowTab>
    </component>
</view>
