Commit f741ac3f64a42834e7e11fa2cae24c6b13522ae6

Authored by michael
1 parent d6846d98

changed update button to approve


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1538 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
@@ -188,8 +188,9 @@ function getEditPage($oDocument) { @@ -188,8 +188,9 @@ function getEditPage($oDocument) {
188 $sToRender .= "\t\t<td align=\"center\"><a href=\"$default->rootUrl/control.php?action=collaborationStepReject&fDocumentID=$iDocumentID\"><img src=\"$default->graphicsUrl/widgets/reject.gif\" border=\"0\"/></a></td>\n"; 188 $sToRender .= "\t\t<td align=\"center\"><a href=\"$default->rootUrl/control.php?action=collaborationStepReject&fDocumentID=$iDocumentID\"><img src=\"$default->graphicsUrl/widgets/reject.gif\" border=\"0\"/></a></td>\n";
189 $sToRender .= "\t\t</tr></table></td>\n"; 189 $sToRender .= "\t\t</tr></table></td>\n";
190 } 190 }
191 - // only display for unpublished documents 191 +
192 if (Document::documentIsPendingWebPublishing($iDocumentID)) { 192 if (Document::documentIsPendingWebPublishing($iDocumentID)) {
  193 + // only display for unpublished documents
193 // if there is collaboration 194 // if there is collaboration
194 if ($oDocument->hasCollaboration()) { 195 if ($oDocument->hasCollaboration()) {
195 // only display publish button if collaboration is complete and you're the last user in the collaboration process 196 // only display publish button if collaboration is complete and you're the last user in the collaboration process
@@ -271,7 +272,7 @@ function getViewPage($oDocument) { @@ -271,7 +272,7 @@ function getViewPage($oDocument) {
271 //if the current user is responsible for an active step in the collaboration process 272 //if the current user is responsible for an active step in the collaboration process
272 $sToRender .= "\t\t<tr><td><table border=\"0\"><tr>\n"; 273 $sToRender .= "\t\t<tr><td><table border=\"0\"><tr>\n";
273 $sToRender .= "\t\t<td><b>You currently have an active role<br> in the collaboration process</b></td>\n"; 274 $sToRender .= "\t\t<td><b>You currently have an active role<br> in the collaboration process</b></td>\n";
274 - $sToRender .= "\t\t<td align=\"center\"><a href=" . $_SERVER['PHP_SELF'] . "?fDocumentID=" . $oDocument->getID() . "&fCollaborationStepComplete=1><img src=\"$default->graphicsUrl/widgets/update.gif\" border=\"0\"/></a></td>\n"; 275 + $sToRender .= "\t\t<td align=\"center\"><a href=" . $_SERVER['PHP_SELF'] . "?fDocumentID=" . $oDocument->getID() . "&fCollaborationStepComplete=1><img src=\"$default->graphicsUrl/widgets/approve.gif\" border=\"0\"/></a></td>\n";
275 $sToRender .= "\t\t<td align=\"center\"><a href=\"$default->rootUrl/control.php?action=collaborationStepReject&fDocumentID=$iDocumentID\"><img src=\"$default->graphicsUrl/widgets/reject.gif\" border=\"0\"/></a></td>\n"; 276 $sToRender .= "\t\t<td align=\"center\"><a href=\"$default->rootUrl/control.php?action=collaborationStepReject&fDocumentID=$iDocumentID\"><img src=\"$default->graphicsUrl/widgets/reject.gif\" border=\"0\"/></a></td>\n";
276 $sToRender .= "\t\t</tr></table></td>\n"; 277 $sToRender .= "\t\t</tr></table></td>\n";
277 } 278 }