Changes for page homeopathsSheet

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

From version 1.25
edited by Jip-jan Alunkel
on March 07, 19:27
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,32 +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 - #set($newElem = {
67 - "id": "$item",
68 - "type": "text",
69 - "required" : "false",
70 - "label" : "$label",
71 - "data-create-xobj" : "true",
72 - "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
73 - "data-xobj-fieldname" : "$item",
74 - "value": '$theDocObj.getProperty("$item").value'
75 - })
76 - #set($thisObj["$item"] = $newElem)
77 - #end
78 - #set($practiceName = {
63 + #set($practiceName = {
79 79   "id": "practiceName",
80 80   "type": "text",
81 81   "required" : "false",
82 - "label" : "Practice name",
67 + "label" : "City",
83 83   "data-create-xobj" : "true",
84 84   "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
85 - "data-xobj-fieldname" : "practiceName",
86 - "value": "$doc.getTitle()"
70 + "data-xobj-fieldname" : "pmCity",
71 + "value": "$theDocObj.getProperty('pmCity').value"
87 87   })
88 - #set($city = {
73 + #set($city = {
89 89   "id": "city",
90 90   "type": "text",
91 91   "required" : "false",
... ... @@ -115,10 +115,6 @@
115 115   </button>
116 116   </div>
117 117   <div class="modal-body">
118 - #foreach($obj in $thisObj)
119 - #createFormElement($obj)
120 - #end
121 - #createFormElement($practiceName)
122 122   #createFormElement($city)
123 123   </div>
124 124   <div class="modal-footer">