From 2bd5c55412a619684a0ad8f37a74f3e5b0ed19fe Mon Sep 17 00:00:00 2001 From: sb Date: Wed, 6 May 2009 18:02:35 +0000 Subject: [PATCH] bug 2913 : Sort of fixed. At least, I've fixed the wrong bit - the button on the form is now no longer there, but the link still reads 'edit'. However, this is a whole lot better. --- transforms/adl2views.xslt | 34 ++++++++++++++++++++++------- transforms/permissions-include.xslt | 30 +++++++++++++++++++++++-- 2 files changed, 54 insertions(+), 10 deletions(-) diff --git a/transforms/adl2views.xslt b/transforms/adl2views.xslt index 0aae075..bb85074 100755 --- a/transforms/adl2views.xslt +++ b/transforms/adl2views.xslt @@ -15,8 +15,8 @@ Transform ADL into velocity view templates $Author: sb $ - $Revision: 1.55 $ - $Date: 2009-05-06 17:25:55 $ + $Revision: 1.56 $ + $Date: 2009-05-06 18:02:35 $ --> @@ -442,12 +442,30 @@ - - #if ( ${SecurityHelper.InGroup( "")} || false) - - #end - + #if ( $instance) + #if ( $instance.IsNew) + #if ( ${SecurityHelper.InGroup( "")} || false) + + #end + #else + #if ( ${SecurityHelper.InGroup( "")} || false) + + #end + #end + #else + + #if ( ${SecurityHelper.InGroup( "")} || false) + + #end + #end + @@ -1789,7 +1807,7 @@ Auto generated Velocity macro for , generated from ADL. - Generated using adl2views.xslt + Generated using adl2views.xslt Generation parameters were: area-name: default-url: diff --git a/transforms/permissions-include.xslt b/transforms/permissions-include.xslt index 7b8fd97..3205222 100755 --- a/transforms/permissions-include.xslt +++ b/transforms/permissions-include.xslt @@ -15,8 +15,8 @@ Utility templates to find permissions on various things $Author: sb $ - $Revision: 1.4 $ - $Date: 2009-04-30 08:56:33 $ + $Revision: 1.5 $ + $Date: 2009-05-06 18:02:35 $ --> @@ -166,6 +166,32 @@ + + + + + + + + + + + none + + + + + + + + + + + + + + +