Changes for page homeopathsSheet

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

From version 1.123
edited by Jip-jan Alunkel
on March 08, 18:18
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
... ... @@ -35,10 +35,8 @@
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.'}},
40 -
41 -{'pmStreet': {'type': 'text'}},
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 + {'pmStreet': {'type': 'text'}},
42 42   {'pmHousenumber': {'type': 'text'}},
43 43   {'pmPostcode': {'type': 'text'}},
44 44   {'pmCity': {'type': 'text'}},
... ... @@ -97,8 +97,7 @@
97 97   #set($extraAttributes = $item.extraAttributes)
98 98   #end
99 99   #set($label = $services.localization.render("homeopaths.classproperty.${key}"))
100 -
101 - #if($theDocObj.getProperty($key))
98 + #if($theDocObj.getProperty($key) || $key == "address")
102 102   #set($value = $theDocObj.getProperty($key).value)
103 103   #if(!$value)
104 104   #set($value = "1")
... ... @@ -113,11 +113,12 @@
113 113   "data-xobj-fieldname" : "$key",
114 114   "value" : "$value"
115 115   })
116 - #if($extraAttributes)
113 + #if($extraAttributes.keySet().size() > 0)
117 117   #set($attrMap = $extraAttributes)
118 118   #foreach($attr in $attrMap.keySet())
119 119   #set($discard = $newElem.put("$attr", $attrMap[$attr]))
120 120   #end
118 +$newElem
121 121   #end
122 122   #if($propertyOpener)
123 123   #set($discard = $newElem.put("data-opener", "true"))