version_queue: Allow to undo becoming maintainer or monitor

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-12-30 16:14:42 +01:00
committed by Chris Morgan
parent 058eba4b4f
commit 274f256a63

View File

@@ -149,7 +149,7 @@ class version_queue
if(!$this->oVersion->iVersionId && $this->oVersion->iAppId && if(!$this->oVersion->iVersionId && $this->oVersion->iAppId &&
!$_SESSION['current']->isSuperMaintainer($this->oVersion->iAppId)) !$_SESSION['current']->isSuperMaintainer($this->oVersion->iAppId))
{ {
echo html_frame_start("Become Maintainer or Monitor Changes", "90%"); echo html_frame_start("Become a Maintainer or Monitor Changes", "90%");
echo "<div style='padding:5px;' class='color0'>\n"; echo "<div style='padding:5px;' class='color0'>\n";
$oTable = new Table(); $oTable = new Table();
if($this->oVersion->iMaintainerRequest == MAINTAINER_REQUEST) if($this->oVersion->iMaintainerRequest == MAINTAINER_REQUEST)
@@ -173,6 +173,12 @@ class version_queue
"name=\"iMaintainerRequest\" value=\"".MONITOR_REQUEST."\" /> ". "name=\"iMaintainerRequest\" value=\"".MONITOR_REQUEST."\" /> ".
"Monitor changes to this version, also after it has been accepted"); "Monitor changes to this version, also after it has been accepted");
$oTable->AddRow($oTableRow); $oTable->AddRow($oTableRow);
$oTableRow = new TableRow();
$oTableRow->AddTextCell('&nbsp;');
$oTableRow->AddTextCell('<input type="radio" name="iMaintainerRequest" value="0" /> '.
'None of the above');
$oTable->AddRow($oTableRow);
echo $oTable->GetString(); echo $oTable->GetString();
echo "</div\n"; echo "</div\n";
echo html_frame_end(); echo html_frame_end();