Subversion Repositories VORC

Rev

Rev 112 | Rev 167 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
56 bgadell 1
#!/usr/bin/perl
2
 
3
# Redirect error messages to a log of my choosing. (it's annoying to filter for errors in the shared env)
4
my $error_log_path = $ENV{SERVER_NAME} eq "volunteers.rollercon.com" ? "/home3/rollerco/logs/" : "/tmp/";
5
close STDERR;
6
open STDERR, '>>', $error_log_path.'vorc_error.log' or warn "Failed to open redirected logfile ($0): $!";
7
#warn "Redirecting errors to ${error_log_path}vorc_error.log";
8
 
9
use strict;
10
use cPanelUserConfig;
11
use WebDB;
12
use HTML::Tiny;
13
use RollerCon;
14
use CGI qw/param header start_html url/;
15
my $h = HTML::Tiny->new( mode => 'html' );
16
 
17
my %F;
18
 
105 bgadell 19
my $cookie_string = authenticate (RollerCon::USER) || die;
56 bgadell 20
our ($EML, $PWD, $LVL) = split /&/, $cookie_string;
21
my $user = getUser ($EML);
22
$user->{department} = convertDepartments $user->{department};
23
my $DepartmentNames = getDepartments ();
24
my $username = $user->{derby_name};
25
my $RCid = $user->{RCid};
26
my $RCAUTH_cookie = CGI::Cookie->new(-name=>'RCAUTH',-value=>"$cookie_string",-expires=>"+30m");
27
my $YEAR = 1900 + (localtime)[5];
28
 
29
 
30
my $pageTitle = "View MVP Class";
31
my $homeURL = "/schedule/";
32
my $DBTable = "class";
33
my %FIELDS = (
34
	id          => [qw(ClassID        5    auto        static )],
35
	name        => [qw(ClassName     10    text        required )],
36
	coach       => [qw(Coach         15    select      required )],
37
	date        => [qw(Date          20    date        required )],
38
	location    => [qw(Location      25    text        required )],
65 bgadell 39
	level       => [qw(Level         27    text        required )],
56 bgadell 40
	start_time  => [qw(Start         30    time        required )],
41
	end_time    => [qw(End           35    time        required )],
42
	capacity    => [qw(Capacity      40    number      required )],
43
	note        => [qw(Notes         45    textarea       )],
44
);
45
 
46
 
47
my %fieldDisplayName = map  { $_ => $FIELDS{$_}->[0]   } keys %FIELDS;
48
my %fieldType        = map  { $_ => $FIELDS{$_}->[2]   } keys %FIELDS;
49
my @requiredFields   = sort fieldOrder grep { defined $FIELDS{$_}->[3] } keys %FIELDS;
50
my @DBFields   = sort fieldOrder grep { $fieldType{$_} =~ /^(text|select|number|switch|date|time|auto)/ } keys %FIELDS;
51
my @ROFields   = sort fieldOrder grep { $fieldType{$_} =~ /^(readonly)/ } keys %FIELDS;
52
my $primary = $DBFields[0];
53
 
54
sub fieldOrder {
55
	$FIELDS{$a}->[1] <=> $FIELDS{$b}->[1];
56
}
57
 
