Changes for page homeopathsSheet

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

From version 1.126
edited by Jip-jan Alunkel
on March 08, 18:23
Change comment: There is no comment for this version
To version 1.119
edited by Jip-jan Alunkel
on March 08, 15:46
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -35,7 +35,6 @@
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 - {'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'}},
... ... @@ -63,6 +63,24 @@
63 63   "url": "",
64 64   "use_captcha": "false"
65 65   })
65 +#* #set($thisObj = {})
66 + #set($children = {})
67 + #set($nonChildren = {})
68 + #foreach($item in $classProperties.keySet())
69 + #if($classProperties[$item].opener == 1)
70 + #set($parentID = $classProperties[$item].parent)
71 + #if(!$children[$parentID])
72 + #set($discard = $children.put("$parentID", {}))
73 + #end
74 + #set($discard = $children["$parentID"].put($item, $classProperties[$item]))
75 + #elseif($classProperties[$item].parent)## ???? Ws fout
76 + #else
77 + #set($discard = $nonChildren.put($item, $classProperties[$item]))
78 + #end
79 + #end
80 +## #createElementObjects($nonChildren)
81 +*#
82 +
66 66   #set($submit = {
67 67   "id" : "edit_details",
68 68   "button-text" : "Save changes",
... ... @@ -88,7 +88,6 @@
88 88   #foreach($item in $property.keySet())
89 89   #set($key = $item)
90 90   #end
91 -$key
92 92   #foreach($item in $property.values())
93 93   #set($propertyType = $item.type)
94 94   #set($propertyOpener = $item.opener)
... ... @@ -147,7 +147,7 @@
147 147   This page can not be viewed in inline mode.
148 148  #end
149 149  
150 -#macro(createElementObjects $properties)
166 +#macro(createElementObject $properties)
151 151   #foreach($item in $properties.keySet())
152 152   #set($label = $services.localization.render("homeopaths.classproperty.${item}"))
153 153   #if($theDocObj.getProperty($item))