Subversion Repositories ORC

Rev

Rev 35 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35 Rev 46
Line 64... Line 64...
64
  
64
  
65
	my $change_err = changeShift($change, $id, $role, $RCid);
65
	my $change_err = changeShift($change, $id, $role, $RCid);
66
	my $closer;
66
	my $closer;
67
	if ($change_err) {
67
	if ($change_err) {
-
 
68
	  print $change_err;
-
 
69
	  if ($change_err =~ /conflict/ and (convertDepartments($user->{department})->{VCI} > 2 or $LVL > 4)) {
-
 
70
		  print $h->form ({ action=>url }, [
-
 
71
		    $h->input ({ type=>"hidden", name=>"change", value=>"override" }),
-
 
72
    		$h->input ({ type=>"hidden", name=>"id", value=>$id }),
-
 
73
    		$h->input ({ type=>"hidden", name=>"role", value=>$role }),
-
 
74
    		$h->input ({ type=>"hidden", name=>"RCid", value=>$RCid }),
-
 
75
    		$h->input ({ type=>"submit", value=>"OVERRIDE", onClick=>"if (confirm('Are you sure you want to override the conflict?')==true) { return true } else { return false }" }),
-
 
76
		  ]);
68
	  print $change_err;
77
	  }
69
	  print $h->br, $h->button ({ onClick=>"window.close();" }, "Close");
78
	  print $h->br, $h->button ({ onClick=>"window.close();" }, "Close");
70
	} else {
79
	} else {
71
	  print "<br>This window will close automatically in 3 seconds.";
80
	  print "<br>This window will close automatically in 3 seconds.";
72
 	  $closer = 'setTimeout(() => { window.close(); }, 3000);';
81
 	  $closer = 'setTimeout(() => { window.close(); }, 3000);';