Changes for page homeopathsSheet

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

From version 1.26
edited by Jip-jan Alunkel
on March 07, 19:28
Change comment: There is no comment for this version
To version 1.18
edited by Jip-jan Alunkel
on March 07, 19:03
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -31,7 +31,7 @@
31 31  #if($xcontext.action == "view")
32 32  <div id="${spaceTitle}" class="box sheet_properties">
33 33   <h2>Details</h2>
34 -#set($classProperties = ['practiceName','pmStreet','pmHousenumber','pmPostcode','pmCity','pmCounty','pmState','pmCountry','certification','certificationFrom'])
34 +#set($classProperties = ['practiceName','pmStreet','pmHousenumber','pmPostcode','pmCity','pmCounty','pmState','pmCountry','certification',])
35 35  #foreach($property in $classProperties)
36 36   <p class="property">
37 37   #if($theDocObj.getProperty($property).value != "" && $property != "pmHousenumber")
... ... @@ -52,7 +52,7 @@
52 52   </p>
53 53   #end
54 54  </div>
55 - #if($hasRight)
55 + #if($hasRight) ## Ook de rechts situatie uitlezen en meenemen.
56 56   #set($form_start = {
57 57   "id": "homeopaths_form",
58 58   "product": "homeopath details",
... ... @@ -60,33 +60,17 @@
60 60   "url": "",
61 61   "use_captcha": "false"
62 62   })
63 - #set($thisObj = {})
64 - #foreach($item in $classProperties)
65 - #set($label = $services.localization.render("homeopaths.classproperty.${item}"))
66 - $label
67 - #set($newElem = {
68 - "id": "$item",
69 - "type": "text",
70 - "required" : "false",
71 - "label" : "$label",
72 - "data-create-xobj" : "true",
73 - "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
74 - "data-xobj-fieldname" : "$item",
75 - "value": '$theDocObj.getProperty("$item").value'
76 - })
77 - #set($thisObj["$item"] = $newElem)
78 - #end
79 - #set($practiceName = {
63 + #set($practiceName = {
80 80   "id": "practiceName",
81 81   "type": "text",
82 82   "required" : "false",
83 - "label" : "Practice name",
67 + "label" : "City",
84 84   "data-create-xobj" : "true",
85 85   "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
86 - "data-xobj-fieldname" : "practiceName",
87 - "value": "$doc.getTitle()"
70 + "data-xobj-fieldname" : "pmCity",
71 + "value": "$theDocObj.getProperty('pmCity').value"
88 88   })
89 - #set($city = {
73 + #set($city = {
90 90   "id": "city",
91 91   "type": "text",
92 92   "required" : "false",
... ... @@ -116,10 +116,6 @@
116 116   </button>
117 117   </div>
118 118   <div class="modal-body">
119 - #foreach($obj in $thisObj)
120 - #createFormElement($obj)
121 - #end
122 - #createFormElement($practiceName)
123 123   #createFormElement($city)
124 124   </div>
125 125   <div class="modal-footer">