58
sub saveForm {
59
  error ("ERROR: Only SysAdmins can change games.") unless $LVL >= RollerCon::ADMIN;
60
 
61
  my $FTS = shift;
62
 
63
  my $dbh = WebDB::connect ();
64
  if ($FTS->{$DBFields[0]} eq "NEW") {
65
    $dbh->do (
66
      "INSERT INTO $DBTable
91 bgadell 67
      (name,coach,date,location,level,start_time,end_time,capacity,note)
56 bgadell 68
      VALUES(?,?,?,?,?,?,?,?)",
69
    	undef,
91 bgadell 70
    	$FTS->{name}, $FTS->{coach}, $FTS->{date}, $FTS->{location}, $FTS->{level}, $FTS->{start_time}, $FTS->{end_time}, $FTS->{capacity}, $FTS->{note}
56 bgadell 71
    );
72
  	($FTS->{id}) = $dbh-> selectrow_array ("select max(id) from $DBTable where name = ? and date = ? and location = ? and start_time = ? and end_time = ?", undef, $FTS->{name}, $FTS->{date}, $FTS->{location}, $FTS->{start_time}, $FTS->{end_time});
73
    logit ($RCid, "$username created new class ($FTS->{id}, $FTS->{name}, $FTS->{date}, $FTS->{location}, $FTS->{start_time}, $FTS->{end_time}, $FTS->{capacity})");
74
 
75
    # Each class has a volunteer shift for the coach.
76
    $dbh->do (
77
      "INSERT INTO shift
78
      (dept,role,type,date,location,start_time,end_time,doubletime,note,assignee_id)
79
      VALUES (?,?,?,?,?,?,?,?,?,?)",
80
      undef,
81
      "COA", "Coach", "selected", $FTS->{date}, $FTS->{location}, $FTS->{start_time}, $FTS->{end_time}, 1, $FTS->{name}, $FTS->{coach}
82
    );
83
  } else {
84
    $dbh->do (
85
      "UPDATE $DBTable
91 bgadell 86
      SET name=?, coach=?, date=?, location=?, level=?, start_time=?, end_time=?, capacity=?, note=?
56 bgadell 87
      WHERE id = ?",
88
      undef,
91 bgadell 89
      $FTS->{name}, $FTS->{coach}, $FTS->{date}, $FTS->{location}, $FTS->{level}, $FTS->{start_time}, $FTS->{end_time}, $FTS->{capacity}, $FTS->{note}, $FTS->{id}
56 bgadell 90
    );
91 bgadell 91
    logit ($RCid, "$username updated class ($FTS->{id}, $FTS->{name}, $FTS->{date}, $FTS->{location}, $FTS->{level}, $FTS->{start_time}, $FTS->{end_time}, $FTS->{capacity})");
56 bgadell 92
 
93
    # Update the volunteer shift for the coach too.
74 bgadell 94
    if ($FTS->{classshiftid}) {
95
      $dbh->do (
96
        "UPDATE shift
97
        SET date=?, location=?, start_time=?, end_time=?, note=?, assignee_id=?
98
        WHERE id = ?",
99
        undef,
100
        $FTS->{date}, $FTS->{location}, $FTS->{start_time}, $FTS->{end_time}, $FTS->{name}, $FTS->{coach}, $FTS->{classshiftid}
101
      );
102
    } else {
103
      $dbh->do (
104
        "INSERT INTO shift
105
        (dept,role,type,date,location,start_time,end_time,doubletime,note,assignee_id)
106
        VALUES (?,?,?,?,?,?,?,?,?,?)",
107
        undef,
108
        "COA", "Coach", "selected", $FTS->{date}, $FTS->{location}, $FTS->{start_time}, $FTS->{end_time}, 1, $FTS->{name}, $FTS->{coach}
109
      );
110
    }
56 bgadell 111
	}
112
 
113
	$dbh->disconnect ();	 # stored into database successfully.
114
	return $FTS->{id};
115
}
116
 
117
sub delete_item {
118
  error ("ERROR: Only SysAdmins can change games.") unless $LVL >= RollerCon::ADMIN;
119
 
120
  my $X = shift;
121
  my $dbh = WebDB::connect ();
122
 
123
  ## First get the shift ID of the volunteer shift of the coach (and then delete it)
124
  my ($classshiftid) = $dbh->selectrow_array (
125
    "select shift.id from shift
126
    join class where shift.date = class.date and shift.start_time = class.start_time and shift.location = class.location and dept = ? and class.id = ?",
127
    undef, "COA", $X->{$primary}
128
  );
129
  $dbh->do ("delete from shift where id = ?", undef, $classshiftid);
130
 
131
  $dbh->do ("delete from $DBTable where $primary = ?", undef, $X->{$primary});
132
  ## If we're deleting a class, we need to also delete all of the sign-ups
133
  ##    TBD: Maybe email all of the attendees that their class is being deleted first?
134
  $dbh->do ("delete from assignment where Gid = ? and role like ?", undef, $X->{$primary}, "CLA".'%');
135
 
136
  $dbh->disconnect ();
137
  logit ($RCid, "$username deleted Class ($X->{$primary})");
138
  print "Class Deleted: $X->{$primary}", $h->br;
139
  print &formField ("Cancel", "Back", "POSTSAVE");
140
}
141
 
142
 
