You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2008/11/02 06:00:30 UTC
svn commit: r709843 - /ofbiz/site/dtds/widget-form.xsd
Author: jleroux
Date: Sat Nov 1 22:00:29 2008
New Revision: 709843
URL: http://svn.apache.org/viewvc?rev=709843&view=rev
Log:
I forgot to update in r707768 (OFBIZ-1992)
Modified:
ofbiz/site/dtds/widget-form.xsd
Modified: ofbiz/site/dtds/widget-form.xsd
URL: http://svn.apache.org/viewvc/ofbiz/site/dtds/widget-form.xsd?rev=709843&r1=709842&r2=709843&view=diff
==============================================================================
--- ofbiz/site/dtds/widget-form.xsd (original)
+++ ofbiz/site/dtds/widget-form.xsd Sat Nov 1 22:00:29 2008
@@ -32,6 +32,7 @@
<xs:sequence>
<xs:element minOccurs="0" ref="actions"/>
<xs:element minOccurs="0" ref="row-actions"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="filter"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="alt-target"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="auto-fields-service"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="auto-fields-entity"/>
@@ -101,6 +102,15 @@
<xs:attribute type="xs:string" name="default-widget-style"/>
<xs:attribute type="xs:string" name="default-tooltip-style"/>
<xs:attribute type="xs:string" name="default-required-field-style"/>
+ <xs:attribute type="xs:string" name="default-sort-field-style">
+ <xs:annotation><xs:documentation>CSS style to used for form sort fields. Defaults to "sort-order".</xs:documentation></xs:annotation>
+ </xs:attribute>
+ <xs:attribute type="xs:string" name="default-sort-field-asc-style">
+ <xs:annotation><xs:documentation>CSS style to used for form sort fields. Defaults to "sort-order-asc".</xs:documentation></xs:annotation>
+ </xs:attribute>
+ <xs:attribute type="xs:string" name="default-sort-field-desc-style">
+ <xs:annotation><xs:documentation>CSS style to used for form sort fields. Defaults to "sort-order-desc".</xs:documentation></xs:annotation>
+ </xs:attribute>
<xs:attribute name="paginate" default="true">
<xs:simpleType>
<xs:restriction base="xs:token">
@@ -125,16 +135,16 @@
<xs:annotation><xs:documentation>The total number of rows in the original list (used for pagination). If not specified, the size of the list will be used. Accepts ${} notation.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="paginate-first-label">
- <xs:annotation><xs:documentation>Text to display for the [First] button in a form with pagination. Defaults to "First". Accepts ${} notation.</xs:documentation></xs:annotation>
+ <xs:annotation><xs:documentation>Text to display for the [First] button in a form with pagination. Defaults to the CommonFirst label defined in CommonUiLabels.xml. Accepts ${} notation.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="paginate-previous-label">
- <xs:annotation><xs:documentation>Text to display for the [Previous] button in a form with pagination. Defaults to "Previous". Accepts ${} notation.</xs:documentation></xs:annotation>
+ <xs:annotation><xs:documentation>Text to display for the [Previous] button in a form with pagination. Defaults to the CommonPrevious label defined in CommonUiLabels.xml. Accepts ${} notation.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="paginate-next-label">
- <xs:annotation><xs:documentation>Text to display for the [Next] button in a form with pagination. Defaults to "Next". Accepts ${} notation.</xs:documentation></xs:annotation>
+ <xs:annotation><xs:documentation>Text to display for the [Next] button in a form with pagination. Defaults to the CommonNext label defined in CommonUiLabels.xml. Accepts ${} notation.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="paginate-last-label">
- <xs:annotation><xs:documentation>Text to display for the [Last] button in a form with pagination. Defaults to "Last". Accepts ${} notation.</xs:documentation></xs:annotation>
+ <xs:annotation><xs:documentation>Text to display for the [Last] button in a form with pagination. Defaults to the CommonLast label defined in CommonUiLabels.xml. Accepts ${} notation.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute type="xs:string" name="paginate-style">
<xs:annotation><xs:documentation>CSS style to use for the whole pager in a form with pagination. Defaults to "nav-pager".</xs:documentation></xs:annotation>
@@ -225,6 +235,20 @@
<xs:attribute type="xs:string" name="target"/>
<xs:attribute type="xs:string" name="target-type"/>
</xs:attributeGroup>
+ <xs:element name="filter">
+ <xs:annotation><xs:documentation>Active a style on a line if the use-when condition is validate</xs:documentation></xs:annotation>
+ <xs:complexType>
+ <xs:attributeGroup ref="attlist.filter"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.filter">
+ <xs:attribute type="xs:string" name="use-when" use="required">
+ <xs:annotation><xs:documentation>Boolean expression tested to actived style on a line.</xs:documentation></xs:annotation>
+ </xs:attribute>
+ <xs:attribute type="xs:string" name="style" use="required">
+ <xs:annotation><xs:documentation>If use-when return true, concat this style to existing style of the line.</xs:documentation></xs:annotation>
+ </xs:attribute>
+ </xs:attributeGroup>
<xs:element name="auto-fields-service">
<xs:complexType>
<xs:attributeGroup ref="attlist.auto-fields-service"/>
@@ -293,8 +317,10 @@
</xs:complexType>
</xs:element>
<xs:attributeGroup name="attlist.field-group">
+ <xs:attribute type="xs:string" name="title"/>
+ <xs:attribute type="xs:string" name="collapsible"/>
<xs:attribute type="xs:string" name="id"/>
- <xs:attribute type="xs:string" name="style"/>
+ <xs:attribute type="xs:string" name="style"/>
</xs:attributeGroup>
<xs:element name="banner">
<xs:complexType>
@@ -444,8 +470,43 @@
</xs:simpleType>
</xs:attribute>
<xs:attribute type="xs:string" name="required-field-style">
- <xs:annotation><xs:documentation>The name of a style (like a CSS class) to apply to the title of this field if required. Will default to form's default-required-field-style. If field is required, but required-field-style is empty, an '*' will be placed to the right of text, textarea and password fields.</xs:documentation></xs:annotation>
+ <xs:annotation>
+ <xs:documentation>The name of a style (like a CSS class) to apply to the title of this field if required.
+ Will default to form's default-required-field-style.
+ If field is required, but required-field-style is empty, an '*' will be placed to the right of text,
+ textarea and password fields.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="sort-field" default="false">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
</xs:attribute>
+ <xs:attribute type="xs:string" name="sort-field-style">
+ <xs:annotation>
+ <xs:documentation>The name of a style (like a CSS class) to apply to the sort field link.
+ Will default to form's default-sort-field-style.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute type="xs:string" name="sort-field-asc-style">
+ <xs:annotation>
+ <xs:documentation>The name of a style (like a CSS class) to apply to the sort field link ordered ascending.
+ Will default to form's default-sort-field-asc-style.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute type="xs:string" name="sort-field-desc-style">
+ <xs:annotation>
+ <xs:documentation>The name of a style (like a CSS class) to apply to the sort field link ordered descending.
+ Will default to form's default-sort-field-desc-style.
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
</xs:attributeGroup>
<!-- ================== FIELD TYPES ==================== -->