X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-access_group.html;h=e443ad26a78afa922e43ea54cca850224b387c0e;hp=0beec08421ba2f26e2580f3575e7c23f200085f4;hb=3ce7691203a7737406bf2d4442f7fd84b81f847e;hpb=15e561850b61b10a92a46d8f3e316d53d4970087 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 ) %> +% } -<% } %>