Changes for page homeopathsSheet
Last modified by Jip-jan Alunkel on March 26, 17:31
From version 1.140
edited by Jip-jan Alunkel
on March 08, 18:39
on March 08, 18:39
Change comment:
There is no comment for this version
To version 1.150
edited by Jip-jan Alunkel
on March 08, 18:54
on March 08, 18:54
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
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'}}, 38 - {' address': {'type': 'pmAddress', '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.'}}}, 39 39 {'pmStreet': {'type': 'text'}}, 40 40 {'pmHousenumber': {'type': 'text'}}, 41 41 {'pmPostcode': {'type': 'text'}}, ... ... @@ -98,7 +98,12 @@ 98 98 #if($theDocObj.getProperty($key) || $propertyType == "address") 99 99 #set($value = $theDocObj.getProperty($key).value) 100 100 #if(!$value) 101 -## #set($value = "1") 101 + #if($propertyType == "checkbox" || $propertyType == "radio") 102 + #set($value = "1") 103 +$value 104 + #else 105 + #set($value = "") 106 + #end 102 102 #end 103 103 #set($newElem = { 104 104 "id" : "$key", ... ... @@ -127,7 +127,8 @@ 127 127 #end 128 128 #createFormElement($newElem) 129 129 #if($propertyOpener) 130 - #createExpandStart($newElem $newElem["value"]) 135 +$value 136 + #createExpandStart($newElem $value) 131 131 #end 132 132 #end 133 133 #end