Changes for page homeopathsSheet

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

From version 3.248
edited by Jip-jan Alunkel
on March 14, 20:35
Change comment: Rollback to version 1.38
To version 3.239
edited by Jip-jan Alunkel
on March 13, 23:59
Change comment: Rollback to version 1.38

Summary

Details

Page properties
Content
... ... @@ -28,8 +28,6 @@
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.
33 33  ## 'disabled': 1 --> Will not show up in the form at all.
34 34  ## 'extraAttributes': {"disabled": "disabled"} --> Will show up in the form as a disabled input.
35 35  #set($classProperties = {
... ... @@ -49,11 +49,12 @@
49 49  })
50 50  $doc.getTranslatedDocument().getContent()
51 51  
52 -{{html wiki="true" clean="false"}}
50 +{{html clean="false"}}
53 53  #if($hasRight)
54 54   <p class="buttons text-align-right">
55 55   <a class="btn btn-primary" title="Edit" href="$doc.getURL('edit','editor=wysiwyg')" role="button" rel="nofollow">
56 - <span class="btn-label">$services.localization.render("global.multiword.edit_content")</span>
54 + <span class="fa fa-pencil"></span>
55 + <span class="btn-label">Edit content</span>
57 57   </a>
58 58   </p>
59 59  #end
... ... @@ -62,26 +62,13 @@
62 62  #if($xcontext.action == "view")
63 63  <h2 class="inline-data-summary">$services.localization.render("homeopaths.inlineDataSummary.sheet_properties")</h2>
64 64  <div id="${subjectTitle}" class="sheet_properties inline-data-summary">
65 - ## Show the address
66 66   #createAddress($theClass 1)
67 - ## Set the XClass properties which you would like to be displayed.
68 68   #set($properties = ['nrOfHomeopaths','certification','certificationFrom'])
69 - ## Show the above chosen properties
70 70   #foreach($property in $properties)
71 71   #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 -ha
77 - #set($hide = 1)
78 - #end
79 - #end
80 - #if($hide == 0)
81 81   <p class="property">
82 82   <span class="property-name">$services.localization.render("homeopaths.classproperty.${property}.label")</span> <span class="property-value">$doc.display($property)</span>
83 83   </p>
84 - #end
85 85   #end
86 86   #end
87 87   #if($hasRight)