Changes for page homeopathsSheet

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

From version 1.119
edited by Jip-jan Alunkel
on March 08, 15:46
Change comment: There is no comment for this version
To version 1.114
edited by Jip-jan Alunkel
on March 08, 15:41
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -36,10 +36,10 @@
36 36  #set($classProperties = [
37 37   {'practiceName': {'type': 'text'}},
38 38   {'pmStreet': {'type': 'text'}},
39 - {'pmHousenumber': {'type': 'text'}},
39 + {'pmHousenumber': {'type': 'text', 'parent': 'certification'}},
40 40   {'pmPostcode': {'type': 'text'}},
41 41   {'pmCity': {'type': 'text'}},
42 - {'pmCounty': {'type': 'text'}},
42 + {'pmCounty': {'type': 'text', 'parent': 'certification'}},
43 43   {'pmState': {'type': 'text'}},
44 44   {'pmCountry': {'type': 'text'}},
45 45   {'certification': {'type': 'checkbox', 'opener': 1}},
... ... @@ -116,8 +116,9 @@
116 116   #if($theDocObj.getProperty($key))
117 117   #set($value = $theDocObj.getProperty($key).value)
118 118   #if(!$value)
119 - #set($value = "1")
119 + #set($value = "")
120 120   #end
121 +## $key : $value<br />
121 121   #set($newElem = {
122 122   "id" : "$key",
123 123   "type" : $propertyType,
... ... @@ -141,13 +141,29 @@
141 141   #set($lastChild = "$key")
142 142   #elseif($lastChild != "")
143 143   #set($lastChild = "")
144 - #createExpandEnd()
145 +## #createExpandEnd()
145 145   #end
146 146   #createFormElement($newElem)
148 + $lastChild
147 147   #if($propertyOpener)
148 - #createExpandStart($newElem $newElem["value"])
150 +## #createExpandStart($newElem $newElem["value"])
149 149   #end
150 150   #end
153 +
154 +#*
155 + #if($theDocObj.getProperty($property))
156 + <p class="property">
157 + #if($theDocObj.getProperty($property).value != "" && $property != "pmHousenumber") ## Difference with added housenumber because of the streetaddress layout.
158 + #if($property == "pmStreet") ## Difference with added housenumber because of the streetaddress layout.
159 + <span class="property-name">$services.localization.render("homeopaths.classproperty.address")</span> <span class="property-value">$doc.display($property) $doc.display("pmHousenumber")</span>
160 + #else
161 + <span class="property-name">$services.localization.render("homeopaths.classproperty.${property}")</span> <span class="property-value">$doc.display($property)</span>
162 + #end
163 + </p>
164 + #end
165 + #end
166 +*#
167 +
151 151  #end
152 152   </div>
153 153   <div class="modal-footer">