|
From: <bri...@us...> - 2008-12-05 18:49:27
|
Revision: 904
http://equanda.svn.sourceforge.net/equanda/?rev=904&view=rev
Author: brian_reynolds
Date: 2008-12-05 18:49:22 +0000 (Fri, 05 Dec 2008)
Log Message:
-----------
Add group level list, summary and print boxes.
Improve checkbox javascript.
Modified Paths:
--------------
trunk/equanda-generate/src/main/velocity/t5gui/pages/TableAuthConfig.java.vm
Modified: trunk/equanda-generate/src/main/velocity/t5gui/pages/TableAuthConfig.java.vm
===================================================================
--- trunk/equanda-generate/src/main/velocity/t5gui/pages/TableAuthConfig.java.vm 2008-12-05 15:21:00 UTC (rev 903)
+++ trunk/equanda-generate/src/main/velocity/t5gui/pages/TableAuthConfig.java.vm 2008-12-05 18:49:22 UTC (rev 904)
@@ -150,11 +150,14 @@
#end
-## R+W+L checkboxes for every group Groups
+## RWLSP checkboxes for every group
#foreach( $page in $table.Pages )
#foreach( $group in $page.Groups)
#set ($readBox="${group.Name}_groupReadCheck")
#set ($writeBox="${group.Name}_groupWriteCheck")
+#set ($listBox="${group.Name}_groupListCheck")
+#set ($sumBox="${group.Name}_groupSumCheck")
+#set ($printBox="${group.Name}_groupPrintCheck")
@Persist
private boolean $readBox;
public boolean get$readBox(){ return $readBox; }
@@ -164,11 +167,26 @@
private boolean $writeBox;
public boolean get$writeBox(){ return $writeBox; }
public void set$writeBox( boolean val ){ this.$writeBox = val; }
+
+ @Persist
+ private boolean $listBox;
+ public boolean get$listBox(){ return $listBox; }
+ public void set$listBox( boolean val ){ this.$listBox = val; }
+
+ @Persist
+ private boolean $sumBox;
+ public boolean get$sumBox(){ return $sumBox; }
+ public void set$sumBox( boolean val ){ this.$sumBox = val; }
+
+ @Persist
+ private boolean $printBox;
+ public boolean get$printBox(){ return $printBox; }
+ public void set$printBox( boolean val ){ this.$printBox = val; }
#end
#end
-## R/W/L/P/S checkboxes for every field
+## RWLSP checkboxes for every field
#foreach( $field in $table.Fields)
#set ($readBox="${field.Name}_readCheck")
#set ($writeBox="${field.Name}_writeCheck")
@@ -358,7 +376,38 @@
if( aacProvider.isDisplayPrint( "field.${table.Name}.${field.Name}" ) )
set${pagePrintBox}( true );
#end
+
+#foreach( $group in $page.Groups)
+#foreach( $field in $group.Fields)
+#set ($readBox="${field.Name}_readCheck")
+#set ($writeBox="${field.Name}_writeCheck")
+#set ($listBox="${field.Name}_listCheck")
+#set ($summaryBox="${field.Name}_sumCheck")
+#set ($printBox="${field.Name}_printCheck")
+ set${readBox}( aacProvider.isReadable( "field.${table.Name}.${field.Name}" ) );
+ set${writeBox}( aacProvider.isWritable( "field.${table.Name}.${field.Name}" ) );
+ set${listBox}( aacProvider.isDisplayList( "field.${table.Name}.${field.Name}" ) );
+ set${summaryBox}( aacProvider.isDisplaySummary( "field.${table.Name}.${field.Name}" ) );
+ set${printBox}( aacProvider.isDisplayPrint( "field.${table.Name}.${field.Name}" ) );
+#set ($groupReadBox="${group.Name}_groupReadCheck")
+#set ($groupWriteBox="${group.Name}_groupWriteCheck")
+#set ($groupListBox="${group.Name}_groupListCheck")
+#set ($groupSumBox="${group.Name}_groupSumCheck")
+#set ($groupPrintBox="${group.Name}_groupPrintCheck")
+ if( aacProvider.isReadable( "field.${table.Name}.${field.Name}" ) )
+ set${groupReadBox}( true );
+ if( aacProvider.isWritable( "field.${table.Name}.${field.Name}" ) )
+ set${groupWriteBox}( true );
+ if( aacProvider.isDisplayList( "field.${table.Name}.${field.Name}" ) )
+ set${groupListBox}( true );
+ if( aacProvider.isDisplaySummary( "field.${table.Name}.${field.Name}" ) )
+ set${groupSumBox}( true );
+ if( aacProvider.isDisplayPrint( "field.${table.Name}.${field.Name}" ) )
+ set${groupPrintBox}( true );
+#end
#end
+#end
+
#foreach( $select in $table.SelectsNotHidden)
#set ($selectBox="${select.Name}_selectCheck")
set${selectBox}( aacProvider.isReadable( "select.${table.Name}.${select.Name}" ) );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|