Changes for page homeopathsSheet

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

From version 1.71
edited by Jip-jan Alunkel
on March 08, 14:14
Change comment: There is no comment for this version
To version 1.82
edited by Jip-jan Alunkel
on March 08, 14:32
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -34,19 +34,27 @@
34 34   <h2>Details</h2>
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 - {'practiceName': {'type': 'text', 'opener': 0}},
38 - {'pmStreet': {'type': 'text', 'opener': 0}},
39 - {'pmHousenumber': {'type': 'text', 'opener': 0, 'parent': 'certification'}},
40 - {'pmPostcode': {'type': 'text', 'opener': 0}},
41 - {'pmCity': {'type': 'text', 'opener': 0}},
42 - {'pmCounty': {'type': 'text', 'opener': 0, 'parent': 'certification'}},
43 - {'pmState': {'type': 'text', 'opener': 0}},
44 - {'pmCountry': {'type': 'text', 'opener': 0}},
37 + {'practiceName': {'type': 'text'}},
38 + {'pmStreet': {'type': 'text'}},
39 + {'pmHousenumber': {'type': 'text', 'parent': 'certification'}},
40 + {'pmPostcode': {'type': 'text'}},
41 + {'pmCity': {'type': 'text'}},
42 + {'pmCounty': {'type': 'text', 'parent': 'certification'}},
43 + {'pmState': {'type': 'text'}},
44 + {'pmCountry': {'type': 'text'}},
45 45   {'certification': {'type': 'checkbox', 'opener': 1}},
46 - {'certificationFrom': {'type': 'text', 'opener': 0, 'parent': 'certification'}}
46 + {'certificationFrom': {'type': 'text', 'parent': 'certification'}}
47 47  ])
48 48  #foreach($property in $classProperties)
49 - $property.keySet()[0]
49 + #foreach($item in $property.values())
50 + #set($propertyType = $item.type)
51 + #set($propertyOpener = $item.opener)
52 + #set($propertyParent = $item.parent)
53 + #end
54 +$propertyType
55 +#if($propertyOpener) is property opener
56 +#if($propertyParent) has property parent: $propertyParent
57 +<br />
50 50  #*
51 51   #if($theDocObj.getProperty($property))
52 52   <p class="property">