143
sub select_coach {
144
	my $selection = shift // "";
145
 
146
  return $h->select ({ name=>"coach" }, [ $h->option (""), fetchDerbyNameWithRCid ("COA", $selection) ]);
147
};
148
 
149
 
150
print header (),
151
			start_html (-title => $pageTitle, -style => {'src' => "/style.css"} );
152
 
153
print $h->div ({ class => "accent pageheader" }, [
154
  $h->h1 ($pageTitle),
155
  $h->div ({ class=>"sp0" }, [
156
    $h->div ({ class=>"spLeft" }, [
157
    ]),
158
    $h->div ({ class=>"spRight" }, [
159
      $h->input ({ type=>"button", value=>"Home", onClick=>"window.location.href='$homeURL'" }),
160
    ]),
161
  ]),
162
]);
163
 
164
my $choice = param ("choice") // "";
165
if ($choice eq "Save") {
166
	process_form ();
167
} elsif (defined (param ($primary))) {
168
  my $thing = param ($primary);
169
  if ($choice eq "Delete") {
170
    delete_item ({ $primary => $thing });
171
  } else {
172
	  display_form ({ $primary => $thing }, $choice);
173
	}
174
} else {
175
	display_form (); # blank form
176
}
177
 
178
print $h->close ("html");
179
 
