Changes for page homeopathsSheet

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

From version 3.241
edited by Jip-jan Alunkel
on March 14, 17:03
Change comment: Rollback to version 1.38
To version 3.246
edited by Jip-jan Alunkel
on March 14, 20:32
Change comment: Rollback to version 1.38

Summary

Details

Page properties
Content
... ... @@ -28,6 +28,8 @@
28 28   #end
29 29  #end
30 30  ## The classProperties Map has to be in the order of how you want the form elements to appear in the form.
31 +## 'opener': 1 --> input functions as an interface control element, it 'opens' an additional block of form inputs. Only for select, input or radio inputs.
32 +## 'classless': 1 --> input is not bound to any XClass or XClass property.
31 31  ## 'disabled': 1 --> Will not show up in the form at all.
32 32  ## 'extraAttributes': {"disabled": "disabled"} --> Will show up in the form as a disabled input.
33 33  #set($classProperties = {
... ... @@ -51,8 +51,7 @@
51 51  #if($hasRight)
52 52   <p class="buttons text-align-right">
53 53   <a class="btn btn-primary" title="Edit" href="$doc.getURL('edit','editor=wysiwyg')" role="button" rel="nofollow">
54 - <span class="fa fa-pencil"></span>
55 - <span class="btn-label">Edit content</span>
56 + <span class="btn-label">$services.localization.render("global.multiword.edit_content")</span>
56 56   </a>
57 57   </p>
58 58  #end
... ... @@ -61,13 +61,25 @@
61 61  #if($xcontext.action == "view")
62 62  <h2 class="inline-data-summary">$services.localization.render("homeopaths.inlineDataSummary.sheet_properties")</h2>
63 63  <div id="${subjectTitle}" class="sheet_properties inline-data-summary">
65 + ## Show the address
64 64   #createAddress($theClass 1)
67 + ## Set the XClass properties which you would like to be displayed.
65 65   #set($properties = ['nrOfHomeopaths','certification','certificationFrom'])
69 + ## Show the above chosen properties
66 66   #foreach($property in $properties)
67 67   #if($theDocObj.getProperty($property))
72 + #set($hide = 0)
73 + #if($classProperties["$property"].containsKey('parent'))
74 + #set($parentKey = $classProperties["$property"].parent)
75 + #if($classProperties["$parentKey"].type == "checkbox" && $theDocObj.getProperty($property).value == 0)
76 + #set($hide = 1)
77 + #end
78 + #end
79 + #if($hide == 0)
68 68   <p class="property">
69 - <span class="property-name">$services.localization.render("homeopaths.classproperty.${property}")</span> <span class="property-value">$doc.display($property)</span>
81 + <span class="property-name">$services.localization.render("homeopaths.classproperty.${property}.label")</span> <span class="property-value">$doc.display($property)</span>
70 70   </p>
83 + #end
71 71   #end
72 72   #end
73 73   #if($hasRight)
... ... @@ -219,7 +219,7 @@
219 219   #end
220 220   <div class="formElement">
221 221   #if($withLabel)
222 - <label>$services.localization.render("homeopaths.classproperty.pmAddress")</label>
235 + <label>$services.localization.render("homeopaths.classproperty.pmAddress.label")</label>
223 223   #end
224 224   <address>
225 225   $doc.getTitle()<br />