Changes for page homeopathsSheet

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

From version 1.11
edited by Jip-jan Alunkel
on March 07, 17:48
Change comment: There is no comment for this version
To version 1.16
edited by Jip-jan Alunkel
on March 07, 18:13
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -31,29 +31,19 @@
31 31  #if($xcontext.action == "view")
32 32  <div id="${spaceTitle}" class="box sheet_properties">
33 33   <h2>Details</h2>
34 -#set($classProperties = ['pmCountry','pmState','pmCounty','pmPostcode','pmCity','pmStreet','pmHousenumber'])
35 -#*
36 -{
37 - 'pmCountry': '$services.localization.render("homeopaths.pmCountry")',
38 - 'pmState': '$services.localization.render("homeopaths.classproperty.pmState")',
39 - 'pmCounty': '$services.localization.render("homeopaths.classproperty.pmCounty")',
40 - 'pmPostcode': '$services.localization.render("homeopaths.classproperty.pmPostcode")',
41 - 'pmCity': '$services.localization.render("homeopaths.classproperty.pmCity")',
42 - 'pmStreet': '$services.localization.render("homeopaths.classproperty.pmStreet")',
43 - 'pmHousenumber': '$services.localization.render("homeopaths.classproperty.pmHousenumber")'
44 -})
45 -*#
34 +#set($classProperties = ['pmPractice','pmStreet','pmHousenumber','pmPostcode','pmCity','pmCounty','pmState','pmCountry'])
46 46  #foreach($property in $classProperties)
47 - $services.localization.render("homeopaths.classproperty.${property}")
48 -#end
49 -## <div id="non_free_occupation">
36 + #if($theDocObj.getProperty($property).value != "")
37 + #if($property == 'pmStreet')
38 + #set($translateKey = "homeopaths.classproperty.address")
39 + #else
40 + #set($translateKey = "homeopaths.classproperty.${property}")
41 + #end
50 50   <p class="property">
51 - <span class="property-name">Medical degree mandatory</span> <span class="property-value">$doc.display('non_free_occupation')</span>
43 + <span class="property-name">$services.localization.render($translateKey)</span> <span class="property-value">$doc.display($property)</span>
52 52   </p>
53 - <p class="help-block">
54 - Countries over the world have different rules regarding the neccessity of a medical degree to practice homeopathy.
55 - </p>
56 -## </div>
45 + #end
46 +#end
57 57  
58 58   #if($hasRight)
59 59   <p class="buttons text-align-right">