180
sub display_form  {
181
  my $R = shift;
182
  my $view = shift // "";
183
	my $actionbutton;
105 bgadell 184
  my $coachRCid;
56 bgadell 185
 
186
  $view = "View" unless $LVL >= RollerCon::ADMIN;
187
 
188
  if ($view eq "POSTSAVE" and $R->{$primary} eq "NEW") {
189
      print &formField ("Cancel", "Back", "POSTSAVE");
190
      return;
191
  }
192
 
193
  if ($R) {
194
    # we're dealing with an existing thing.  Get the current values out of the DB...
195
    my $dbh = WebDB::connect ();
196
 
197
	  @F{@DBFields} = $dbh->selectrow_array (
198
                     "SELECT ". join (", ", @DBFields) ." FROM $DBTable WHERE $primary = ?",
199
                      undef, $R->{$primary});
200
 
201
	  my ($classshiftid) = $dbh->selectrow_array (
202
	    "select id from shift where dept = ? and date = ? and start_time = ? and location = ?",
203
	    undef, "COA", $F{date}, $F{start_time}, $F{location}
204
	  );
205
	  $dbh->disconnect ();
206
 
207
	  # did we find a record?
208
	  error ("Cannot find a database entry for Class with id: '$R->{$primary}'") unless defined $F{$DBFields[0]};
209
 
210
    # If the DB returns a null value, HTML::Tiny doesn't like it, so make sure nulls are converted to empty strings.
211
    map { $F{$_} = "" unless $F{$_} } @DBFields;
212
 
213
    if ($view eq "Update") {
214
      # We'd like to update that thing, give the user a form...
215
      print $h->p ("Updating Class: $R->{$primary}...");
216
 
217
      foreach (@DBFields) {
218
        $F{$_} = formField ($_, $F{$_});
219
      }
220
      $F{$DBFields[0]} .= $h->input ({ type=>"hidden", name=>$DBFields[0],   value=> $F{$DBFields[0]} });
221
      $F{$DBFields[0]} .= $h->input ({ type=>"hidden", name=>"classshiftid", value=> $classshiftid    });
222
 
223
      $actionbutton = formField ("choice", "Save");
224
      $actionbutton .= formField ("Cancel");
225
    } elsif ($view eq "Copy") {
226
      # We'd like to copy that thing, give the user a form...
227
      print $h->p ("Copying Class: $R->{$primary}...");
228
 
229
      foreach (@DBFields) {
230
        $F{$_} = formField ($_, $F{$_});
231
      }
232
      $F{$DBFields[0]} = "COPY".$h->input ({ type=>"hidden", name=>$DBFields[0], value=> "NEW" });
233
 
234
      $actionbutton = formField ("choice", "Save");
235
      $actionbutton .= formField ("Cancel");
236
    } else {
237
      # We're just looking at it...
238
      print $h->p ("Viewing Class: $R->{$primary}...");
239
      $F{$DBFields[0]} .= $h->input ({ type=>"hidden", name=>$DBFields[0], value=> $F{$DBFields[0]} });
105 bgadell 240
      $coachRCid = $F{coach};
56 bgadell 241
      $F{coach} = $h->a ({ href=>"/schedule/view_user.pl?RCid=$F{coach}" }, getUserDerbyName $F{coach});
242
 
243
      $F{start_time} = convertTime $F{start_time};
244
      $F{end_time}   = convertTime $F{end_time};
245
#      if ($F{assignee_id}) {
246
#        my $temp;
247
#        $temp = getUserDerbyName ($F{assignee_id});
248
#        $temp .= "&nbsp;".$h->a ({ onClick=>"if (confirm('Really? You want to drop this person from the shift?')==true) { window.open('make_shift_change.pl?change=del&RCid=$F{assignee_id}&id=$R->{$primary}','Confirm Shift Change','resizable,height=260,width=370'); return false; }" }, "[DROP]");
249
#        $F{assignee_id} = $temp;
250
#      } else {
251
#        $F{assignee_id} = $h->a ({ onClick=>"window.open('make_shift_change.pl?change=lookup&id=$R->{$primary}','Confirm Shift Change','resizable,height=260,width=370'); return false;" }, "[ADD USER]");
252
#      }
253
 
254
      $actionbutton = formField ("choice", "Update") unless $LVL < RollerCon::ADMIN;
255
      if ($view eq "POSTSAVE" or $choice eq "View") {
256
        $actionbutton .= formField ("Cancel", "Back", "POSTSAVE");
257
      } else {
258
        $actionbutton .= formField ("Cancel", "Back");
259
      }
260
    }
261
  } else {
262
    error ("No Game id provided.") unless $LVL >= RollerCon::ADMIN;
263
 
264
    print $h->p ("Adding a new Class...");
265
 
266
    foreach (@DBFields) {
267
      $F{$_} = formField ($_);
268
    }
269
		$F{$DBFields[0]} = "NEW".$h->input ({ type=>"hidden", name=>$DBFields[0], value=> "NEW" });
270
 
271
    $actionbutton = formField ("choice", "Save");
272
    $actionbutton .= formField ("Cancel");
273
  }
274
 
275
 
276
	print $h->open ("form", { action => url (), name=>"Req", method=>"POST" });
277
	print $h->div ({ class=>"sp0" },
278
	  $h->div ({ class=>"rTable" }, [ map ({
279
      $h->div ({ class=>"rTableRow" }, [
280
        $h->div ({ class=>"rTableCell right top", style=>"font-size:unset;" }, "$fieldDisplayName{$_}: "),
281
        $h->div ({ class=>"rTableCell", style=>"font-size:unset;" }, $F{$_})
282
      ])
283
       } sort fieldOrder keys %FIELDS),
284
   ])
285
  );
286
 
287
  print $actionbutton;
288
  print $h->close ("form");
289
 
105 bgadell 290
  my $dbh = WebDB::connect ();
291
 
292
  my ($class_is_over) = $dbh->selectrow_array ("select 1 from v_class where $primary = ? and concat_ws(' ', date, end_time) < date_sub(now(), interval 2 hour)", undef, $R->{$primary});
293
 
112 - 294
#  if (($LVL >= RollerCon::ADMIN or $user->{department}->{MVP} >= RollerCon::LEAD) and !$class_is_over) {
295
  if ($LVL >= RollerCon::ADMIN or $user->{department}->{MVP} >= RollerCon::LEAD) {
56 bgadell 296
    my ($count) = $dbh->selectrow_array ("select count from v_class where $primary = ?", undef, $R->{$primary});
297
 
298
    if ($F{$DBFields[0]} !~ /^(NEW|COPY)/) {
62 bgadell 299
      my @A = @{$dbh->selectall_arrayref ("select role, official.RCid, derby_name from v_class_signup join official on v_class_signup.RCid = official.RCid where $primary = ? order by role", undef, $R->{$primary})};
56 bgadell 300
 
301
      my $classkey = join '|', $F{date}, $F{start_time}, $F{location};
112 - 302
#      my $adduserlink  = (scalar @A < $F{capacity} and ($LVL >= RollerCon::ADMIN or $user->{department}->{MVP} >= RollerCon::LEAD)) ? $h->a ({ style=>"color:unset;font-size:x-small;", onClick=>"window.open('make_shift_change.pl?change=lookup&RCid=$RCid&id=$classkey','Confirm Shift Change','resizable,height=260,width=370'); return false;" }, "[ADD USER]") : "";
303
      my $adduserlink  = ($LVL >= RollerCon::ADMIN or $user->{department}->{MVP} >= RollerCon::LEAD) ? $h->a ({ style=>"color:unset;font-size:x-small;", onClick=>"window.open('make_shift_change.pl?change=lookup&RCid=$RCid&id=$classkey','Confirm Shift Change','resizable,height=260,width=370'); return false;" }, "[ADD USER]") : "";
56 bgadell 304
 
305
      print $h->br, $h->br;
306
      print $h->div ({ class=>"index", style=>"max-width:610px" }, [ $h->p ({ class=>"heading" }, [ "Sign-ups:&nbsp;&nbsp;", $adduserlink ]),
307
        $h->ul ( [ map { $h->li ({ class=>"shaded", style=>"margin:4px;" },
308
    	    $h->div ({ class=>"lisp0" }, [
309
            $h->div ({ class=>"liLeft"  }, [ $$_[0], ":&nbsp;&nbsp;", $h->a ({ href=>"/schedule/view_user.pl?RCid=$$_[1]" }, $$_[2]) ]),
310
            $h->div ({ class=>"liRight" }, ($LVL >= RollerCon::ADMIN or $user->{department}->{MVP} >= RollerCon::LEAD) ? $h->a ({ style=>"font-size:small", onClick=>"if (confirm('Really? Delete $$_[2] from this class?')==true) { window.open('make_shift_change.pl?change=del&RCid=$$_[1]&id=$R->{$primary}&role=$$_[0]','Confirm Shift Change','resizable,height=260,width=370'); return false; }" }, "[DROP]") : "")
311
          ])
312
        ) } @A ])
313
      ]);
314
    }
315
  }
105 bgadell 316
 
317
  if (($LVL >= RollerCon::ADMIN or $user->{department}->{MVP} >= RollerCon::LEAD or $ORCUSER->{RCid} == $coachRCid) and $class_is_over) {
318
    my ($response_count) = $dbh->selectrow_array ("select count(distinct(RCid)) from v_survey_answer where classid = ?", undef, $R->{$primary});
319
    my $exclude_private = ($LVL >= RollerCon::ADMIN or $user->{department}->{MVP} >= RollerCon::LEAD) ? "" : "and private = 0";
320
 
108 bgadell 321
    my @RESPONSES = @{$dbh->selectall_arrayref ("select qorder, type, question, average, qid from v_survey_results where classid = ? $exclude_private order by qorder", undef, $R->{$primary})};
105 bgadell 322
 
323
    print $h->br, $h->br;
324
    print $h->div ({ class=>"index", style=>"max-width:610px" }, [ $h->p ({ class=>"heading" }, [ "Survey Results:&nbsp;&nbsp;", $response_count." Response".(($response_count > 1) ? "s" : "") ]),
325
      $h->ul ( [ map { $h->li ({ class=>"shaded", style=>"margin:4px;" },
326
        $h->div ({ class=>"lisp0" }, [
327
          $h->div ({ class=>"liLeft"  }, [ $$_[0], ":&nbsp;", $$_[2] ]),
328
          $h->div ({ class=>"liRight" }, [ $$_[1] eq "text" ?
329
            $h->a ({ href=>"view_survey_comments.pl?classid=$R->{$primary}&qid=$$_[4]" }, [ $$_[3], (($$_[3] == 1) ? " comment" : " comments") ]) :
330
            $$_[3] ])
331
#          $h->div ({ class=>"liRight" }, [ $$_[3], $$_[1] eq "text" ? (($$_[3] == 1) ? " comment" : " comments") : "" ])
332
#          $h->div ({ class=>"liRight" }, $h->a ({ href=>"view_survey_comments.pl?classid=$R->{$primary}&qid=$$_[4]" }, $$_[3].$$_[1] eq "text" ? (($$_[3] == 1) ? " comment" : " comments") : ""))
333
        ])
334
      ) } @RESPONSES ])
335
    ]);
336
 
337
 
338
 
339
  }
340
  $dbh->disconnect;
56 bgadell 341
}
342
 
