Changes for page homeopathsSheet

Last modified by Jip-jan Alunkel on March 26, 17:31

From version 1.139
edited by Jip-jan Alunkel
on March 08, 18:36
Change comment: There is no comment for this version
To version 1.132
edited by Jip-jan Alunkel
on March 08, 18:29
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,7 +1,7 @@
1 1  {{include reference="assets.pagemaker.macros"/}}
2 2  
3 3  {{velocity}}
4 -#set($discard = $services.localization.use('document', 'assets.global.translations'))
4 +#set($discard = $services.localization.use('document', 'homeopaths.Code.translations'))
5 5  #set($discard = $services.localization.use('document', 'assets.pagemaker.translations'))
6 6  #set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome', {'minify': false}))
7 7  #set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify': false, 'language': $context.language, 'myParameter': 'value'}))
... ... @@ -35,7 +35,7 @@
35 35  ## The classProperties Map has to be in the order of how you want the form elements to appear in the form.
36 36  #set($classProperties = [
37 37   {'practiceName': {'type': 'text'}},
38 - {'address': {'type': 'address', 'extraAttributes': {"aria-label": "Input and select the address of your practice", "placeholder": "$services.localization.render('homeopaths.multiword.address.placeholder')", "data-auto-first-capital": "true", "data-query-type": "address", "data-query-reference": "", "data-query-list-type": "suggest-select", "data-query-list-header": "$services.localization.render('pagemaker.line.suggest_select_list')", "data-query-list-contents": "value/key", "data-query-list-editable": "false", "data-create-xobj": "true", "data-xobj-classname": "homeopaths.Code.homeopathsClass", "help-block" : 'Input street and number, then select the address of your practice.'}}},
38 + {'pmAddress': {'type': 'address', 'extraAttributes': {"aria-label": "Input and select the address of your practice", "placeholder": "$services.localization.render('homeopaths.multiword.address.placeholder')", "data-auto-first-capital": "true", "data-query-type": "address", "data-query-reference": "", "data-query-list-type": "suggest-select", "data-query-list-header": "$services.localization.render('pagemaker.line.suggest_select_list')", "data-query-list-contents": "value/key", "data-query-list-editable": "false", "data-create-xobj": "true", "data-xobj-classname": "homeopaths.Code.homeopathsClass", "help-block" : 'Input street and number, then select the address of your practice.'}}},
39 39   {'pmStreet': {'type': 'text'}},
40 40   {'pmHousenumber': {'type': 'text'}},
41 41   {'pmPostcode': {'type': 'text'}},
... ... @@ -95,10 +95,10 @@
95 95   #set($extraAttributes = $item.extraAttributes)
96 96   #end
97 97   #set($label = $services.localization.render("homeopaths.classproperty.${key}"))
98 - #if($theDocObj.getProperty($key) || $propertyType == "address")
98 + #if($theDocObj.getProperty($key) || $key == "address")
99 99   #set($value = $theDocObj.getProperty($key).value)
100 100   #if(!$value)
101 -## #set($value = "1")
101 + #set($value = "1")
102 102   #end
103 103   #set($newElem = {
104 104   "id" : "$key",
... ... @@ -115,6 +115,7 @@
115 115   #foreach($attr in $attrMap.keySet())
116 116   #set($discard = $newElem.put("$attr", $attrMap[$attr]))
117 117   #end
118 +$newElem
118 118   #end
119 119   #if($propertyOpener)
120 120   #set($discard = $newElem.put("data-opener", "true"))