Add keyword attribute to button tag

issue7067
review39101002
This commit is contained in:
Nicolas Évrard
2018-01-24 14:32:09 +01:00
parent 50f4a789c0
commit 5673bdd98f
6 changed files with 33 additions and 0 deletions
+1
View File
@@ -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
+4
View File
@@ -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
^^^^^^^^
+3
View File
@@ -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" }?
+11
View File
@@ -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">
+3
View File
@@ -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 &=
+11
View File
@@ -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"/>