Changes for page homeopathsSheet
Last modified by Jip-jan Alunkel on March 26, 17:31
From version 1.8
edited by Jip-jan Alunkel
on March 07, 13:37
on March 07, 13:37
Change comment:
There is no comment for this version
To version 1.5
edited by Jip-jan Alunkel
on March 06, 19:02
on March 06, 19:02
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -9,16 +9,18 @@ 9 9 #set($isInline = $xcontext.action == 'edit' && $request.get('editor') == 'inline') 10 10 ## Create object (important for sheet binding, do not remove) 11 11 #set($theDocObj = $doc.getObject("homeopaths.Code.homeopathsClass", true)) 12 -#set($hasRight = !$isGuest&& ($theDocObj.getProperty('user').value== $context.getUser()|| $hasAdmin))12 +#set($hasRight = $theDocObj.getProperty('user').value) 13 13 $theDoc.getContent() 14 14 15 +$hasRight 16 + 15 15 {{html wiki="true" clean="false"}} 16 -#if(!$isGuest) 18 + #if(!$isGuest) 17 17 <script> 18 18 var pagemakerOffspring = "disable"; 19 19 </script> 20 -#end 21 -#if($ hasRight)22 + #end 23 + #if(!$isGuest) 22 22 <p class="buttons text-align-right"> 23 23 <a class="btn btn-primary" title="Edit" href="$doc.getURL("edit")?editor=wysiwyg" role="button" rel="nofollow"> 24 24 <span class="fa fa-pencil"></span> ... ... @@ -25,7 +25,7 @@ 25 25 <span class="btn-label">Edit contents</span> 26 26 </a> 27 27 </p> 28 -#end 30 + #end 29 29 #set($spaceReference = $services.model.resolveDocument('', 'default', $doc.documentReference.lastSpaceReference).parent) 30 30 #set($spaceTitle = $spaceReference.getName()) 31 31 <div class="clearfix"></div> ... ... @@ -40,7 +40,7 @@ 40 40 Countries over the world have different rules regarding the neccessity of a medical degree to practice homeopathy. 41 41 </p> 42 42 </div> 43 - #if($ hasRight)45 + #if(!$isGuest) 44 44 <p class="buttons text-align-right"> 45 45 <a class="btn btn-secondary" title="Edit" data-toggle="modal" data-target="#detailsModal" role="button" rel="nofollow"> 46 46 <span class="btn-label">Edit details</span> ... ... @@ -48,7 +48,7 @@ 48 48 </p> 49 49 #end 50 50 </div> 51 - #if($ hasRight) ## Ook de rechts situatie uitlezen en meenemen.53 + #if(!$isGuest) ## Ook de rechts situatie uitlezen en meenemen. 52 52 #set($form_start = { 53 53 "id": "homeopaths_form", 54 54 "product": "homeopath details", ... ... @@ -97,8 +97,6 @@ 97 97 </div> 98 98 </div> 99 99 #end 100 -#else 101 - This page can not be viewed in inline mode. 102 102 #end 103 103 {{/html}} 104 104 {{/velocity}}