Wijzigen voor document homeopathsSheet

Laatst gewijzigd door Jip-jan Alunkel op maart 26, 17:31

Van versie 3.245
gewijzigd door Jip-jan Alunkel
op maart 14, 18:07
Opmerking bij wijziging: Rollback to version 1.38
Naar versie 3.246
gewijzigd door Jip-jan Alunkel
op maart 14, 20:32
Opmerking bij wijziging: Rollback to version 1.38

Samenvatting

Details

Paginaeigenschappen
Inhoud
... ... @@ -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,7 +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="btn-label">Edit content</span>
56 + <span class="btn-label">$services.localization.render("global.multiword.edit_content")</span>
55 55   </a>
56 56   </p>
57 57  #end
... ... @@ -60,13 +60,25 @@
60 60  #if($xcontext.action == "view")
61 61  <h2 class="inline-data-summary">$services.localization.render("homeopaths.inlineDataSummary.sheet_properties")</h2>
62 62  <div id="${subjectTitle}" class="sheet_properties inline-data-summary">
65 + ## Show the address
63 63   #createAddress($theClass 1)
67 + ## Set the XClass properties which you would like to be displayed.
64 64   #set($properties = ['nrOfHomeopaths','certification','certificationFrom'])
69 + ## Show the above chosen properties
65 65   #foreach($property in $properties)
66 66   #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)
67 67   <p class="property">
68 68   <span class="property-name">$services.localization.render("homeopaths.classproperty.${property}.label")</span> <span class="property-value">$doc.display($property)</span>
69 69   </p>
83 + #end
70 70   #end
71 71   #end
72 72   #if($hasRight)