');
+ if ($constructmode) {
+ $r->print(&Apache::loncommon::select_form('','action_0',
+ ('' => '',
+ 'insertbelow' => 'Insert rule below ')));
+
+ } else {
+ $r->print(' ');
+ }
+ $r->print(' | ');
if ($constructmode) {
$r->print(&Apache::loncommon::select_form
($token->[2]->{'effect'},'effect_0',
@@ -98,7 +199,7 @@ ENDSTARTTABLE
while ($token=$parser->get_token) {
if (($token->[0] eq 'S') && ($token->[1] eq 'accessrule')) {
$rulecounter++;
- $r->print(' |
');
# insert, delete, etc
$r->print($rulecounter.'. ');
if ($constructmode) {
@@ -107,7 +208,7 @@ ENDSTARTTABLE
('' => '',
'delete' => 'Delete this rule',
'insertabove' => 'Insert rule above',
- 'insertbelow' => 'Insert rule below',
+ 'insertbelow' => 'Insert rule below ',
'moveup' => 'Move rule up',
'movedown' => 'Move rule down')));
}
@@ -127,8 +228,9 @@ ENDSTARTTABLE
my $realm=$token->[2]->{'realm'};
$realm=~s/^\W//;
my ($rdom,$rcourse,$rsec)=split(/[\/\_]/,$realm);
-# realm role
+# realm domain
if ($constructmode) {
+ unless ($rdom) { $rdom=$ENV{'user.domain'}; }
$r->print(&Apache::loncommon::select_dom_form($rdom,
'domain_'.$rulecounter));
} else {
@@ -173,7 +275,7 @@ ENDSTARTTABLE
$r->print('');
# ------------------------------------------------------------ End table output
if ($constructmode) {
- $r->print('');
+ $r->print('');
}
$r->print(' |