Changes for page homeopathsSheet
Last modified by Jip-jan Alunkel on March 26, 17:31
From version 1.20
edited by Jip-jan Alunkel
on March 07, 19:06
on March 07, 19:06
Change comment:
There is no comment for this version
To version 1.16
edited by Jip-jan Alunkel
on March 07, 18:13
on March 07, 18:13
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -31,15 +31,16 @@ 31 31 #if($xcontext.action == "view") 32 32 <div id="${spaceTitle}" class="box sheet_properties"> 33 33 <h2>Details</h2> 34 -#set($classProperties = ['practice Name','pmStreet','pmHousenumber','pmPostcode','pmCity','pmCounty','pmState','pmCountry','certification','certificationFrom'])34 +#set($classProperties = ['pmPractice','pmStreet','pmHousenumber','pmPostcode','pmCity','pmCounty','pmState','pmCountry']) 35 35 #foreach($property in $classProperties) 36 - <p class="property"> 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> 36 + #if($theDocObj.getProperty($property).value != "") 37 + #if($property == 'pmStreet') 38 + #set($translateKey = "homeopaths.classproperty.address") 40 40 #else 41 - <span class="property-name">$services.localization.render("homeopaths.classproperty.${property}")</span> <span class="property-value">$doc.display($property)</span>40 + #set($translateKey = "homeopaths.classproperty.${property}") 42 42 #end 42 + <p class="property"> 43 + <span class="property-name">$services.localization.render($translateKey)</span> <span class="property-value">$doc.display($property)</span> 43 43 </p> 44 44 #end 45 45 #end ... ... @@ -60,16 +60,6 @@ 60 60 "url": "", 61 61 "use_captcha": "false" 62 62 }) 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": "$theDocObj.getProperty('practiceName').value" 72 - }) 73 73 #set($city = { 74 74 "id": "city", 75 75 "type": "text",