Changes for page test

Last modified by Jip-jan Alunkel on March 13, 19:02

From version 113.62
edited by Jip-jan Alunkel
on March 13, 14:11
Change comment: Updated class property
To version 114.6
edited by Jip-jan Alunkel
on March 13, 14:18
Change comment: Updated class property

Summary

Details

Page properties
Content
... ... @@ -1,9 +1,28 @@
1 1  
2 2  {{velocity}}
3 -{{html wiki="true"}}
3 +{{html}}
4 4  ## afwijkende attributen
5 5  ## "help-block": '',
6 6  ## "data-decimals": ''
7 +#set($elementDataObj = {
8 + "id" : "main_complaint",
9 + "type" : "text",
10 + "required" : "true",
11 + "label" : "Main complaint",
12 + "aria-label" : "Enter the main complaint",
13 + "placeholder" : "$services.localization.render('cases.wordgroup.main_complaint.placeholder')",
14 + "data-pattern" : "^[a-zA-ZÀ-ÖÙ-öù-ÿĀ-žḀ-ỿ]+[a-zA-ZÀ-ÖÙ-öù-ÿĀ-žḀ-ỿ0-9- ]*$",
15 + "data-error-response-type" : "use_label_definite_1",
16 + "data-auto-first-capital" : "true",
17 + "data-query-type" : "XWQL",
18 + "data-query-reference" : "assets.pagemaker.XWQL.matchTitle",
19 + "data-query-scope" : "cases",
20 + "data-query-list-type" : "suggest-negate",
21 + "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_negate_list')",
22 + "data-query-list-contents" : "value",
23 + "data-create-page" : "true",
24 + "help-block" : 'This will be used as the title of your case. The first character must be a letter. For example:<br />- "Otitis Media in 13 year old boy" or<br />- "Cataract in 72 year old paraplegic woman"'
25 +})
7 7   #set($attrMap = {
8 8   "aria-label": '',
9 9   "date-min": '',
... ... @@ -37,13 +37,14 @@
37 37   })
38 38   #foreach($attr in $attrMap.keySet())
39 39   #if($elementDataObj.containsKey("$!attr"))
40 - $attrMap[$attr] = '$attr = "$elementDataObj[$attr]"'
59 + #set($attrMap["$attr"] = '${attr} = "$elementDataObj[$attr]"')
60 + $attrMap[$attr]<br />
41 41   #end
42 42   #end
63 +##$attrMap
43 43  
44 44  
45 45  
46 -
47 47  ##set($drDoc = $xwiki.getDocument("cases.back.Asdfasdf asdff"))
48 48  #*
49 49  #foreach($item in [0..200])