Изменения документа homeopathsSheet
Редактировал(а) Jip-jan Alunkel марта 26, 17:31
От версии 3.60
отредактировано Jip-jan Alunkel
на марта 09, 16:14
на марта 09, 16:14
Изменить комментарий:
Rollback to version 1.38
К версии 3.61
отредактировано Jip-jan Alunkel
на марта 09, 16:58
на марта 09, 16:58
Изменить комментарий:
Rollback to version 1.38
Сводка
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -15,7 +15,7 @@ 15 15 {{html wiki="true" clean="false"}} 16 16 #if(!$isGuest) 17 17 <script> 18 - var p agemakerOffspring= "disable";18 + var pmMenuCreate = "disable"; 19 19 </script> 20 20 #end 21 21 #if($hasRight) ... ... @@ -32,16 +32,7 @@ 32 32 #if($xcontext.action == "view") 33 33 <h2 class="inline-data-summary">$services.localization.render("homeopaths.inlineDataSummary.sheet_properties")</h2> 34 34 <div id="${spaceTitle}" class="sheet_properties inline-data-summary"> 35 - #set($xa = { 36 - 'pmLatlong': '', 37 - 'pmCountry': '', 38 - 'pmState': '', 39 - 'pmCounty': '', 40 - 'pmPostcode': '', 41 - 'pmCity': '', 42 - 'pmStreet': '', 43 - 'pmHousenumber': '' 44 - }) 35 + #set($xa = {'pmLatlong': '','pmCountry': '','pmState': '','pmCounty': '','pmPostcode': '','pmCity': '','pmStreet': '','pmHousenumber': ''}) 45 45 #foreach($item in $xa.keySet()) 46 46 #if($theDocObj.getProperty("$item")) 47 47 #set($xa["$item"] = $theDocObj.getProperty("$item").value) ... ... @@ -48,8 +48,6 @@ 48 48 #end 49 49 #end 50 50 ## The classProperties Map has to be in the order of how you want the form elements to appear in the form. 51 - #set($certify = $theDocObj.getProperty("certification").value) ## Dit kan beter ergens anders gebeuren 52 - #set($cert=$numbertool.toNumber($certify).intValue()) 53 53 #set($classProperties = { 54 54 'editAddress': {'type': 'checkbox', 'opener': 1, 'classless': 1, 'checked': 0}, 55 55 'pmAddress': {'type': 'address', 'parent': 'editAddress', 'extraAttributes': {"aria-label": "Input and select the address of your practice", "placeholder": "$services.localization.render('homeopaths.multiword.address.placeholder')", "pmLatlong": "$xa['pmLatlong']", "pmCountry": "$xa['pmCountry']", "pmState": "$xa['pmState']", "pmCounty": "$xa['pmCounty']", "pmPostcode": "$xa['pmPostcode']", "pmCity": "$xa['pmCity']", "pmStreet": "$xa['pmStreet']", "pmHousenumber": "$xa['pmHousenumber']", "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.'}}, ... ... @@ -61,7 +61,7 @@ 61 61 'pmCounty': {'type': 'text', 'disabled': 1}, 62 62 'pmState': {'type': 'text', 'disabled': 1}, 63 63 'pmCountry': {'type': 'text', 'disabled': 1}, 64 - 'certification': {'type': 'checkbox', 'opener': 1 , 'checked': $cert},53 + 'certification': {'type': 'checkbox', 'opener': 1}, 65 65 'certificationFrom': {'type': 'text', 'parent': 'certification'} 66 66 }) 67 67 #createAddress($theClass) ... ... @@ -117,6 +117,15 @@ 117 117 #set($item = $classProperties["$propertyName"]) 118 118 #if($item.containsKey("disabled")) 119 119 #else 109 + #if($propertyType == "checkbox") 110 + #if($item.containsKey("classless")) 111 + #set($value = "1") 112 + #set($item["checked"] = 0) 113 + #else 114 + #set($checkboxPropVal = $theDocObj.getProperty("certification").value) ## Dit kan beter ergens anders gebeuren 115 + #set($item["checked"] = $numbertool.toNumber($checkboxPropVal).intValue()) 116 + #end 117 + #end 120 120 #set($propertyType = $item.type) 121 121 #set($propertyChecked = $item.checked) 122 122 #set($propertyOpener = $item.opener) ... ... @@ -123,8 +123,6 @@ 123 123 #set($propertyParent = $item.parent) 124 124 #set($extraAttributes = $item.extraAttributes) 125 125 #set($label = $services.localization.render("homeopaths.classproperty.${propertyName}")) 126 - #if($propertyType == "checkbox" || $propertyType == "radio") 127 - #set($value = "1") 128 128 #elseif($theDocObj.getProperty($propertyName) || $propertyType == "address") ## 'address' is not a property in the current class 129 129 #set($value = $theDocObj.getProperty($propertyName).value) 130 130 #end