Changeset 473
- Timestamp:
- 06/26/07 18:20:26 (2 years ago)
- Files:
-
- trunk/build/manifests/jelix-lib.mn (modified) (9 diffs)
- trunk/build/manifests/jelix-lib.mn (modified) (9 diffs)
- trunk/build/manifests/testapp.mn (modified) (1 diff)
- trunk/build/manifests/testapp.mn (modified) (1 diff)
- trunk/lib/jelix-modules/jelix/locales/en_EN/formserr.ISO-8859-1.properties (added)
- trunk/lib/jelix-modules/jelix/locales/en_EN/formserr.ISO-8859-1.properties (added)
- trunk/lib/jelix-modules/jelix/locales/en_EN/formserr.UTF-8.properties (added)
- trunk/lib/jelix-modules/jelix/locales/en_EN/formserr.UTF-8.properties (added)
- trunk/lib/jelix-modules/jelix/locales/en_US/formserr.ISO-8859-1.properties (modified) (1 diff)
- trunk/lib/jelix-modules/jelix/locales/en_US/formserr.ISO-8859-1.properties (modified) (1 diff)
- trunk/lib/jelix-modules/jelix/locales/en_US/formserr.UTF-8.properties (added)
- trunk/lib/jelix-modules/jelix/locales/en_US/formserr.UTF-8.properties (added)
- trunk/lib/jelix-modules/jelix/locales/fr_FR/formserr.ISO-8859-1.properties (modified) (1 diff)
- trunk/lib/jelix-modules/jelix/locales/fr_FR/formserr.ISO-8859-1.properties (modified) (1 diff)
- trunk/lib/jelix-modules/jelix/locales/fr_FR/formserr.UTF-8.properties (modified) (1 diff)
- trunk/lib/jelix-modules/jelix/locales/fr_FR/formserr.UTF-8.properties (modified) (1 diff)
- trunk/lib/jelix-www/js/jforms.js (added)
- trunk/lib/jelix-www/js/jforms.js (added)
- trunk/lib/jelix/core/jSelector.class.php (modified) (1 diff)
- trunk/lib/jelix/core/jSelector.class.php (modified) (1 diff)
- trunk/lib/jelix/docs/ns/jforms-controls.rng (modified) (10 diffs)
- trunk/lib/jelix/docs/ns/jforms-controls.rng (modified) (10 diffs)
- trunk/lib/jelix/docs/ns/jforms.rng (modified) (2 diffs)
- trunk/lib/jelix/docs/ns/jforms.rng (modified) (2 diffs)
- trunk/lib/jelix/forms/jForms.class.php (modified) (1 diff)
- trunk/lib/jelix/forms/jForms.class.php (modified) (1 diff)
- trunk/lib/jelix/forms/jFormsBase.class.php (modified) (7 diffs)
- trunk/lib/jelix/forms/jFormsBase.class.php (modified) (7 diffs)
- trunk/lib/jelix/forms/jFormsBuilderBase.class.php (added)
- trunk/lib/jelix/forms/jFormsBuilderBase.class.php (added)
- trunk/lib/jelix/forms/jFormsCompiler.class.php (modified) (6 diffs)
- trunk/lib/jelix/forms/jFormsCompiler.class.php (modified) (6 diffs)
- trunk/lib/jelix/forms/jFormsControl.class.php (modified) (5 diffs)
- trunk/lib/jelix/forms/jFormsControl.class.php (modified) (5 diffs)
- trunk/lib/jelix/forms/jFormsDataContainer.class.php (modified) (3 diffs)
- trunk/lib/jelix/forms/jFormsDataContainer.class.php (modified) (3 diffs)
- trunk/lib/jelix/forms/jFormsDatasource.class.php (modified) (1 diff)
- trunk/lib/jelix/forms/jFormsDatasource.class.php (modified) (1 diff)
- trunk/lib/jelix/tpl/jTpl.class.php (modified) (1 diff)
- trunk/lib/jelix/tpl/jTpl.class.php (modified) (1 diff)
- trunk/lib/jelix/tpl/plugins/common/block.ifacl.php (modified) (2 diffs)
- trunk/lib/jelix/tpl/plugins/common/block.ifacl.php (modified) (2 diffs)
- trunk/lib/jelix/tpl/plugins/common/block.ifnotacl.php (modified) (2 diffs)
- trunk/lib/jelix/tpl/plugins/common/block.ifnotacl.php (modified) (2 diffs)
- trunk/lib/jelix/tpl/plugins/html/block.form.php (added)
- trunk/lib/jelix/tpl/plugins/html/block.form.php (added)
- trunk/lib/jelix/tpl/plugins/html/block.formcontrols.php (added)
- trunk/lib/jelix/tpl/plugins/html/block.formcontrols.php (added)
- trunk/lib/jelix/tpl/plugins/html/function.ctrl_control.php (added)
- trunk/lib/jelix/tpl/plugins/html/function.ctrl_control.php (added)
- trunk/lib/jelix/tpl/plugins/html/function.ctrl_label.php (added)
- trunk/lib/jelix/tpl/plugins/html/function.ctrl_label.php (added)
- trunk/lib/jelix/tpl/plugins/html/function.ctrl_value.php (added)
- trunk/lib/jelix/tpl/plugins/html/function.ctrl_value.php (added)
- trunk/testapp/modules/jelix_tests/tests/jforms.compiler.html.php (added)
- trunk/testapp/modules/jelix_tests/tests/jforms.compiler.html.php (added)
- trunk/testapp/modules/testapp/controllers/sampleform.classic.php (modified) (3 diffs)
- trunk/testapp/modules/testapp/controllers/sampleform.classic.php (modified) (3 diffs)
- trunk/testapp/modules/testapp/forms/sample.form.xml (modified) (2 diffs)
- trunk/testapp/modules/testapp/forms/sample.form.xml (modified) (2 diffs)
- trunk/testapp/modules/testapp/templates/sampleform.tpl (modified) (1 diff)
- trunk/testapp/modules/testapp/templates/sampleform.tpl (modified) (1 diff)
- trunk/testapp/modules/testapp/templates/sampleformresult.tpl (modified) (1 diff)
- trunk/testapp/modules/testapp/templates/sampleformresult.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build/manifests/jelix-lib.mn
r447 r473 111 111 jForms.class.php 112 112 jFormsBase.class.php 113 jFormsBuilderBase.class.php 113 114 jFormsCompiler.class.php 114 115 jFormsControl.class.php … … 154 155 function.formurlparam.php 155 156 function.diff.php 157 block.form.php 158 block.formcontrols.php 159 function.ctrl_control.php 160 function.ctrl_label.php 161 function.ctrl_value.php 156 162 157 163 cd lib/jelix/tpl/plugins/ltx2pdf … … 222 228 common.ISO-8859-1.properties 223 229 format.ISO-8859-1.properties 230 formserr.ISO-8859-1.properties 224 231 jelix.ISO-8859-1.properties 225 232 errors.ISO-8859-1.properties … … 231 238 common.UTF-8.properties 232 239 format.UTF-8.properties 240 formserr.UTF-8.properties 233 241 jelix.UTF-8.properties 234 242 errors.UTF-8.properties … … 241 249 common.ISO-8859-1.properties 242 250 format.ISO-8859-1.properties 251 formserr.ISO-8859-1.properties 243 252 jelix.ISO-8859-1.properties 244 253 errors.ISO-8859-1.properties … … 250 259 common.UTF-8.properties 251 260 format.UTF-8.properties 261 formserr.UTF-8.properties 252 262 jelix.UTF-8.properties 253 263 errors.UTF-8.properties … … 260 270 common.ISO-8859-1.properties 261 271 format.ISO-8859-1.properties 272 formserr.ISO-8859-1.properties 262 273 jelix.ISO-8859-1.properties 263 274 errors.ISO-8859-1.properties … … 269 280 common.UTF-8.properties 270 281 format.UTF-8.properties 282 formserr.UTF-8.properties 271 283 jelix.UTF-8.properties 272 284 errors.UTF-8.properties … … 330 342 cd lib/jelix-www/js 331 343 tooltip.js 344 jforms.js 332 345 cd lib/jelix-www/xul 333 346 jxulform.css trunk/build/manifests/jelix-lib.mn
r447 r473 111 111 jForms.class.php 112 112 jFormsBase.class.php 113 jFormsBuilderBase.class.php 113 114 jFormsCompiler.class.php 114 115 jFormsControl.class.php … … 154 155 function.formurlparam.php 155 156 function.diff.php 157 block.form.php 158 block.formcontrols.php 159 function.ctrl_control.php 160 function.ctrl_label.php 161 function.ctrl_value.php 156 162 157 163 cd lib/jelix/tpl/plugins/ltx2pdf … … 222 228 common.ISO-8859-1.properties 223 229 format.ISO-8859-1.properties 230 formserr.ISO-8859-1.properties 224 231 jelix.ISO-8859-1.properties 225 232 errors.ISO-8859-1.properties … … 231 238 common.UTF-8.properties 232 239 format.UTF-8.properties 240 formserr.UTF-8.properties 233 241 jelix.UTF-8.properties 234 242 errors.UTF-8.properties … … 241 249 common.ISO-8859-1.properties 242 250 format.ISO-8859-1.properties 251 formserr.ISO-8859-1.properties 243 252 jelix.ISO-8859-1.properties 244 253 errors.ISO-8859-1.properties … … 250 259 common.UTF-8.properties 251 260 format.UTF-8.properties 261 formserr.UTF-8.properties 252 262 jelix.UTF-8.properties 253 263 errors.UTF-8.properties … … 260 270 common.ISO-8859-1.properties 261 271 format.ISO-8859-1.properties 272 formserr.ISO-8859-1.properties 262 273 jelix.ISO-8859-1.properties 263 274 errors.ISO-8859-1.properties … … 269 280 common.UTF-8.properties 270 281 format.UTF-8.properties 282 formserr.UTF-8.properties 271 283 jelix.UTF-8.properties 272 284 errors.UTF-8.properties … … 330 342 cd lib/jelix-www/js 331 343 tooltip.js 344 jforms.js 332 345 cd lib/jelix-www/xul 333 346 jxulform.css trunk/build/manifests/testapp.mn
r468 r473 109 109 jdb.1_queries.html.php 110 110 jdb.2_queries_with_pdo.html.php 111 jforms.compiler.html.php 111 112 jtpl.expressions_parsing.html_cli.php 112 113 utils.jfilter.html_cli.php trunk/build/manifests/testapp.mn
r468 r473 109 109 jdb.1_queries.html.php 110 110 jdb.2_queries_with_pdo.html.php 111 jforms.compiler.html.php 111 112 jtpl.expressions_parsing.html_cli.php 112 113 utils.jfilter.html_cli.php trunk/lib/jelix-modules/jelix/locales/en_US/formserr.ISO-8859-1.properties
r97 r473 2 2 unknow.tag=(801) unknow tag %1$s (file %2$s) 3 3 attribute.missing=(802) attribut %1$s is missing on %2$s (file %3$s) 4 datatype.unknow=(803) unknow datatype %1$s on %2$s (file %3$s) 4 attribute.not.allowed=(803) attribut %1$s not allowed on %2$s (file %3$s) 5 datatype.unknow=(804) unknow datatype %1$s on %2$s (file %3$s) 6 invalid.xml.file=(805) invalid xml syntax in jforms file (file %s) 5 7 8 js.err.invalid= "%s" field is invalid 9 js.err.required= "%s" field is required 10 trunk/lib/jelix-modules/jelix/locales/en_US/formserr.ISO-8859-1.properties
r97 r473 2 2 unknow.tag=(801) unknow tag %1$s (file %2$s) 3 3 attribute.missing=(802) attribut %1$s is missing on %2$s (file %3$s) 4 datatype.unknow=(803) unknow datatype %1$s on %2$s (file %3$s) 4 attribute.not.allowed=(803) attribut %1$s not allowed on %2$s (file %3$s) 5 datatype.unknow=(804) unknow datatype %1$s on %2$s (file %3$s) 6 invalid.xml.file=(805) invalid xml syntax in jforms file (file %s) 5 7 8 js.err.invalid= "%s" field is invalid 9 js.err.required= "%s" field is required 10 trunk/lib/jelix-modules/jelix/locales/fr_FR/formserr.ISO-8859-1.properties
r97 r473 2 2 unknow.tag=(801) balise %1$s inconnue (fichier %2$s) 3 3 attribute.missing=(802) attribut %1$s manquant sur %2$s (fichier %3$s) 4 datatype.unknow=(803) datatype inconnu %1$s sur %2$s (fichier %3$s) 4 attribute.not.allowed=(803) attribut %1$s non permis sur %2$s (fichier %3$s) 5 datatype.unknow=(804) datatype inconnu %1$s sur %2$s (fichier %3$s) 6 invalid.xml.file=(805) erreur de syntaxe xml dans un fichier jforms (fichier %s) 5 7 8 js.err.invalid=La saisie de "%s" est invalide 9 js.err.required=La saisie de "%s" est obligatoire trunk/lib/jelix-modules/jelix/locales/fr_FR/formserr.ISO-8859-1.properties
r97 r473 2 2 unknow.tag=(801) balise %1$s inconnue (fichier %2$s) 3 3 attribute.missing=(802) attribut %1$s manquant sur %2$s (fichier %3$s) 4 datatype.unknow=(803) datatype inconnu %1$s sur %2$s (fichier %3$s) 4 attribute.not.allowed=(803) attribut %1$s non permis sur %2$s (fichier %3$s) 5 datatype.unknow=(804) datatype inconnu %1$s sur %2$s (fichier %3$s) 6 invalid.xml.file=(805) erreur de syntaxe xml dans un fichier jforms (fichier %s) 5 7 8 js.err.invalid=La saisie de "%s" est invalide 9 js.err.required=La saisie de "%s" est obligatoire trunk/lib/jelix-modules/jelix/locales/fr_FR/formserr.UTF-8.properties
r112 r473 2 2 unknow.tag=(801) balise %1$s inconnue (fichier %2$s) 3 3 attribute.missing=(802) attribut %1$s manquant sur %2$s (fichier %3$s) 4 datatype.unknow=(803) datatype inconnu %1$s sur %2$s (fichier %3$s) 4 attribute.not.allowed=(803) attribut %1$s non permis sur %2$s (fichier %3$s) 5 datatype.unknow=(804) datatype inconnu %1$s sur %2$s (fichier %3$s) 6 invalid.xml.file=(805) erreur de syntaxe xml dans un fichier jforms (fichier %s) 5 7 8 js.err.invalid=La saisie de "%s" est invalide 9 js.err.required=La saisie de "%s" est obligatoire trunk/lib/jelix-modules/jelix/locales/fr_FR/formserr.UTF-8.properties
r112 r473 2 2 unknow.tag=(801) balise %1$s inconnue (fichier %2$s) 3 3 attribute.missing=(802) attribut %1$s manquant sur %2$s (fichier %3$s) 4 datatype.unknow=(803) datatype inconnu %1$s sur %2$s (fichier %3$s) 4 attribute.not.allowed=(803) attribut %1$s non permis sur %2$s (fichier %3$s) 5 datatype.unknow=(804) datatype inconnu %1$s sur %2$s (fichier %3$s) 6 invalid.xml.file=(805) erreur de syntaxe xml dans un fichier jforms (fichier %s) 5 7 8 js.err.invalid=La saisie de "%s" est invalide 9 js.err.required=La saisie de "%s" est obligatoire trunk/lib/jelix/core/jSelector.class.php
r444 r473 658 658 } 659 659 660 public function getCompiledBuild FilePath (){661 return JELIX_APP_TEMP_PATH.'compiled/'.$this->_dirname.$this->module.'~'.$this->resource.'_ htmlbuilder'.$this->_cacheSuffix;;660 public function getCompiledBuilderFilePath ($type){ 661 return JELIX_APP_TEMP_PATH.'compiled/'.$this->_dirname.$this->module.'~'.$this->resource.'_builder_'.$type.$this->_cacheSuffix; 662 662 } 663 663 } trunk/lib/jelix/core/jSelector.class.php
r444 r473 658 658 } 659 659 660 public function getCompiledBuild FilePath (){661 return JELIX_APP_TEMP_PATH.'compiled/'.$this->_dirname.$this->module.'~'.$this->resource.'_ htmlbuilder'.$this->_cacheSuffix;;660 public function getCompiledBuilderFilePath ($type){ 661 return JELIX_APP_TEMP_PATH.'compiled/'.$this->_dirname.$this->module.'~'.$this->resource.'_builder_'.$type.$this->_cacheSuffix; 662 662 } 663 663 } trunk/lib/jelix/docs/ns/jforms-controls.rng
r386 r473 6 6 <attribute name="ref" /> 7 7 <ref name="label" /> 8 < zeroOrMore>8 <!--<zeroOrMore> 9 9 <choice> 10 10 <ref name="help" /> 11 11 <ref name="hint" /> 12 12 <ref name="alert" /> 13 < !--<ref name="actions" />-->13 <ref name="actions" /> 14 14 </choice> 15 </zeroOrMore> 16 </define> 17 15 </zeroOrMore>--> 16 </define> 17 <!-- 18 18 <define name="UI.Common.Attrs"> 19 19 20 </define> 20 </define>--> 21 21 22 22 23 23 <define name="UI.Common.data"> 24 24 <optional><ref name="datatypes" /></optional> 25 <ref name="UI.attr.readonly" /> 26 <optional><attribute name="required"><choice><value>true</value><value>false</value></choice></attribute></optional> 27 </define> 28 29 <define name="UI.attr.readonly"> 25 30 <optional><attribute name="readonly"><choice><value>true</value><value>false</value></choice></attribute></optional> 26 <optional><attribute name="required"><choice><value>true</value><value>false</value></choice></attribute></optional>27 </define> 28 31 </define> 32 33 29 34 <define name="List.UI.Common"> 30 35 <choice> … … 34 39 <ref name="daodatasource" /> 35 40 </choice> 36 <optional> 37 <attribute name="appearance"> 38 <choice> 39 <value>full</value> 40 <value>compact</value> 41 <value>minimal</value> 41 </define> 42 43 <define name="item"> 44 <element name="item"> 45 <optional> 46 <choice> 47 <attribute name="label" /> 48 <attribute name="labellocale" /> 42 49 </choice> 43 </attribute> 44 </optional> 45 </define> 46 50 </optional> 51 <attribute name="value" /> 52 </element> 53 </define> 54 47 55 <define name="datatypes"> 48 < choice>56 <!--<choice>--> 49 57 <ref name="datatype.attr"/> 50 <element name="datatype">58 <!-- <element name="datatype"> 51 59 <ref name="datatype.attr"/> 52 60 <optional><attribute name="length" /></optional> … … 57 65 <optional><attribute name="minvalue" /></optional> 58 66 <empty /> 59 </element> 67 </element>--> 60 68 </define> 61 69 … … 84 92 <attribute name="daovalueproperty" /> 85 93 </define> 86 94 87 95 <!-- Controls --> 88 89 90 96 <define name="controls"> 91 97 <oneOrMore> … … 96 102 <ref name="output" /> 97 103 <ref name="upload" /> 98 <ref name="select1" />99 <ref name="select" />100 104 <ref name="submit" /> 105 <ref name="checkbox" /> 106 <ref name="checkboxes" /> 107 <ref name="listbox" /> 108 <ref name="radiobuttons"/> 109 <ref name="menulist" /> 101 110 <!-- 102 111 <ref name="range" /> … … 112 121 <element name="input"> 113 122 <ref name="UI.Common" /> 123 <ref name="UI.Common.data" /> 114 124 </element> 115 125 </define> … … 131 141 <element name="upload"> 132 142 <ref name="UI.Common" /> 133 <attribute name="mediatype" /> <!-- indique les types autorisés --> 134 </element> 135 </define> 136 143 <!--<attribute name="mediatype" /> --> 144 </element> 145 </define> 146 147 <define name="checkbox"> 148 <element name="checkbox"> 149 <ref name="UI.Common" /> 150 <ref name="UI.attr.readonly" /> 151 </element> 152 </define> 153 154 <!-- 137 155 <define name="select1"> 138 156 <element name="select1"> 139 157 <ref name="UI.Common" /> 140 <ref name="UI.Common.Attrs" /> 141 <ref name="List.UI.Common" /> 142 <!-- saisie libre autorisée --> 143 <!--<optional> 144 <attribute name="selection"> 158 <ref name="List.UI.Common" /> 159 <optional> 160 <attribute name="appearance"> 145 161 <choice> 146 <value>open</value> 147 <value>close</value> 148 </choice> 149 </attribute> 150 </optional>--> 151 </element> 152 </define> 153 154 155 <define name="select"> 162 <value>radiobuttons</value> 163 <value>listbox</value> 164 <value>menulist</value> 165 </choice> 166 </attribute> 167 </optional> 168 </element> 169 </define> 170 --> 171 <define name="radiobuttons"> 172 <element name="radiobuttons"> 173 <ref name="UI.Common" /> 174 <ref name="List.UI.Common" /> 175 </element> 176 </define> 177 178 <define name="listbox"> 179 <element name="radiobuttons"> 180 <ref name="UI.Common" /> 181 <ref name="List.UI.Common" /> 182 <optional> 183 <attribute name="multiple"> 184 <choice><value>true</value><value>false</value></choice> 185 </attribute> 186 </optional> 187 </element> 188 </define> 189 190 <define name="menulist"> 191 <element name="radiobuttons"> 192 <ref name="UI.Common" /> 193 <ref name="List.UI.Common" /> 194 </element> 195 </define> 196 197 <!-- <define name="select"> 156 198 <element name="select"> 157 199 <ref name="UI.Common" /> 158 <ref name="UI.Common.Attrs" /> 159 <ref name="List.UI.Common" /> 160 <!--<optional> 161 <attribute name="selection"> 200 <ref name="List.UI.Common" /> 201 <optional> 202 <attribute name="appearance"> 162 203 <choice> 163 <value>open</value> 164 <value>close</value> 165 </choice> 166 </attribute> 167 </optional>--> 168 </element> 169 </define> 170 204 <value>checkbox</value> 205 <value>listbox</value> 206 </choice> 207 </attribute> 208 </optional> 209 </element> 210 </define>--> 211 212 <define name="checkboxes"> 213 <element name="checkboxes"> 214 <ref name="UI.Common" /> 215 <ref name="List.UI.Common" /> 216 </element> 217 </define> 218 219 171 220 <define name="output"> 172 221 <element name="output"> 173 222 <ref name="UI.Common" /> 174 <ref name="UI.Common.Attrs" /> 175 <optional><attribute name="value"/></optional> 223 <!--<optional><attribute name="value"/></optional>--> 176 224 </element> 177 225 </define> … … 180 228 <element name="submit"> 181 229 <ref name="UI.Common" /> 182 <ref name="UI.Common.Attrs" /> 183 <optional><attribute name="value"/></optional> 184 </element> 185 </define> 186 230 <!--<optional><attribute name="value"/></optional>--> 231 </element> 232 </define> 233 --> 187 234 188 235 <!-- … … 217 264 <define name="label"> 218 265 <element name="label"> 219 <choice> 220 <ref name="message.content" /> 221 <attribute name="locale" /> 222 </choice> 223 </element> 224 </define> 225 266 <ref name="message.content" /> 267 </element> 268 </define> 269 270 <!-- 226 271 <define name="hint"> 227 272 <element name="hint"> … … 241 286 </element> 242 287 </define> 243 244 <define name="item"> 245 <element name="item"> 246 <choice> 247 <ref name="label" /> 248 <attribute name="label" /> 249 <attribute name="labellocale" /> 250 </choice> 251 <attribute name="value" /> 252 </element> 253 </define> 288 --> 289 254 290 255 291 </grammar> trunk/lib/jelix/docs/ns/jforms-controls.rng
r386 r473 6 6 <attribute name="ref" /> 7 7 <ref name="label" /> 8 < zeroOrMore>8 <!--<zeroOrMore> 9 9 <choice> 10 10 <ref name="help" /> 11 11 <ref name="hint" /> 12 12 <ref name="alert" /> 13 < !--<ref name="actions" />-->13 <ref name="actions" /> 14 14 </choice> 15 </zeroOrMore> 16 </define> 17 15 </zeroOrMore>--> 16 </define> 17 <!-- 18 18 <define name="UI.Common.Attrs"> 19 19 20 </define> 20 </define>--> 21 21 22 22 23 23 <define name="UI.Common.data"> 24 24 <optional><ref name="datatypes" /></optional> 25 <ref name="UI.attr.readonly" /> 26 <optional><attribute name="required"><choice><value>true</value><value>false</value></choice></attribute></optional> 27 </define> 28 29 <define name="UI.attr.readonly"> 25 30 <optional><attribute name="readonly"><choice><value>true</value><value>false</value></choice></attribute></optional> 26 <optional><attribute name="required"><choice><value>true</value><value>false</value></choice></attribute></optional>27 </define> 28 31 </define> 32 33 29 34 <define name="List.UI.Common"> 30 35 <choice> … … 34 39 <ref name="daodatasource" /> 35 40 </choice> 36 <optional> 37 <attribute name="appearance"> 38 <choice> 39 <value>full</value> 40 <value>compact</value> 41 <value>minimal</value> 41 </define> 42 43 <define name="item"> 44 <element name="item"> 45 <optional> 46 <choice> 47 <attribute name="label" /> 48 <attribute name="labellocale" /> 42 49 </choice> 43 </attribute> 44 </optional> 45 </define> 46 50 </optional> 51 <attribute name="value" /> 52 </element> 53 </define> 54 47 55 <define name="datatypes"> 48 < choice>56 <!--<choice>--> 49 57 <ref name="datatype.attr"/> 50 <element name="datatype">58 <!-- <element name="datatype"> 51 59 <ref name="datatype.attr"/> 52 60 <optional><attribute name="length" /></optional> … … 57 65 <optional><attribute name="minvalue" /></optional> 58 66 <empty /> 59 </element> 67 </element>--> 60 68 </define> 61 69 … … 84 92 <attribute name="daovalueproperty" /> 85 93 </define> 86 94 87 95 <!-- Controls --> 88 89 90 96 <define name="controls"> 91 97 <oneOrMore> … … 96 102 <ref name="output" /> 97 103 <ref name="upload" /> 98 <ref name="select1" />99 <ref name="select" />100 104 <ref name="submit" /> 105 <ref name="checkbox" /> 106 <ref name="checkboxes" /> 107 <ref name="listbox" /> 108 <ref name="radiobuttons"/> 109 <ref name="menulist" /> 101 110 <!-- 102 111 <ref name="range" /> … … 112 121 <element name="input"> 113 122 <ref name="UI.Common" /> 123 <ref name="UI.Common.data" /> 114 124 </element> 115 125 </define> … … 131 141 <element name="upload"> 132 142 <ref name="UI.Common" /> 133 <attribute name="mediatype" /> <!-- indique les types autorisés --> 134 </element> 135 </define> 136 143 <!--<attribute name="mediatype" /> --> 144 </element> 145 </define> 146 147 <define name="checkbox"> 148 <element name="checkbox"> 149 <ref name="UI.Common" /> 150 <ref name="UI.attr.readonly" /> 151 </element> 152 </define> 153 154 <!-- 137 155 <define name="select1"> 138 156 <element name="select1"> 139 157 <ref name="UI.Common" /> 140 <ref name="UI.Common.Attrs" /> 141 <ref name="List.UI.Common" /> 142 <!-- saisie libre autorisée --> 143 <!--<optional> 144 <attribute name="selection"> 158 <ref name="List.UI.Common" /> 159 <optional> 160 <attribute name="appearance"> 145 161 <choice> 146 <value>open</value> 147 <value>close</value> 148 </choice> 149 </attribute> 150 </optional>--> 151 </element> 152 </define> 153 154 155 <define name="select"> 162 <value>radiobuttons</value> 163 <value>listbox</value> 164 <value>menulist</value> 165 </choice> 166 </attribute> 167 </optional> 168 </element> 169 </define> 170 --> 171 <define name="radiobuttons"> 172 <element name="radiobuttons"> 173 <ref name="UI.Common" /> 174 <ref name="List.UI.Common" /> 175 </element> 176 </define> 177 178 <define name="listbox"> 179 <element name="radiobuttons"> 180 <ref name="UI.Common" /> 181 <ref name="List.UI.Common" /> 182 <optional> 183 <attribute name="multiple"> 184 <choice><value>true</value><value>false</value></choice> 185 </attribute> 186 </optional> 187 </element> 188 </define> 189 190 <define name="menulist"> 191 <element name="radiobuttons"> 192 <ref name="UI.Common" /> 193 <ref name="List.UI.Common" /> 194 </element> 195 </define> 196 197 <!-- <define name="select"> 156 198 <element name="select"> 157 199 <ref name="UI.Common" /> 158 <ref name="UI.Common.Attrs" /> 159 <ref name="List.UI.Common" /> 160 <!--<optional> 161 <attribute name="selection"> 200 <ref name="List.UI.Common" /> 201 <optional> 202 <attribute name="appearance"> 162 203 <choice> 163 <value>open</value> 164 <value>close</value> 165 </choice> 166 </attribute> 167 </optional>--> 168 </element> 169 </define> 170 204 <value>checkbox</value> 205 <value>listbox</value> 206 </choice> 207 </attribute> 208 </optional> 209 </element> 210 </define>--> 211 212 <define name="checkboxes"> 213 <element name="checkboxes"> 214 <ref name="UI.Common" /> 215 <ref name="List.UI.Common" /> 216 </element> 217 </define> 218 219 171 220 <define name="output"> 172 221 <element name="output"> 173 222 <ref name="UI.Common" /> 174 <ref name="UI.Common.Attrs" /> 175 <optional><attribute name="value"/></optional> 223 <!--<optional><attribute name="value"/></optional>--> 176 224 </element> 177 225 </define> … … 180 228 <element name="submit"> 181 229 <ref name="UI.Common" /> 182 <ref name="UI.Common.Attrs" /> 183 <optional><attribute name="value"/></optional> 184 </element> 185 </define> 186 230 <!--<optional><attribute name="value"/></optional>--> 231 </element> 232 </define> 233 --> 187 234 188 235 <!-- … … 217 264 <define name="label"> 218 265 <element name="label"> 219 <choice> 220 <ref name="message.content" /> 221 <attribute name="locale" /> 222 </choice> 223 </element> 224 </define> 225 266 <ref name="message.content" /> 267 </element> 268 </define> 269 270 <!-- 226 271 <define name="hint"> 227 272 <element name="hint"> … … 241 286 </element> 242 287 </define> 243 244 <define name="item"> 245 <element name="item"> 246 <choice> 247 <ref name="label" /> 248 <attribute name="label" /> 249 <attribute name="labellocale" /> 250 </choice> 251 <attribute name="value" /> 252 </element> 253 </define> 288 --> 289 254 290 255 291 </grammar> trunk/lib/jelix/docs/ns/jforms.rng
r386 r473 12 12 </element> 13 13 </start> 14 14 <!-- 15 15 <define name="Common.Attributes"> 16 16 17 17 </define> 18 19 20 18 --> 19 <!-- 21 20 <define name="any"> 22 21 <element> … … 33 32 </element> 34 33 </define> 35
