Changes for page homeopathsSheet

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

From version 1.66
edited by Jip-jan Alunkel
on March 08, 01:07
Change comment: There is no comment for this version
To version 1.60
edited by Jip-jan Alunkel
on March 08, 00:51
Change comment: There is no comment for this version

Summary

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': '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'}
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': 'bool', 'opener': 1},
45 + 'certificationFrom': {'type': 'string', 'opener': 0, 'parent': 'certification'}
46 46  })
47 47  #foreach($property in $classProperties.keySet())
48 48   #if($theDocObj.getProperty($property))
... ... @@ -76,7 +76,6 @@
76 76   })
77 77   #set($thisObj = {})
78 78   #set($children = {})
79 -$classProperties
80 80   #foreach($item in $classProperties.keySet())
81 81   #if($classProperties[$item].parent)
82 82   #set($parentID = $classProperties[$item].parent)
... ... @@ -84,11 +84,9 @@
84 84   #set($discard = $children.put("$parentID", {}))
85 85   #end
86 86   #set($discard = $children["$parentID"].put($item, $classProperties[$item]))
87 - #set($discard = $classProperties.remove("$item"))
88 88   #end
89 89   #end
90 -$classProperties
91 -#createElementObjects($classProperties)
88 + #createElementObjects($classProperties)
92 92   #set($submit = {
93 93   "id" : "edit_details",
94 94   "button-text" : "Save changes",
... ... @@ -112,6 +112,8 @@
112 112   #foreach($obj in $thisObj)
113 113   #createFormElement($obj)
114 114   #end
112 +## #createFormElement($practiceName)
113 +## #createFormElement($city)
115 115   </div>
116 116   <div class="modal-footer">
117 117   <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>