summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-select-access_group.html
diff options
context:
space:
mode:
authorivan <ivan>2006-05-14 16:47:31 +0000
committerivan <ivan>2006-05-14 16:47:31 +0000
commit2c757d7db4cb6a7b9655de13206fcc84fb7ce61f (patch)
treef01088bb60d49ee0dd3dd796d57abe219c321f7b /httemplate/elements/tr-select-access_group.html
parentc46235292c6bf929615ac28fc48c1d5609ce4590 (diff)
first part of ACL and re-skinning work and some other small stuff
Diffstat (limited to 'httemplate/elements/tr-select-access_group.html')
-rw-r--r--httemplate/elements/tr-select-access_group.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/httemplate/elements/tr-select-access_group.html b/httemplate/elements/tr-select-access_group.html
new file mode 100644
index 000000000..0beec0842
--- /dev/null
+++ b/httemplate/elements/tr-select-access_group.html
@@ -0,0 +1,22 @@
+<%
+ my( $groupnum, %opt ) = @_;
+
+ $opt{'access_group'} ||= [ qsearch( 'access_group', {} ) ]; # { disabled=>'' } )
+
+ #warn "***** tr-select-access_group: \n". Dumper(%opt);
+%>
+
+<% if ( scalar(@{ $opt{'access_group'} }) == 0 ) { %>
+
+ <INPUT TYPE="hidden" NAME="groupnum" VALUE="">
+
+<% } else { %>
+
+ <TR>
+ <TD ALIGN="right"><%= $opt{'label'} || 'Access group' %></TD>
+ <TD>
+ <%= include( '/elements/select-access_group.html', $groupnum, %opt ) %>
+ </TD>
+ </TR>
+
+<% } %>