Changes for page homeopathsSheet

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

From version 1.15
edited by Jip-jan Alunkel
on March 07, 18:10
Change comment: There is no comment for this version
To version 1.22
edited by Jip-jan Alunkel
on March 07, 19:10
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -31,13 +31,15 @@
31 31  #if($xcontext.action == "view")
32 32  <div id="${spaceTitle}" class="box sheet_properties">
33 33   <h2>Details</h2>
34 -#set($classProperties = ['pmPractice','pmStreet','pmHousenumber','pmPostcode','pmCity','pmCounty','pmState','pmCountry'])
34 +#set($classProperties = ['practiceName','pmStreet','pmHousenumber','pmPostcode','pmCity','pmCounty','pmState','pmCountry','certification','certificationFrom'])
35 35  #foreach($property in $classProperties)
36 - #if($theDocObj.getProperty($property).value != "")
37 -## #if($property == 'pmStreet')
38 -
39 39   <p class="property">
40 - <span class="property-name">$services.localization.render("homeopaths.classproperty.#if($property == 'pmStreet')address#{else}${property}")</span> <span class="property-value">$doc.display($property)</span>
37 + #if($theDocObj.getProperty($property).value != "" && $property != "pmHousenumber")
38 + #if($property == "pmStreet")
39 + <span class="property-name">$services.localization.render("homeopaths.classproperty.address")</span> <span class="property-value">$doc.display($property) $doc.display("pmHousenumber")</span>
40 + #else
41 + <span class="property-name">$services.localization.render("homeopaths.classproperty.${property}")</span> <span class="property-value">$doc.display($property)</span>
42 + #end
41 41   </p>
42 42   #end
43 43  #end
... ... @@ -58,6 +58,16 @@
58 58   "url": "",
59 59   "use_captcha": "false"
60 60   })
63 + #set($practiceName = {
64 + "id": "practiceName",
65 + "type": "text",
66 + "required" : "false",
67 + "label" : "Practice name",
68 + "data-create-xobj" : "true",
69 + "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
70 + "data-xobj-fieldname" : "practiceName",
71 + "value": "$doc.getTitle()"
72 + })
61 61   #set($city = {
62 62   "id": "city",
63 63   "type": "text",
... ... @@ -88,6 +88,7 @@
88 88   </button>
89 89   </div>
90 90   <div class="modal-body">
103 + #createFormElement($practiceName)
91 91   #createFormElement($city)
92 92   </div>
93 93   <div class="modal-footer">