Changes for page homeopathsSheet
Last modified by Jip-jan Alunkel on March 26, 17:31
From version 1.60
edited by Jip-jan Alunkel
on March 08, 00:51
on March 08, 00:51
Change comment:
There is no comment for this version
To version 1.67
edited by Jip-jan Alunkel
on March 08, 01:18
on March 08, 01:18
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -33,16 +33,16 @@ 33 33 <div id="${spaceTitle}" class="box sheet_properties"> 34 34 <h2>Details</h2> 35 35 #set($classProperties = { 36 - 'practiceName': {'type': ' string', 'opener': 0},37 - 'pmStreet': {'type': ' string', 'opener': 0},38 - 'pmHousenumber': {'type': ' string', 'opener': 0, 'parent': 'certification'},39 - 'pmPostcode': {'type': ' string', 'opener': 0},40 - 'pmCity': {'type': ' string', 'opener': 0},41 - 'pmCounty': {'type': ' string', 'opener': 0, 'parent': 'certification'},42 - 'pmState': {'type': ' string', 'opener': 0},43 - 'pmCountry': {'type': ' string', 'opener': 0},44 - 'certification': {'type': 'bo ol', 'opener': 1},45 - 'certificationFrom': {'type': ' string', 'opener': 0, 'parent': 'certification'}36 + 'practiceName': {'type': 'text', 'opener': 0}, 37 + 'pmStreet': {'type': 'text', 'opener': 0}, 38 + 'pmHousenumber': {'type': 'text', 'opener': 0, 'parent': 'certification'}, 39 + 'pmPostcode': {'type': 'text', 'opener': 0}, 40 + 'pmCity': {'type': 'text', 'opener': 0}, 41 + 'pmCounty': {'type': 'text', 'opener': 0, 'parent': 'certification'}, 42 + 'pmState': {'type': 'text', 'opener': 0}, 43 + 'pmCountry': {'type': 'text', 'opener': 0}, 44 + 'certification': {'type': 'checkbox', 'opener': 1}, 45 + 'certificationFrom': {'type': 'text', 'opener': 0, 'parent': 'certification'} 46 46 }) 47 47 #foreach($property in $classProperties.keySet()) 48 48 #if($theDocObj.getProperty($property)) ... ... @@ -76,6 +76,7 @@ 76 76 }) 77 77 #set($thisObj = {}) 78 78 #set($children = {}) 79 +$classProperties 79 79 #foreach($item in $classProperties.keySet()) 80 80 #if($classProperties[$item].parent) 81 81 #set($parentID = $classProperties[$item].parent) ... ... @@ -83,9 +83,11 @@ 83 83 #set($discard = $children.put("$parentID", {})) 84 84 #end 85 85 #set($discard = $children["$parentID"].put($item, $classProperties[$item])) 87 + #set($discard = $classProperties.delete("$item")) 86 86 #end 87 87 #end 88 - #createElementObjects($classProperties) 90 +$classProperties 91 +#createElementObjects($classProperties) 89 89 #set($submit = { 90 90 "id" : "edit_details", 91 91 "button-text" : "Save changes", ... ... @@ -109,8 +109,6 @@ 109 109 #foreach($obj in $thisObj) 110 110 #createFormElement($obj) 111 111 #end 112 -## #createFormElement($practiceName) 113 -## #createFormElement($city) 114 114 </div> 115 115 <div class="modal-footer"> 116 116 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>