Changes for page homeopathsSheet

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

From version 3.26
edited by Jip-jan Alunkel
on March 09, 01:46
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},
... ... @@ -130,7 +130,7 @@
130 130   #set($extraAttributes = $item.extraAttributes)
131 131   #set($label = $services.localization.render("homeopaths.classproperty.${propertyName}"))
132 132   #if($propertyType == "checkbox" || $propertyType == "radio")
133 - #set($value = "1")
133 + #set($value = "yes")
134 134   #elseif($theDocObj.getProperty($propertyName) || $propertyType == "address") ## 'address' is not a property in the current class
135 135   #set($value = $theDocObj.getProperty($propertyName).value)
136 136   #end
... ... @@ -137,26 +137,16 @@
137 137   #if(!$value)
138 138   #set($value = "")
139 139   #end
140 - #if($item.containsKey("classless"))
141 - #set($newElem = {
142 - "id" : "$propertyName",
143 - "type" : $propertyType,
144 - "required" : "false",
145 - "label" : "$label",
146 - "value" : "$value"
147 - })
148 - #else
149 - #set($newElem = {
150 - "id" : "$propertyName",
151 - "type" : $propertyType,
152 - "required" : "false",
153 - "label" : "$label",
154 - "data-create-xobj" : "true",
155 - "data-xobj-classname" : $theClass,
156 - "data-xobj-fieldname" : "$propertyName",
157 - "value" : "$value"
158 - })
159 - #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 + })
160 160   #if($extraAttributes.keySet().size() > 0)
161 161   #set($attrMap = $extraAttributes)
162 162   #foreach($attr in $attrMap.keySet())