X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Faccess_group.html;h=1eed26dfe2f5e305504dcd7f506d91f7f815a32f;hb=e078ca418dcf3c7b92efcd371ce761df3314c369;hp=d7f7667f4c8044923299232ac7ac90f8e92db2ee;hpb=c738a3c4923774b64960aa87fa58bd0751487edb;p=freeside.git
diff --git a/httemplate/edit/access_group.html b/httemplate/edit/access_group.html
index d7f7667f4..1eed26dfe 100644
--- a/httemplate/edit/access_group.html
+++ b/httemplate/edit/access_group.html
@@ -1,46 +1,80 @@
-<%= include( 'elements/edit.html',
- 'name' => 'Internal Access Group',
- 'table' => 'access_group',
- 'labels' => {
- 'groupnum' => 'Group number',
- 'groupname' => 'Group name',
- },
-
- 'viewall_dir' => 'browse',
-
- 'html_bottom' =>
- sub {
- my $access_group = shift;
-
- "
Group virtualized to customers of agents:
".
- ntable("#cccccc",2).
- '
'. $_. ' |
---|
'.
+ include( '/elements/checkboxes-table-name.html',
+ 'source_obj' => $access_group,
+ 'link_table' => 'access_right',
+ 'link_static' => { 'righttype' =>
+ 'FS::access_group',
+ },
+ 'num_col' => 'rightobjnum',
+ 'name_col' => 'rightname',
+ 'names_list' => [ map {
+ my $rn =
+ ref($_) ? $_->{'rightname'} : $_;
+ my %hash = ();
+ $hash{'note'} = ' *'
+ if ref($_) && $_->{'global'};
+ $hash{'desc'} = $_->{'desc'}
+ if ref($_) && $_->{'desc'};
+ [ $rn => \%hash ];
+ }
+ @{ $rights{$_} }
+ ],
+ ).
+ ' '. + ' |