343
sub process_form  {
344
  error ("ERROR: Only SysAdmins can change games.") unless $LVL >= RollerCon::ADMIN;
345
 
346
  my %FORM;
347
  foreach (keys %FIELDS) {
348
  	if ($fieldType{$_} =~ /^text/) {
349
  		$FORM{$_} = WebDB::trim param ($_) // "";
350
  	} else {
351
	  	$FORM{$_} = param ($_) // "";
352
  	}
353
  }
354
	$FORM{classshiftid} = param ("classshiftid") unless !param ("classshiftid");
355
 
356
  	 # check for required fields
357
	my @errors = ();
358
	foreach (@requiredFields) {
359
		push @errors, "$fieldDisplayName{$_} is missing." if $FORM{$_} eq "";
360
	}
361
	push @errors, "Capacity should be a whole number." unless $FORM{capacity} =~ /^\d+$/;
362
 
363
  if (@errors)	 {
364
    print $h->div ({ class=>"error" }, [
365
  	  $h->p ("The following errors occurred:"),
366
  	  $h->ul ($h->li (@errors)),
367
  	  $h->p ("Please click your Browser's Back button to\n"
368
  	  	   . "return to the previous page and correct the problem.")
369
  	]);
370
  	return;
371
  }	 # Form was okay.
372
 
373
  $FORM{id} = saveForm (\%FORM);
374
 
375
	print $h->p ({ class=>"success" }, "Class successfully saved.");
376
 
377
  display_form ({ $primary=>$FORM{id} }, "POSTSAVE");
378
}
379
 
