Changes for page homeopathsSheet

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

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