From 52e190dfc3a45e29d55c3876bd69bd2c705d2dad Mon Sep 17 00:00:00 2001
From: "Kyle J. McKay"
Date: Tue, 14 May 2013 23:09:53 -0700
Subject: [PATCH] Enable adding more than one user at a time
---
Girocco/CGI.pm | 5 +++--
cgi/editproj.cgi | 22 +++++++++++++++++++---
2 files changed, 22 insertions(+), 5 deletions(-)
diff --git a/Girocco/CGI.pm b/Girocco/CGI.pm
index d417e66..b7baa27 100644
--- a/Girocco/CGI.pm
+++ b/Girocco/CGI.pm
@@ -18,10 +18,11 @@ BEGIN {
sub new {
my $class = shift;
- my ($heading, $section) = @_;
+ my ($heading, $section, $extrahead) = @_;
my $gcgi = {};
$section ||= 'administration';
+ $extrahead ||= '';
$gcgi->{cgi} = CGI->new;
@@ -43,7 +44,7 @@ sub new {
-
+$extrahead
diff --git a/cgi/editproj.cgi b/cgi/editproj.cgi
index ff37dc7..ac8414e 100755
--- a/cgi/editproj.cgi
+++ b/cgi/editproj.cgi
@@ -11,7 +11,23 @@ use Girocco::Config;
use Girocco::Project;
use Girocco::Util;
-my $gcgi = Girocco::CGI->new('Project Settings');
+my $script = <<'EOT';
+
+EOT
+my $gcgi = Girocco::CGI->new('Project Settings', undef, $script);
my $cgi = $gcgi->cgi;
my $name = $cgi->param('name');
@@ -61,8 +77,7 @@ Just delete it.
EOT
} else {
print <
+Use the + button to enable access for more than a single user at a time.
EOT
}
@@ -111,6 +126,7 @@ EOT
}
print <Add user:
+
EOT
--
2.11.4.GIT