380
sub error {
381
	my $msg = shift;
382
	print $h->p ({ class=>"error" }, "Error: $msg");
383
  print $h->close("html");
384
	exit (0);
385
}
386
 
387
sub formField {
388
	my $name  = shift;
389
	my $value = shift // '';
390
	my $context = shift // '';
391
	my $type = $fieldType{$name} // "button";
392
 
393
  if ($type eq "button") {
394
		if ($name eq "Cancel") {
395
		  if ($context eq "POSTSAVE") {
396
		    return $h->input ({ type=>"button", value => $value ne '' ? $value : "Cancel" , onClick=>"window.location.href = \"classes.pl\"; return false;" });
397
		  } else {
398
		    return $h->input ({ type=>"button", value => $value ne '' ? $value : "Cancel" , onClick=>"history.back(); return false;" });
399
		  }
400
		} else {
401
			return $h->input ({ type=>"submit", value => $value, name=>$name })
402
		}
403
 
404
	} elsif ($type eq "textarea") {
405
	  return $h->tag ("textarea", {
406
	    name => $name,
407
	    override => 1,
408
			cols => 30,
409
			rows => 4
410
	  }, $value);
411
 
412
  } elsif ($type eq "select") {
413
    no strict;
414
    return &{"select_".$name} ($value);
415
	}	elsif ($type eq "auto") {
416
	  return $name eq "assignee_id" ? getUserDerbyName ($value) : $value;
417
  }	elsif ($type eq "time") {
418
	  return $h->input ({
419
	    name => $name,
420
	    type => $type,
421
	    value => $value,
422
	    step => 900,
423
	    required => [],
424
	    override => 1,
425
	    size => 30
426
	  });
427
  }	elsif ($type eq "number") {
428
    return $h->input ({ name=>$name, type=>"number", value=>$value, step=>1 });
429
  }	elsif ($type eq "switch") {
430
    if ($value) {
431
      return $h->label ({ class=>"switch" }, [$h->input ({ type=>"checkbox", name=>$name, value=>1, checked=>[] }), $h->span ({ class=>"slider round" })]);
432
    } else {
433
      return $h->label ({ class=>"switch" }, [$h->input ({ type=>"checkbox", name=>$name, value=>1 }), $h->span ({ class=>"slider round" })]);
434
    }
435
	}	else {
436
	  use tableViewer;
437
	  if (inArray ($name, \@requiredFields)) {
438
  	  return $h->input ({
439
  	    name => $name,
440
  	    type => $type,
441
  	    value => $value,
442
  	    required => [],
443
  	    override => 1,
444
  	    size => 30
445
  	  });
446
	  } else {
447
  	  return $h->input ({
448
  	    name => $name,
449
  	    type => $type,
450
  	    value => $value,
451
  	    override => 1,
452
  	    size => 30
453
  	  });
454
  	}
455
	}
456
}
457