ItEr17S13CUConfiguracionDeOrganizacionsDeTraballoConUnidadesTraballoItEr15S11: Removing Cancel button on edit order element popup.
This commit is contained in:
parent
104b0be12d
commit
2d4626df2e
3 changed files with 11 additions and 20 deletions
|
|
@ -225,18 +225,11 @@ public class OrderElementController extends GenericForwardComposer {
|
||||||
reloadSelectedCriterionTypes();
|
reloadSelectedCriterionTypes();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Just close the {@link Popup}
|
|
||||||
*/
|
|
||||||
public void cancel() {
|
|
||||||
popup.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Just close the {@link Popup} and refresh parent status. Save actions are
|
* Just close the {@link Popup} and refresh parent status. Save actions are
|
||||||
* managed by "save-when" at .zul file.
|
* managed by "save-when" at .zul file.
|
||||||
*/
|
*/
|
||||||
public void save() {
|
public void back() {
|
||||||
popup.close();
|
popup.close();
|
||||||
Util.reloadBindings(popup.getParent());
|
Util.reloadBindings(popup.getParent());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,17 +8,17 @@
|
||||||
<label value="Order Element Name" />
|
<label value="Order Element Name" />
|
||||||
<textbox id="name"
|
<textbox id="name"
|
||||||
value="@{orderElementController.orderElement.name,
|
value="@{orderElementController.orderElement.name,
|
||||||
save-when='saveButton.onClick'}" />
|
save-when='backButton.onClick'}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
|
|
||||||
<hbox>
|
<hbox>
|
||||||
<label value="Init Date" />
|
<label value="Init Date" />
|
||||||
<datebox id="initDate"
|
<datebox id="initDate"
|
||||||
value="@{orderElementController.orderElement.initDate,
|
value="@{orderElementController.orderElement.initDate,
|
||||||
save-when='saveButton.onClick'}" />
|
save-when='backButton.onClick'}" />
|
||||||
<checkbox id="mandatoryInit"
|
<checkbox id="mandatoryInit"
|
||||||
checked="@{orderElementController.orderElement.mandatoryInit},
|
checked="@{orderElementController.orderElement.mandatoryInit},
|
||||||
save-when='saveButton.onClick'" />
|
save-when='backButton.onClick'" />
|
||||||
<label value="Mandatory" />
|
<label value="Mandatory" />
|
||||||
</hbox>
|
</hbox>
|
||||||
|
|
||||||
|
|
@ -26,10 +26,10 @@
|
||||||
<label value="End Date" />
|
<label value="End Date" />
|
||||||
<datebox id="endDate"
|
<datebox id="endDate"
|
||||||
value="@{orderElementController.orderElement.endDate,
|
value="@{orderElementController.orderElement.endDate,
|
||||||
save-when='saveButton.onClick'}" />
|
save-when='backButton.onClick'}" />
|
||||||
<checkbox id="mandatoryEnd"
|
<checkbox id="mandatoryEnd"
|
||||||
checked="@{orderElementController.orderElement.mandatoryEnd,
|
checked="@{orderElementController.orderElement.mandatoryEnd,
|
||||||
save-when='saveButton.onClick'}" />
|
save-when='backButton.onClick'}" />
|
||||||
<label value="Mandatory" />
|
<label value="Mandatory" />
|
||||||
</hbox>
|
</hbox>
|
||||||
|
|
||||||
|
|
@ -96,14 +96,12 @@
|
||||||
|
|
||||||
<textbox id="description" rows="4"
|
<textbox id="description" rows="4"
|
||||||
value="@{orderElementController.orderElement.description,
|
value="@{orderElementController.orderElement.description,
|
||||||
save-when='saveButton.onClick'}" />
|
save-when='backButton.onClick'}" />
|
||||||
|
|
||||||
<hbox>
|
<hbox>
|
||||||
<button onClick="orderElementController.cancel();"
|
<button id="backButton"
|
||||||
label="${arg.cancel_button_label}" />
|
onClick="orderElementController.back();"
|
||||||
<button id="saveButton"
|
label="${arg.back_button_label}" />
|
||||||
onClick="orderElementController.save();"
|
|
||||||
label="${arg.save_button_label}" />
|
|
||||||
</hbox>
|
</hbox>
|
||||||
|
|
||||||
</vbox>
|
</vbox>
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
<edition top_id="editWindow" title="Edit Personal Data"
|
<edition top_id="editWindow" title="Edit Personal Data"
|
||||||
save_button_label="Save" cancel_button_label="Cancel" />
|
save_button_label="Save" cancel_button_label="Cancel" />
|
||||||
<orderElementPopup top_id="editOrderElementPopup" title="Edit Order Element"
|
<orderElementPopup top_id="editOrderElementPopup" title="Edit Order Element"
|
||||||
save_button_label="Save" cancel_button_label="Cancel" />
|
back_button_label="Back" />
|
||||||
<window visible="@{controller.confirmingRemove}"
|
<window visible="@{controller.confirmingRemove}"
|
||||||
id="confirmRemove" title="Confirmación" width="500px"
|
id="confirmRemove" title="Confirmación" width="500px"
|
||||||
position="center">
|
position="center">
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue