From 2c757d7db4cb6a7b9655de13206fcc84fb7ce61f Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 14 May 2006 16:47:31 +0000 Subject: first part of ACL and re-skinning work and some other small stuff --- httemplate/elements/tr-select-access_group.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 httemplate/elements/tr-select-access_group.html (limited to 'httemplate/elements/tr-select-access_group.html') 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 ) { %> + + + +<% } else { %> + + + <%= $opt{'label'} || 'Access group' %> + + <%= include( '/elements/select-access_group.html', $groupnum, %opt ) %> + + + +<% } %> -- cgit v1.2.1 From 3ce7691203a7737406bf2d4442f7fd84b81f847e Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 23 Aug 2006 22:25:39 +0000 Subject: Will things ever be the same again? It's the final masonize --- httemplate/elements/tr-select-access_group.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'httemplate/elements/tr-select-access_group.html') diff --git a/httemplate/elements/tr-select-access_group.html b/httemplate/elements/tr-select-access_group.html index 0beec0842..e443ad26a 100644 --- a/httemplate/elements/tr-select-access_group.html +++ b/httemplate/elements/tr-select-access_group.html @@ -1,22 +1,22 @@ -<% - my( $groupnum, %opt ) = @_; +% +% my( $groupnum, %opt ) = @_; +% +% $opt{'access_group'} ||= [ qsearch( 'access_group', {} ) ]; # { disabled=>'' } ) +% +% #warn "***** tr-select-access_group: \n". Dumper(%opt); +% +% if ( scalar(@{ $opt{'access_group'} }) == 0 ) { - $opt{'access_group'} ||= [ qsearch( 'access_group', {} ) ]; # { disabled=>'' } ) - - #warn "***** tr-select-access_group: \n". Dumper(%opt); -%> - -<% if ( scalar(@{ $opt{'access_group'} }) == 0 ) { %> +% } else { -<% } else { %> - <%= $opt{'label'} || 'Access group' %> + <% $opt{'label'} || 'Access group' %> - <%= include( '/elements/select-access_group.html', $groupnum, %opt ) %> + <% include( '/elements/select-access_group.html', $groupnum, %opt ) %> +% } -<% } %> -- cgit v1.2.1