| #------------------------------------------------------------------------ |
| # Compiled template generated by the Template Toolkit version 2.15 |
| #------------------------------------------------------------------------ |
| |
| Template::Document->new({ |
| METADATA => { |
| 'modtime' => '1138010588', |
| 'name' => 'admin/groups/change.html.tmpl', |
| }, |
| BLOCK => sub { |
| my $context = shift || die "template sub called without context\n"; |
| my $stash = $context->stash; |
| my $output = ''; |
| my $error; |
| |
| eval { BLOCK: { |
| $output .= "\n"; |
| $output .= "\n\n"; |
| $output .= "\n"; |
| #line 43 "template/en/custom/admin/groups/change.html.tmpl" |
| if (($stash->get('action') eq 1)) { |
| #line 38 "template/en/custom/admin/groups/change.html.tmpl" |
| $stash->set('title', 'Confirm: Remove All Explicit Members?'); |
| } |
| elsif (($stash->get('action') eq 2)) { |
| #line 40 "template/en/custom/admin/groups/change.html.tmpl" |
| $stash->set('title', 'Confirm: Remove Explicit Members in the Regular Expression?'); |
| } |
| else { |
| #line 42 "template/en/custom/admin/groups/change.html.tmpl" |
| $stash->set('title', 'Updating group hierarchy'); |
| } |
| |
| $output .= "\n"; |
| #line 45 "template/en/custom/admin/groups/change.html.tmpl" |
| $output .= $context->process('global/header.html.tmpl'); |
| $output .= "\n\n<p>\n Checking....\n"; |
| #line 52 "template/en/custom/admin/groups/change.html.tmpl" |
| if ($stash->get('changes')) { |
| $output .= "\n changed."; |
| } |
| |
| $output .= "\n</p>\n "; |
| #line 109 "template/en/custom/admin/groups/change.html.tmpl" |
| if (($stash->get('action') eq 1) || ($stash->get('action') eq 2)) { |
| #line 58 "template/en/custom/admin/groups/change.html.tmpl" |
| if ($stash->get('changes')) { |
| $output .= "\n <p>Group updated, please confirm removal:</p>"; |
| } |
| |
| $output .= "\n"; |
| #line 70 "template/en/custom/admin/groups/change.html.tmpl" |
| if (($stash->get('action') eq 1)) { |
| $output .= "\n <p>This option will remove all explicitly defined users"; |
| } |
| elsif ($stash->get('regexp')) { |
| $output .= "\n <p>This option will remove all users included in the regular expression:"; |
| #line 64 "template/en/custom/admin/groups/change.html.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('html') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get('regexp'); |
| |
| &$filter($output); |
| }; |
| |
| } |
| else { |
| $output .= "\n <p>\n <b>There is no regular expression defined.</b>\n No users will be removed.\n </p>"; |
| } |
| |
| $output .= "\n "; |
| #line 94 "template/en/custom/admin/groups/change.html.tmpl" |
| if ((($stash->get('action') eq 1) || $stash->get('regexp'))) { |
| $output .= "\n from group "; |
| #line 73 "template/en/custom/admin/groups/change.html.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('html') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get('name'); |
| |
| &$filter($output); |
| }; |
| |
| $output .= ".</p>\n \n <p>\n Generally, you will only need to do this when upgrading groups\n created with "; |
| #line 77 "template/en/custom/admin/groups/change.html.tmpl" |
| $output .= $stash->get(['terms', 0, 'Bugzilla', 0]); |
| $output .= " versions 2.16 and prior. Use\n this option with <b>extreme care</b> and consult the documentation\n for further information.\n </p>\n \n <form method=\"post\" action=\"editgroups.cgi\">\n <input type=\"hidden\" name=\"group\" value=\""; |
| #line 83 "template/en/custom/admin/groups/change.html.tmpl" |
| |
| # FILTER |
| $output .= do { |
| my $output = ''; |
| my $filter = $context->filter('html') |
| || $context->throw($context->error); |
| |
| $output .= $stash->get('gid'); |
| |
| &$filter($output); |
| }; |
| |
| $output .= "\">\n "; |
| #line 89 "template/en/custom/admin/groups/change.html.tmpl" |
| if (($stash->get('action') eq 2)) { |
| $output .= "\n <input type=\"hidden\" name=\"action\" value=\"remove_all_regexp\">"; |
| } |
| else { |
| $output .= "\n <input type=\"hidden\" name=\"action\" value=\"remove_all\">"; |
| } |
| |
| $output .= "\n \n <input name=\"confirm\" type=\"submit\" value=\"Confirm\">\n <p>Or <a href=\"editgroups.cgi\">return to the Edit Groups page</a>.</p>\n </form>"; |
| } |
| |
| } |
| else { |
| $output .= "\n "; |
| $output .= "\n"; |
| #line 106 "template/en/custom/admin/groups/change.html.tmpl" |
| if ($stash->get('changes')) { |
| $output .= "\n <p>Done.</p>"; |
| } |
| else { |
| $output .= "\n <p>\n You didn't change anything! If you really meant it, hit the <b>Back</b>\n button and try again.\n </p>"; |
| } |
| |
| $output .= "\n \n <p>Back to the <a href=\"editgroups.cgi\">group list</a>.</p>"; |
| } |
| |
| $output .= "\n"; |
| #line 111 "template/en/custom/admin/groups/change.html.tmpl" |
| $output .= $context->process('global/footer.html.tmpl'); |
| $output .= " \n"; |
| } }; |
| if ($@) { |
| $error = $context->catch($@, \$output); |
| die $error unless $error->type eq 'return'; |
| } |
| |
| return $output; |
| }, |
| DEFBLOCKS => { |
| |
| }, |
| }); |