Changes for page homeopathsSheet
Last modified by Jip-jan Alunkel on March 26, 17:31
From version 3.262
edited by Jip-jan Alunkel
on March 16, 00:25
on March 16, 00:25
Change comment:
Rollback to version 1.38
To version 3.263
edited by Jip-jan Alunkel
on March 16, 01:57
on March 16, 01:57
Change comment:
Rollback to version 1.38
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -8,6 +8,7 @@ 8 8 #set($subjectTitle = $doc.getFullName().split('\.')[0]) 9 9 ## Find the correct class name. This is if the class name starts with the name of the top parent space (referenced here by $subjectTitle). 10 10 ## Specify a class name below to override this. 11 +$subjectTitle 11 11 #set($theClass = "") 12 12 #set($docObjects = $doc.getxWikiObjects()) 13 13 #foreach($docObjectKey in $docObjects.keySet()) ... ... @@ -50,6 +50,7 @@ 50 50 $doc.getTranslatedDocument().getContent() 51 51 52 52 {{html wiki="true" clean="false"}} 54 +## Show the content edit button 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"> ... ... @@ -59,6 +59,8 @@ 59 59 #end 60 60 #if(!$isGuest)<p><script>var pmMenuCreate = "disable";</script></p>#end 61 61 <div class="clearfix"></div> 64 + 65 +## Show properties from the classProperties Map. 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"> ... ... @@ -69,7 +69,6 @@ 69 69 ## Show the above chosen properties 70 70 #foreach($property in $properties) 71 71 #set($hide = 0) 72 -## #if($theDocObj.getProperty($property).value) 73 73 ## All form elements that are hidden in the form should also be hidden in the page. 74 74 #if($classProperties["$property"].containsKey('parent')) 75 75 #set($parentKey = $classProperties["$property"].parent) ... ... @@ -77,11 +77,9 @@ 77 77 #set($hide = 1) 78 78 #end 79 79 #end 80 -## #else 81 -## #set($hide = 1) 82 -## #end 83 83 #if($hide == 0) 84 84 <p class="property"> 85 + ## Show value only if there is a value to show, otherwise set to 'unknown'. 85 85 <span class="property-name">$services.localization.render("homeopaths.classproperty.${property}.label")</span>#if($theDocObj.getProperty($property).value && $theDocObj.getProperty($property).value != "") <span class="property-value">$doc.display($property)</span>#else <span class="property-value ghost">$services.localization.render("global.word.unknown")</span>#end 86 86 </p> 87 87 #end ... ... @@ -94,6 +94,8 @@ 94 94 </p> 95 95 #end 96 96 </div> 98 + 99 +## Show the properties edit form in a modal. 97 97 #if($hasRight) 98 98 #set($form_start = { 99 99 "id": "homeopaths_form", ... ... @@ -205,7 +205,7 @@ 205 205 #end 206 206 </div> 207 207 <div class="modal-footer"> 208 - <button type="button" class="btn btn-secondary" data-dismiss="modal">$services.localization.render("close")</button> 211 + <button type="button" class="btn btn-secondary" title="$services.localization.render("close")" data-dismiss="modal">$services.localization.render("close")</button> 209 209 #createSubmit($submit) 210 210 </div> 211 211 #createFormEnd($form_end)