Changes for page homeopathsSheet

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

From version 3.246
edited by Jip-jan Alunkel
on March 14, 20:32
Change comment: Rollback to version 1.38
To version 3.237
edited by Jip-jan Alunkel
on March 13, 23:57
Change comment: Rollback to version 1.38

Summary

Details

Page properties
Content
... ... @@ -11,7 +11,7 @@
11 11  #set($theClass = "")
12 12  #set($docObjects = $doc.getxWikiObjects())
13 13  #foreach($docObjectKey in $docObjects.keySet())
14 - #if($docObjectKey.indexOf($subjectTitle) == 0)
14 + #if($docObjectKey.indexOf($subjectTitle) == 0) ##
15 15   #if($theClass == "")
16 16   #set($theClass = $docObjectKey)
17 17   #end
... ... @@ -27,9 +27,8 @@
27 27   #set($xa["$item"] = $theDocObj.getProperty("$item").value)
28 28   #end
29 29  #end
30 +{{html wiki="true" clean="false"}}
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,11 @@
49 49  })
50 50  $doc.getTranslatedDocument().getContent()
51 51  
52 -{{html wiki="true" 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,25 +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 - #set($hide = 1)
77 - #end
78 - #end
79 - #if($hide == 0)
80 80   <p class="property">
81 81   <span class="property-name">$services.localization.render("homeopaths.classproperty.${property}.label")</span> <span class="property-value">$doc.display($property)</span>
82 82   </p>
83 - #end
84 84   #end
85 85   #end
86 86   #if($hasRight)