X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Faccess_group.html;h=d447512c25e78a285ef59e404fbeafde07544e13;hp=11b8df7bc1b558f5a9abc13500d37e9753d8ae79;hb=3ce7691203a7737406bf2d4442f7fd84b81f847e;hpb=2c757d7db4cb6a7b9655de13206fcc84fb7ce61f diff --git a/httemplate/edit/access_group.html b/httemplate/edit/access_group.html index 11b8df7bc..d447512c2 100644 --- a/httemplate/edit/access_group.html +++ b/httemplate/edit/access_group.html @@ -1,10 +1,46 @@ -<%= include( 'elements/edit.html', +<% 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.html', + 'source_obj' => $access_group, + 'link_table' => 'access_groupagent', + 'target_table' => 'agent', + 'name_col' => 'agent', + 'target_link' => $p.'edit/agent.cgi?', + 'disable-able' => 1, + ). + ''. + + "
Group rights:
". + 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' => [ FS::AccessRight->rights() ], + ). + '' + + ; + }, ) %>