Add keyword attribute to button tag
issue7067 review39101002
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
* Add keyword attribute to button tag
|
||||
* Allow field name on image tag
|
||||
* Remove unoconv and call soffice directly
|
||||
* Allow to include mixin to pool objects
|
||||
|
||||
@@ -365,6 +365,10 @@ Display a button.
|
||||
|
||||
* ``help``: see in common-attributes-help_.
|
||||
|
||||
* ``keyword``: specify where will the button be displayed in the client
|
||||
toolbar. The valid values are the keywords starting with `form_` from
|
||||
topics-actions_ without the `form_` part.
|
||||
|
||||
notebook
|
||||
^^^^^^^^
|
||||
|
||||
|
||||
@@ -144,6 +144,9 @@ attlist.button &= attribute icon { text }?
|
||||
attlist.button &= attribute confirm { text }?
|
||||
attlist.button &= attribute name { text }
|
||||
attlist.button &= attribute states { text }?
|
||||
attlist.button &=
|
||||
[ a:defaultValue="action" ]
|
||||
attribute keyword { "relate" | "print" | "action" }?
|
||||
attlist.button &= [ a:defaultValue = "0" ] attribute rule { "0" | "1" }?
|
||||
attlist.button &= attribute change { text }?
|
||||
attlist.button &= attribute type { "class" | "instance" }?
|
||||
|
||||
@@ -562,6 +562,17 @@
|
||||
<attribute name="states"/>
|
||||
</optional>
|
||||
</define>
|
||||
<define name="attlist.button" combine="interleave">
|
||||
<optional>
|
||||
<attribute name="keyword" a:defaultValue="action">
|
||||
<choice>
|
||||
<value>relate</value>
|
||||
<value>print</value>
|
||||
<value>action</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
</optional>
|
||||
</define>
|
||||
<define name="attlist.button" combine="interleave">
|
||||
<optional>
|
||||
<attribute name="rule" a:defaultValue="0">
|
||||
|
||||
@@ -73,6 +73,9 @@ attlist.button &=
|
||||
attlist.button &= attribute confirm { text }?
|
||||
attlist.button &= attribute name { text }
|
||||
attlist.button &= attribute states { text }?
|
||||
attlist.button &=
|
||||
[ a:defaultValue="action" ]
|
||||
attribute keyword { "relate" | "print" | "action" }?
|
||||
attlist.button &= attribute change { text }?
|
||||
attlist.button &= attribute type { "class" | "instance" }?
|
||||
attlist.button &=
|
||||
|
||||
@@ -250,6 +250,17 @@
|
||||
<attribute name="states"/>
|
||||
</optional>
|
||||
</define>
|
||||
<define name="attlist.button" combine="interleave">
|
||||
<optional>
|
||||
<attribute name="keyword" a:defaultValue="action">
|
||||
<choice>
|
||||
<value>relate</value>
|
||||
<value>print</value>
|
||||
<value>action</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
</optional>
|
||||
</define>
|
||||
<define name="attlist.button" combine="interleave">
|
||||
<optional>
|
||||
<attribute name="change"/>
|
||||
|
||||
Reference in New Issue
Block a user