applications/accounting/widget/settings/PaymentGatewayConfigScreens.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="FindPaymentGatewayConfig">
<section>
<actions>
<set field="titleProperty" value="PageTitleFindPaymentGatewayConfig"/>
<set field="activeSubMenuItem" value="PaymentGatewayConfig" />
<set field="activeSubMenu2Item" value="paymentGatewayConfigTab"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<include-form name="FindPaymentGatewayConfig" location="component://accounting/widget/settings/PaymentGatewayConfigForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="ListPaymentGatewayConfig" location="component://accounting/widget/settings/PaymentGatewayConfigForms.xml"/>
</decorator-section>
</decorator-screen>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditPaymentGatewayConfig">
<section>
<actions>
<set field="titleProperty" value="PageTitleUpdatePaymentGatewayConfig"/>
<set field="activeSubMenuItem" value="PaymentGatewayConfig" />
<set field="activeSubMenu2Item" value="paymentGatewayConfigTab"/>
<set field="paymentGatewayConfigId" from-field="parameters.paymentGatewayConfigId"/>
<entity-one entity-name="PaymentGatewayConfig" value-field="paymentGatewayConfig"/>
<entity-one entity-name="PaymentGatewaySagePay" value-field="paymentGatewaySagePay">
<field-map field-name="paymentGatewayConfigId" from-field="parameters.paymentGatewayConfigId"/>
</entity-one>
<entity-one entity-name="PaymentGatewayAuthorizeNet" value-field="paymentGatewayAuthorizeNet">
<field-map field-name="paymentGatewayConfigId" from-field="parameters.paymentGatewayConfigId"/>
</entity-one>
<entity-one entity-name="PaymentGatewayCyberSource" value-field="paymentGatewayCyberSource">
<field-map field-name="paymentGatewayConfigId" from-field="parameters.paymentGatewayConfigId"/>
</entity-one>
<entity-one entity-name="PaymentGatewayEway" value-field="paymentGatewayEway">
<field-map field-name="paymentGatewayConfigId" from-field="parameters.paymentGatewayConfigId"/>
</entity-one>
<entity-one entity-name="PaymentGatewayPayflowPro" value-field="paymentGatewayPayflowPro">
<field-map field-name="paymentGatewayConfigId" from-field="parameters.paymentGatewayConfigId"/>
</entity-one>
<entity-one entity-name="PaymentGatewayPayPal" value-field="paymentGatewayPayPal">
<field-map field-name="paymentGatewayConfigId" from-field="parameters.paymentGatewayConfigId"/>
</entity-one>
<entity-one entity-name="PaymentGatewayClearCommerce" value-field="paymentGatewayClearCommerce">
<field-map field-name="paymentGatewayConfigId" from-field="parameters.paymentGatewayConfigId"/>
</entity-one>
<entity-one entity-name="PaymentGatewayWorldPay" value-field="paymentGatewayWorldPay">
<field-map field-name="paymentGatewayConfigId" from-field="parameters.paymentGatewayConfigId"/>
</entity-one>
<entity-one entity-name="PaymentGatewaySecurePay" value-field="paymentGatewaySecurePay">
<field-map field-name="paymentGatewayConfigId" from-field="parameters.paymentGatewayConfigId"/>
</entity-one>
<entity-one entity-name="PaymentGatewayiDEAL" value-field="paymentGatewayiDEAL">
<field-map field-name="paymentGatewayConfigId" from-field="parameters.paymentGatewayConfigId"/>
</entity-one>
<!-- SCIPIO (11/15/2018): Added missing orbital payment gateway config check -->
<entity-one entity-name="PaymentGatewayOrbital" value-field="paymentGatewayOrbital">
<field-map field-name="paymentGatewayConfigId" from-field="parameters.paymentGatewayConfigId"/>
</entity-one>
<!-- SCIPIO (11/14/2018): Check if payment gateway configs from addons exist -->
<script location="component://accounting/script/com/ilscipio/scipio/accounting/settings/PaymentGatewayConfig.groovy" />
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<!-- SCIPIO: (11/16/2018) Doesn't make any sense. This must me included in a single form -->
<!-- <screenlet title="${uiLabelMap.PageTitleUpdatePaymentGatewayConfig}">
<include-form name="EditPaymentGatewayConfig" location="component://accounting/widget/settings/PaymentGatewayConfigForms.xml"/>
</screenlet> -->
<section>
<condition>
<if-compare field="parameters.paymentGatewayConfigId" operator="equals" value="SAGEPAY_CONFIG"/>
</condition>
<widgets>
<screenlet title="${uiLabelMap.PageTitleUpdatePaymentGatewayConfigSagePay}">
<include-form name="EditPaymentGatewayConfigSagePay" location="component://accounting/widget/settings/PaymentGatewayConfigForms.xml"/>
</screenlet>
</widgets>
</section>
<section>
<condition>
<if-compare field="parameters.paymentGatewayConfigId" operator="equals" value="AUTHORIZE_NET_CONFIG"/>
</condition>
<widgets>
<screenlet title="${uiLabelMap.PageTitleUpdatePaymentGatewayConfigAuthorizeNet}">
<include-form name="EditPaymentGatewayConfigAuthorizeNet" location="component://accounting/widget/settings/PaymentGatewayConfigForms.xml"/>
</screenlet>
</widgets>
</section>
<section>
<condition>
<if-compare field="parameters.paymentGatewayConfigId" operator="equals" value="CYBERSOURCE_CONFIG"/>
</condition>
<widgets>
<screenlet title="${uiLabelMap.PageTitleUpdatePaymentGatewayConfigCyberSource}">
<include-form name="EditPaymentGatewayConfigCyberSource" location="component://accounting/widget/settings/PaymentGatewayConfigForms.xml"/>
</screenlet>
</widgets>
</section>
<section>
<condition>
<if-compare field="parameters.paymentGatewayConfigId" operator="equals" value="PAYFLOWPRO_CONFIG"/>
</condition>
<widgets>
<screenlet title="${uiLabelMap.PageTitleUpdatePaymentGatewayConfigPayflowPro}">
<include-form name="EditPaymentGatewayConfigPayflowPro" location="component://accounting/widget/settings/PaymentGatewayConfigForms.xml"/>
</screenlet>
</widgets>
</section>
<section>
<condition>
<if-compare field="parameters.paymentGatewayConfigId" operator="equals" value="PAYPAL_CONFIG"/>
</condition>
<widgets>
<screenlet title="${uiLabelMap.PageTitleUpdatePaymentGatewayConfigPayPal}">
<include-form name="EditPaymentGatewayConfigPayPal" location="component://accounting/widget/settings/PaymentGatewayConfigForms.xml"/>
</screenlet>
</widgets>
</section>
<section>
<condition>
<if-compare field="parameters.paymentGatewayConfigId" operator="equals" value="CLEARCOMMERCE_CONFIG"/>
</condition>
<widgets>
<screenlet title="${uiLabelMap.PageTitleUpdatePaymentGatewayConfigClearCommerce}">
<include-form name="EditPaymentGatewayConfigClearCommerce" location="component://accounting/widget/settings/PaymentGatewayConfigForms.xml"/>
</screenlet>
</widgets>
</section>
<section>
<condition>
<if-compare field="parameters.paymentGatewayConfigId" operator="equals" value="WORLDPAY_CONFIG"/>
</condition>
<widgets>
<screenlet title="${uiLabelMap.PageTitleUpdatePaymentGatewayConfigWorldPay}">
<include-form name="EditPaymentGatewayConfigWorldPay" location="component://accounting/widget/settings/PaymentGatewayConfigForms.xml"/>
</screenlet>
</widgets>
</section>
<section>
<condition>
<if-compare field="parameters.paymentGatewayConfigId" operator="equals" value="SECUREPAY_CONFIG"/>
</condition>
<widgets>
<screenlet title="${uiLabelMap.PageTitleUpdatePaymentGatewayConfigSecurePay}">
<include-form name="EditPaymentGatewayConfigSecurePay" location="component://accounting/widget/settings/PaymentGatewayConfigForms.xml"/>
</screenlet>
</widgets>
</section>
<section>
<condition>
<if-compare field="parameters.paymentGatewayConfigId" operator="equals" value="EWAY_CONFIG"/>
</condition>
<widgets>
<screenlet title="${uiLabelMap.PageTitleUpdatePaymentGatewayConfigEway}">
<include-form name="EditPaymentGatewayConfigEway" location="component://accounting/widget/settings/PaymentGatewayConfigForms.xml"/>
</screenlet>
</widgets>
</section>
<section>
<condition>
<if-compare field="parameters.paymentGatewayConfigId" operator="equals" value="IDEAL_CONFIG"/>
</condition>
<widgets>
<screenlet title="${uiLabelMap.PageTitleUpdatePaymentGatewayConfigiDEAL}">
<include-form name="EditPaymentGatewayConfigiDEAL" location="component://accounting/widget/settings/PaymentGatewayConfigForms.xml"/>
</screenlet>
</widgets>
</section>
<section>
<condition>
<if-compare field="parameters.paymentGatewayConfigId" operator="equals" value="ORBITAL_CONFIG"/>
</condition>
<widgets>
<screenlet title="${uiLabelMap.PageTitleUpdatePaymentGatewayConfigOrbital}">
<include-form name="EditPaymentGatewayConfigOrbital" location="component://accounting/widget/settings/PaymentGatewayConfigForms.xml"/>
</screenlet>
</widgets>
</section>
<!-- SCIPIO (11/14/2018): Added custom sections for PaymentGatewayConfigs that are defined from addons.
If the addons are not present they won't be available.
-->
<section>
<condition>
<and>
<not><if-empty field="paymentGatewayPayPalRestModelEntity"/></not>
<if-compare field="parameters.paymentGatewayConfigId" operator="equals" value="PAYPAL_REST_CFG"/>
</and>
</condition>
<widgets>
<screenlet title="${uiLabelMap.PageTitleUpdatePaymentGatewayConfigPayPalRest}">
<include-form name="EditPaymentGatewayPayPalRest" location="component://paypal/widget/settings/PaymentGatewayConfigForms.xml"/>
</screenlet>
</widgets>
</section>
<section>
<condition>
<and>
<not><if-empty field="paymentGatewayStripeRestModelEntity"/></not>
<if-compare field="parameters.paymentGatewayConfigId" operator="equals" value="STRIPE_REST_CFG"/>
</and>
</condition>
<widgets>
<screenlet title="${uiLabelMap.PageTitleUpdatePaymentGatewayConfigStripeRest}">
<include-form name="EditPaymentGatewayStripeRest" location="component://stripe/widget/settings/PaymentGatewayConfigForms.xml"/>
</screenlet>
</widgets>
</section>
<section>
<condition>
<and>
<not><if-empty field="paymentGatewayRedsysModelEntity"/></not>
<if-compare field="parameters.paymentGatewayConfigId" operator="equals" value="REDSYS_CFG"/>
</and>
</condition>
<widgets>
<screenlet title="${uiLabelMap.PageTitleUpdatePaymentGatewayConfigRedsys}">
<include-form name="EditPaymentGatewayRedsys" location="component://redsys/widget/settings/PaymentGatewayConfigForms.xml"/>
</screenlet>
</widgets>
</section>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="FindPaymentGatewayConfigTypes">
<section>
<actions>
<set field="titleProperty" value="PageTitleFindPaymentGatewayConfigTypes"/>
<set field="activeSubMenuItem" value="PaymentGatewayConfig" />
<set field="activeSubMenu2Item" value="paymentGatewayConfigTypesTab"/>
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
<decorator-section name="search-options">
<include-form name="FindPaymentGatewayConfigTypes" location="component://accounting/widget/settings/PaymentGatewayConfigForms.xml"/>
</decorator-section>
<decorator-section name="search-results">
<include-form name="ListPaymentGatewayConfigTypes" location="component://accounting/widget/settings/PaymentGatewayConfigForms.xml"/>
</decorator-section>
</decorator-screen>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="EditPaymentGatewayConfigType">
<section>
<actions>
<set field="titleProperty" value="PageTitleUpdatePaymentGatewayConfigType"/>
<set field="activeSubMenuItem" value="PaymentGatewayConfig" />
<set field="activeSubMenu2Item" value="paymentGatewayConfigTypesTab"/>
<set field="paymentGatewayConfigTypeId" from-field="parameters.paymentGatewayConfigTypeId"/>
<entity-one entity-name="PaymentGatewayConfigType" value-field="paymentGatewayConfigType"/>
</actions>
<widgets>
<decorator-screen name="CommonSettingsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<screenlet>
<include-form name="EditPaymentGatewayConfigType" location="component://accounting/widget/settings/PaymentGatewayConfigForms.xml"/>
</screenlet>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>