changeset e3fe7c454ed6 in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset;node=e3fe7c454ed6
description:
        Allow using yexpand and yfill attributes on notebook element

        issue8418
        review281681002
diffstat:

 trytond/ir/ui/form.rnc |   2 ++
 trytond/ir/ui/form.rng |  22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+), 0 deletions(-)

diffs (44 lines):

diff -r 54b15f36c1a7 -r e3fe7c454ed6 trytond/ir/ui/form.rnc
--- a/trytond/ir/ui/form.rnc    Mon Jul 08 21:49:05 2019 +0200
+++ b/trytond/ir/ui/form.rnc    Tue Jul 09 23:42:43 2019 +0200
@@ -154,6 +154,8 @@
 attlist.button &= attribute type { "class" | "instance" }?
 notebook = element notebook { attlist.notebook, page* }
 attlist.notebook &= [ a:defaultValue = "4" ] attribute colspan { text }?
+attlist.notebook &= [ a:defaultValue = "1" ] attribute yexpand { "0" | "1" }?
+attlist.notebook &= [ a:defaultValue = "1" ] attribute yfill { "0" | "1" }?
 attlist.notebook &= attribute states { text }?
 attlist.notebook &= attribute width { text }?
 attlist.notebook &= attribute height { text }?
diff -r 54b15f36c1a7 -r e3fe7c454ed6 trytond/ir/ui/form.rng
--- a/trytond/ir/ui/form.rng    Mon Jul 08 21:49:05 2019 +0200
+++ b/trytond/ir/ui/form.rng    Tue Jul 09 23:42:43 2019 +0200
@@ -799,6 +799,28 @@
   </define>
   <define name="attlist.notebook" combine="interleave">
     <optional>
+      <attribute a:defaultValue="1">
+        <name ns="">yexpand</name>
+        <choice>
+          <value>0</value>
+          <value>1</value>
+        </choice>
+      </attribute>
+    </optional>
+  </define>
+  <define name="attlist.notebook" combine="interleave">
+    <optional>
+      <attribute a:defaultValue="1">
+        <name ns="">yfill</name>
+        <choice>
+          <value>0</value>
+          <value>1</value>
+        </choice>
+      </attribute>
+    </optional>
+  </define>
+  <define name="attlist.notebook" combine="interleave">
+    <optional>
       <attribute>
         <name ns="">states</name>
         <text/>

Reply via email to