Changes for page homeopathsSheet

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

From version 3.29
edited by Jip-jan Alunkel
on March 09, 01:58
Change comment: Rollback to version 1.38
To version 3.24
edited by Jip-jan Alunkel
on March 09, 01:35
Change comment: Rollback to version 1.38

Summary

Details

Page properties
Content
... ... @@ -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', 'extraAttributes': {"disabled": "disabled", "help-block" : 'The name of your practice is the title of this page. If you want to change it, you should edit the content of this page.'}},
38 - 'editAddress': {'type': 'checkbox', 'opener': 1, 'classless': 1},
38 + 'editAddress': {'type': 'checkbox', 'opener': 1},
39 39   'pmAddress': {'type': 'address', 'parent': 'editAddress', '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', 'disabled': 1},
41 41   'pmHousenumber': {'type': 'text', 'disabled': 1},
... ... @@ -137,29 +137,16 @@
137 137   #if(!$value)
138 138   #set($value = "")
139 139   #end
140 - #if($item.containsKey("classless"))
141 - #if($propertyType == "checkbox")
142 - #set($value = "1")
143 - #end
144 - #set($newElem = {
145 - "id" : "$propertyName",
146 - "type" : $propertyType,
147 - "required" : "false",
148 - "label" : "$label",
149 - "value" : "$value"
150 - })
151 - #else
152 - #set($newElem = {
153 - "id" : "$propertyName",
154 - "type" : $propertyType,
155 - "required" : "false",
156 - "label" : "$label",
157 - "data-create-xobj" : "true",
158 - "data-xobj-classname" : $theClass,
159 - "data-xobj-fieldname" : "$propertyName",
160 - "value" : "$value"
161 - })
162 - #end
140 + #set($newElem = {
141 + "id" : "$propertyName",
142 + "type" : $propertyType,
143 + "required" : "false",
144 + "label" : "$label",
145 + "data-create-xobj" : "true",
146 + "data-xobj-classname" : $theClass,
147 + "data-xobj-fieldname" : "$propertyName",
148 + "value" : "$value"
149 + })
163 163   #if($extraAttributes.keySet().size() > 0)
164 164   #set($attrMap = $extraAttributes)
165 165   #foreach($attr in $attrMap.keySet())