adding description column
[Evergreen.git] / Open-ILS / src / cgi-bin / usr_group-setup.cgi
index 58be72e..cb2fded 100755 (executable)
@@ -21,9 +21,9 @@ my $cgi = new CGI;
 # setup part
 #-------------------------------------------------------------------------------
 
-my %org_cols = ( qw/id GroupID name Name parent ParentGroup/ );
+my %org_cols = ( qw/id GroupID name Name parent ParentGroup description Description/ );
 
-my @col_display_order = ( qw/id name parent/ );
+my @col_display_order = ( qw/id name parent description/ );
 
 if (my $action = $cgi->param('action')) {
        if ( $action eq 'Update' ) {
@@ -188,6 +188,10 @@ if (my $action = $cgi->param('action')) {
                                                $out;
                                        }."</select><input type='hidden' value='$node' name='id'>"),
                        );
+                       print Tr(
+                               th($org_cols{description}),
+                               td("<input type='text' name='description_$node' value=\"". $node->description() ."\">"),
+                       );
 
                        print Tr( "<td colspan='2'><input type='submit' name='action' value='Update'/></td>" );
 
@@ -260,6 +264,10 @@ if (my $action = $cgi->param('action')) {
                                th($org_cols{name}),
                                td("<input type='text' name='name'>"),
                        );
+                       print Tr(
+                               th($org_cols{description}),
+                               td("<input type='text' name='description'>"),
+                       );
                        print Tr( "<td colspan='2'><input type='hidden' value='$node' name='parent'>",
                                  "<input type='submit' name='action' value='Add New'/></td>" );
                        print   "</table></form><hr/>";