| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| |
| <screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd"> |
| |
| <screen name="PaymentMethodDecorator"> |
| <section> |
| <actions> |
| <set field="headerItem" value="find"/> |
| <script location="component://party/webapp/partymgr/WEB-INF/actions/HasPartyPermissions.groovy"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <section> |
| <condition> |
| <or> |
| <if-compare field="hasViewPermission" operator="equals" value="true" type="Boolean"/> |
| <if-compare field="hasPayInfoPermission" operator="equals" value="true" type="Boolean"/> |
| </or> |
| </condition> |
| <widgets> |
| <decorator-section-include name="body"/> |
| </widgets> |
| <fail-widgets> |
| <container> |
| <label style="h3">${uiLabelMap.AccountingCardInfoNotBelongToYou}</label> |
| </container> |
| <container> |
| <link target="authview/${donePage}" text="${uiLabelMap.CommonBack}" style="smallSubmit"/> |
| </container> |
| </fail-widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="editcreditcard"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditCreditCard"/> |
| <set field="tabButtonItem" value="editcreditcard"/> |
| <set field="cardNumberMinDisplay" value="min"/> |
| <set field="showToolTip" value="true"/> |
| <script location="component://party/webapp/partymgr/WEB-INF/actions/HasPartyPermissions.groovy"/> |
| <script location="component://party/webapp/partymgr/WEB-INF/actions/party/EditPaymentMethod.groovy"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="PaymentMethodDecorator"> |
| <decorator-section name="body"> |
| <platform-specific> |
| <html><html-template location="component://party/webapp/partymgr/party/editcreditcard.ftl"/></html> |
| </platform-specific> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="editgiftcard"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditGiftCard"/> |
| <set field="tabButtonItem" value="editgiftcard"/> |
| |
| <script location="component://party/webapp/partymgr/WEB-INF/actions/HasPartyPermissions.groovy"/> |
| <script location="component://party/webapp/partymgr/WEB-INF/actions/party/EditPaymentMethod.groovy"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="PaymentMethodDecorator"> |
| <decorator-section name="body"> |
| <platform-specific> |
| <html><html-template location="component://party/webapp/partymgr/party/editgiftcard.ftl"/></html> |
| </platform-specific> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| <screen name="editeftaccount"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditEftAccount"/> |
| <set field="tabButtonItem" value="editeftaccount"/> |
| |
| <script location="component://party/webapp/partymgr/WEB-INF/actions/HasPartyPermissions.groovy"/> |
| <script location="component://party/webapp/partymgr/WEB-INF/actions/party/EditPaymentMethod.groovy"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="PaymentMethodDecorator"> |
| <decorator-section name="body"> |
| <platform-specific> |
| <html><html-template location="component://party/webapp/partymgr/party/editeftaccount.ftl"/></html> |
| </platform-specific> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="editavsoverride"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditAvsOverride"/> |
| <set field="headerItem" value="find"/> |
| |
| <set field="partyId" from-field="parameters.partyId"/> |
| <set field="donePage" from-field="parameters.DONE_PAGE" default-value="viewprofile"/> |
| <entity-one entity-name="PartyIcsAvsOverride" value-field="avsOverride"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}"> |
| <decorator-section name="body"> |
| <section> |
| <!-- do check for PARTYMGR, _VIEW permission --> |
| <condition> |
| <if-service-permission service-name="partyBasePermissionCheck" main-action="VIEW"/> |
| </condition> |
| <widgets> |
| <screenlet title="${uiLabelMap.PageTitleEditAvsOverride}"> |
| <include-form name="EditAvsOverride" location="component://party/widget/partymgr/PaymentMethodForms.xml"/> |
| </screenlet> |
| </widgets> |
| <fail-widgets> |
| <label style="h3">${uiLabelMap.PartyMgrViewPermissionError}</label> |
| </fail-widgets> |
| </section> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| |
| <screen name="EditBillingAccount"> |
| <section> |
| <actions> |
| <set field="titleProperty" value="PageTitleEditBillingAccount"/> |
| <set field="headerItem" value="billingaccount"/> |
| <set field="tabButtonItem" value="EditBillingAccount"/> |
| <property-to-field field="defaultCurrencyUomId" resource="general" property="currency.uom.id.default" default="USD"/> |
| <set field="billingAccountId" from-field="parameters.billingAccountId"/> |
| <entity-one entity-name="BillingAccount" value-field="billingAccount"/> |
| <set field="partyId" from-field="parameters.partyId"/> |
| <set field="roleTypeId" from-field="parameters.roleTypeId"/> |
| </actions> |
| <widgets> |
| <decorator-screen name="PaymentMethodDecorator"> |
| <decorator-section name="body"> |
| <screenlet title="${uiLabelMap.PageTitleEditBillingAccount}"> |
| <include-form name="EditBillingAccount" location="component://party/widget/partymgr/PaymentMethodForms.xml"/> |
| </screenlet> |
| </decorator-section> |
| </decorator-screen> |
| </widgets> |
| </section> |
| </screen> |
| </screens> |