mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
show message and hide form if document cannot be checked in
This commit is contained in:
parent
4b6eeba319
commit
0bac3deabb
|
@ -144,6 +144,9 @@ function checkForm()
|
|||
break;
|
||||
}
|
||||
}
|
||||
$checkoutinfo = $document->getCheckOutInfo();
|
||||
|
||||
if($checkoutstatus == 0) {
|
||||
|
||||
$latestContent = $document->getLatestContent();
|
||||
$reviewStatus = $latestContent->getReviewStatus();
|
||||
|
@ -531,13 +534,20 @@ function checkForm()
|
|||
?>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><input type="submit" class="btn" value="<?php printMLText("update_document")?>"></td>
|
||||
<td><input type="submit" class="btn" value="<?php printMLText("checkin_document")?>"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
$this->contentContainerEnd();
|
||||
} else {
|
||||
?>
|
||||
<form action="../op/op.CheckInDocument.php" method="post" name="form1" onsubmit="return checkForm();">
|
||||
<input type="hidden" name="documentid" value="<?php print $document->getID(); ?>">
|
||||
<input type="submit" class="btn" value="<?php printMLText("reset_checkout"); ?>">
|
||||
<?php
|
||||
}
|
||||
$this->htmlEndPage();
|
||||
} /* }}} */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user