Changes for page homeopathsSheet
Last modified by Jip-jan Alunkel on March 26, 17:31
From version 1.122
edited by Jip-jan Alunkel
on March 08, 18:18
on March 08, 18:18
Change comment:
There is no comment for this version
To version 1.129
edited by Jip-jan Alunkel
on March 08, 18:27
on March 08, 18:27
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -35,8 +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 - 39 -{'pmAddress': 'type': 'text', '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.'}}}, 40 40 {'pmStreet': {'type': 'text'}}, 41 41 {'pmHousenumber': {'type': 'text'}}, 42 42 {'pmPostcode': {'type': 'text'}}, ... ... @@ -96,7 +96,6 @@ 96 96 #set($extraAttributes = $item.extraAttributes) 97 97 #end 98 98 #set($label = $services.localization.render("homeopaths.classproperty.${key}")) 99 - 100 100 #if($theDocObj.getProperty($key)) 101 101 #set($value = $theDocObj.getProperty($key).value) 102 102 #if(!$value) ... ... @@ -112,11 +112,12 @@ 112 112 "data-xobj-fieldname" : "$key", 113 113 "value" : "$value" 114 114 }) 115 - #if($extraAttributes) 113 + #if($extraAttributes.keySet().size()) 116 116 #set($attrMap = $extraAttributes) 117 117 #foreach($attr in $attrMap.keySet()) 118 118 #set($discard = $newElem.put("$attr", $attrMap[$attr])) 119 119 #end 118 +$newElem 120 120 #end 121 121 #if($propertyOpener) 122 122 #set($discard = $newElem.put("data-opener", "true"))