ItEr44S10CUGravacionModelosUnidadesTraballoItEr43S12: Ignominious hack to avoid SchedulingStateToggler failure due to zk. It was not loading lang-addon components.
Inlining _edition.zul had to be done and adding component directive.
This commit is contained in:
parent
4d73c4be0a
commit
113e469e2c
2 changed files with 76 additions and 95 deletions
|
|
@ -1,93 +0,0 @@
|
|||
<!--
|
||||
This file is part of ###PROJECT_NAME###
|
||||
|
||||
Copyright (C) 2009 Fundación para o Fomento da Calidade Industrial e
|
||||
Desenvolvemento Tecnolóxico de Galicia
|
||||
|
||||
This program 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, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<?component name="orderElementTree" macroURI="/orders/components/_orderElementTree.zul"
|
||||
class="org.navalplanner.web.templates.TemplatesTreeComponent"?>
|
||||
<?component name="listOrderElementMaterials" class="org.navalplanner.web.templates.materials.MaterialAssignmentTemplateComponent"
|
||||
macroURI="/orders/components/_listOrderElementMaterials.zul"?>
|
||||
<?component name="listOrderElementLabels" class="org.navalplanner.web.templates.labels.LabelsAssignmentToTemplateComponent" macroURI="/orders/components/_listOrderElementLabels.zul"?>
|
||||
<?component name="assignedQualityForms" class="org.navalplanner.web.templates.quality.QualityFormAssignerComponent" macroURI="/templates/_assignedQualityForms.zul" ?>
|
||||
<?component name="advancesAssignment" class="org.navalplanner.web.templates.advances.AdvancesAssignmentComponent" macroURI="/templates/_advances.zul"?>
|
||||
<window id="${arg.top_id}">
|
||||
<tabbox>
|
||||
<tabs>
|
||||
<tab id="tabGeneralData" label="${i18n:_('General data')}" />
|
||||
<tab label="${i18n:_('Template Tree')}" disabled="@{templateController.templateTreeDisabled}"/>
|
||||
<tab label="${i18n:_('Advances')}" />
|
||||
<tab label="${i18n:_('Labels')}" />
|
||||
<tab label="${i18n:_('Materials')}" />
|
||||
<tab label="${i18n:_('Quality Forms')}" />
|
||||
</tabs>
|
||||
<tabpanels>
|
||||
<tabpanel>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="200px" />
|
||||
<column />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${i18n:_('Name')}" />
|
||||
<textbox value="@{templateController.template.name}" width="500px"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${i18n:_('Code')}" />
|
||||
<hbox>
|
||||
<textbox value="@{templateController.template.code}" width="250px" />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${i18n:_('Days from Beginning to Start')}" />
|
||||
<intbox
|
||||
value="@{templateController.template.startAsDaysFromBeginning}" constraint="no negative"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${i18n:_('Days from Beginning to Deadline')}" />
|
||||
<intbox
|
||||
value="@{templateController.template.deadlineAsDaysFromBeginning}" constraint="no negative"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</tabpanel>
|
||||
<tabpanel>
|
||||
<orderElementTree id="orderElementTree"/>
|
||||
</tabpanel>
|
||||
<tabpanel>
|
||||
<advancesAssignment id="advancesAssignment" />
|
||||
</tabpanel>
|
||||
<tabpanel>
|
||||
<listOrderElementLabels id="listOrderElementLabels"/>
|
||||
</tabpanel>
|
||||
<tabpanel>
|
||||
<listOrderElementMaterials id="listOrderElementMaterials"/>
|
||||
</tabpanel>
|
||||
<tabpanel>
|
||||
<assignedQualityForms id="assignedQualityForms"/>
|
||||
</tabpanel>
|
||||
</tabpanels>
|
||||
</tabbox>
|
||||
<hbox>
|
||||
<button label="${i18n:_('Save')}" onClick="templateController.saveAndExit()"
|
||||
sclass="save-button global-action" />
|
||||
<button label="${i18n:_('Save & Continue')}" onClick="templateController.saveAndContinue()"
|
||||
sclass="saveandcontinue-button global-action" />
|
||||
<button label="${i18n:_('Cancel')}" onClick="templateController.cancel()"
|
||||
sclass="cancel-button global-action" />
|
||||
</hbox>
|
||||
</window>
|
||||
|
|
@ -25,8 +25,16 @@
|
|||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" ?>
|
||||
<?taglib uri="/WEB-INF/tld/i18n.tld" prefix="i18n"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?component name="schedulingStateToggler" class="org.navalplanner.web.orders.SchedulingStateToggler" macroURI="/common/components/schedulingStateToggler.zul"?>
|
||||
<?component name="list" inline="true" macroURI="_list.zul"?>
|
||||
<?component name="edition" inline="true" macroURI="_edition.zul"?>
|
||||
<?component name="orderElementTree" macroURI="/orders/components/_orderElementTree.zul"
|
||||
class="org.navalplanner.web.templates.TemplatesTreeComponent"?>
|
||||
<?component name="listOrderElementMaterials" class="org.navalplanner.web.templates.materials.MaterialAssignmentTemplateComponent"
|
||||
macroURI="/orders/components/_listOrderElementMaterials.zul"?>
|
||||
<?component name="listOrderElementLabels" class="org.navalplanner.web.templates.labels.LabelsAssignmentToTemplateComponent" macroURI="/orders/components/_listOrderElementLabels.zul"?>
|
||||
<?component name="assignedQualityForms" class="org.navalplanner.web.templates.quality.QualityFormAssignerComponent" macroURI="/templates/_assignedQualityForms.zul" ?>
|
||||
<?component name="advancesAssignment" class="org.navalplanner.web.templates.advances.AdvancesAssignmentComponent" macroURI="/templates/_advances.zul"?>
|
||||
|
||||
<zk>
|
||||
<zscript><![CDATA[
|
||||
templateController = orderTemplatesController;
|
||||
|
|
@ -35,6 +43,72 @@
|
|||
<div self="@{define(content)}" apply="${templateController}">
|
||||
<vbox id="messagesContainer" />
|
||||
<list top_id="listWindow" />
|
||||
<edition top_id="editWindow" />
|
||||
<window id="editWindow">
|
||||
<tabbox>
|
||||
<tabs>
|
||||
<tab id="tabGeneralData" label="${i18n:_('General data')}" />
|
||||
<tab label="${i18n:_('Template Tree')}" disabled="@{templateController.templateTreeDisabled}"/>
|
||||
<tab label="${i18n:_('Advances')}" />
|
||||
<tab label="${i18n:_('Labels')}" />
|
||||
<tab label="${i18n:_('Materials')}" />
|
||||
<tab label="${i18n:_('Quality Forms')}" />
|
||||
</tabs>
|
||||
<tabpanels>
|
||||
<tabpanel>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="200px" />
|
||||
<column />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${i18n:_('Name')}" />
|
||||
<textbox value="@{templateController.template.name}" width="500px"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${i18n:_('Code')}" />
|
||||
<hbox>
|
||||
<textbox value="@{templateController.template.code}" width="250px" />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${i18n:_('Days from Beginning to Start')}" />
|
||||
<intbox
|
||||
value="@{templateController.template.startAsDaysFromBeginning}" constraint="no negative"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${i18n:_('Days from Beginning to Deadline')}" />
|
||||
<intbox
|
||||
value="@{templateController.template.deadlineAsDaysFromBeginning}" constraint="no negative"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</tabpanel>
|
||||
<tabpanel>
|
||||
<orderElementTree id="orderElementTree"/>
|
||||
</tabpanel>
|
||||
<tabpanel>
|
||||
<advancesAssignment id="advancesAssignment" />
|
||||
</tabpanel>
|
||||
<tabpanel>
|
||||
<listOrderElementLabels id="listOrderElementLabels"/>
|
||||
</tabpanel>
|
||||
<tabpanel>
|
||||
<listOrderElementMaterials id="listOrderElementMaterials"/>
|
||||
</tabpanel>
|
||||
<tabpanel>
|
||||
<assignedQualityForms id="assignedQualityForms"/>
|
||||
</tabpanel>
|
||||
</tabpanels>
|
||||
</tabbox>
|
||||
<hbox>
|
||||
<button label="${i18n:_('Save')}" onClick="templateController.saveAndExit()"
|
||||
sclass="save-button global-action" />
|
||||
<button label="${i18n:_('Save & Continue')}" onClick="templateController.saveAndContinue()"
|
||||
sclass="saveandcontinue-button global-action" />
|
||||
<button label="${i18n:_('Cancel')}" onClick="templateController.cancel()"
|
||||
sclass="cancel-button global-action" />
|
||||
</hbox>
|
||||
</window>
|
||||
</div>
|
||||
</zk>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue