Adding smaller/cleaner find form to financial account. Advanced Search brings up classic big search form.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@798483 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -6816,6 +6816,9 @@
|
||||
<value xml:lang="nl">Aantal</value>
|
||||
<value xml:lang="th">จำนวน</value>
|
||||
</property>
|
||||
<property key="AccountingQuickSearch">
|
||||
<value xml:lang="en">Quick Search</value>
|
||||
</property>
|
||||
<property key="AccountingRateAmounts">
|
||||
<value xml:lang="en">Rate Amounts</value>
|
||||
<value xml:lang="fr">Valeurs de taux</value>
|
||||
|
||||
@@ -36,6 +36,7 @@ under the License.
|
||||
<field name="fromDate"><date-time/></field>
|
||||
<field name="thruDate"><date-time/></field>
|
||||
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
|
||||
<field name="displayAdvancedSearch"><hidden value="true"></hidden></field>
|
||||
<field name="searchButton" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
</form>
|
||||
<form name="ListFinAccounts" type="list" separate-columns="true" default-entity-name="FinAccount" list-name="listIt" paginate-target="FindFinAccount" paginate="true"
|
||||
@@ -279,4 +280,18 @@ under the License.
|
||||
</field>
|
||||
<field name="finAccountId"><hidden value="${finAccountId}"/></field>
|
||||
</form>
|
||||
<form name="QuickFindFinAccounts" type="single" target="FindFinAccount"
|
||||
header-row-style="header-row" default-table-style="basic-table">
|
||||
<field name="finAccountId"><text-find default-option="contains" ignore-case="true"/></field>
|
||||
<field name="finAccountTypeId">
|
||||
<drop-down allow-empty="true">
|
||||
<entity-options description="${description}" entity-name="FinAccountType">
|
||||
<entity-order-by field-name="description"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="finAccountName"><text-find default-option="contains" ignore-case="true"/></field>
|
||||
<field name="noConditionFind"><hidden value="Y"/><!-- if this isn't there then with all fields empty no query will be done --></field>
|
||||
<field name="searchButton" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
</form>
|
||||
</forms>
|
||||
|
||||
@@ -65,6 +65,7 @@ under the License.
|
||||
<set field="tabButtonItem" value="FindFinAccount"/>
|
||||
<set field="viewIndex" from-field="parameters.VIEW_INDEX" type="Integer" default-value="0"/>
|
||||
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="20"/>
|
||||
<set field="displayAdvancedSearch" from-field="parameters.displayAdvancedSearch"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="CommonFinAccountDecorator" location="${parameters.finAccountDecoratorLocation}">
|
||||
@@ -74,11 +75,21 @@ under the License.
|
||||
<decorator-screen name="FindScreenDecorator" location="component://common/widget/CommonScreens.xml">
|
||||
<decorator-section name="menu-bar">
|
||||
<container style="button-bar">
|
||||
<link target="EditFinAccount" text="${uiLabelMap.CommonCreateNew} ${uiLabelMap.AccountingFinAccount}" style="buttontext"/>
|
||||
<include-menu name="FinAccountSubTabBar" location="component://accounting/widget/Menus.xml"/>
|
||||
</container>
|
||||
</decorator-section>
|
||||
<decorator-section name="search-options">
|
||||
<include-form name="FindFinAccounts" location="component://accounting/widget/FinAccountForms.xml"/>
|
||||
<section>
|
||||
<condition>
|
||||
<if-compare field="displayAdvancedSearch" operator="equals" value="true"/>
|
||||
</condition>
|
||||
<widgets>
|
||||
<include-form name="FindFinAccounts" location="component://accounting/widget/FinAccountForms.xml"/>
|
||||
</widgets>
|
||||
<fail-widgets>
|
||||
<include-form name="QuickFindFinAccounts" location="component://accounting/widget/FinAccountForms.xml"/>
|
||||
</fail-widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
<decorator-section name="search-results">
|
||||
<include-form name="ListFinAccounts" location="component://accounting/widget/FinAccountForms.xml"/>
|
||||
@@ -330,4 +341,4 @@ under the License.
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
</screens>
|
||||
</screens>
|
||||
|
||||
@@ -1095,4 +1095,23 @@ under the License.
|
||||
</link>
|
||||
</menu-item>
|
||||
</menu>
|
||||
<menu name="FinAccountSubTabBar" menu-container-style="button-bar button-style-2" extends="CommonTabBarMenu" extends-resource="component://common/widget/CommonMenus.xml">
|
||||
<menu-item name="createNew" title="${uiLabelMap.CommonCreateNew} ${uiLabelMap.AccountingFinAccount}">
|
||||
<link target="EditFinAccount"/>
|
||||
</menu-item>
|
||||
<menu-item name="advancedFinAccountSearch" title="${uiLabelMap.CommonAdvancedSearch}">
|
||||
<condition>
|
||||
<if-compare field="displayAdvancedSearch" operator="not-equals" value="true"/>
|
||||
</condition>
|
||||
<link target="FindFinAccount">
|
||||
<parameter param-name="displayAdvancedSearch" value="true"/>
|
||||
</link>
|
||||
</menu-item>
|
||||
<menu-item name="quickFinAccountSearch" title="${uiLabelMap.AccountingQuickSearch}">
|
||||
<condition>
|
||||
<if-compare field="displayAdvancedSearch" operator="equals" value="true"/>
|
||||
</condition>
|
||||
<link target="FindFinAccount"/>
|
||||
</menu-item>
|
||||
</menu>
|
||||
</menus>
|
||||
|
||||
Reference in New Issue
Block a user