Commit 330eda74c4517d64e89a3e41b3e8f5c3797867a9
1 parent
25f0e3b3
changed update button to approve
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1538 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
2 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/viewUI.inc
| ... | ... | @@ -188,8 +188,9 @@ function getEditPage($oDocument) { |
| 188 | 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 | 189 | $sToRender .= "\t\t</tr></table></td>\n"; |
| 190 | 190 | } |
| 191 | - // only display for unpublished documents | |
| 191 | + | |
| 192 | 192 | if (Document::documentIsPendingWebPublishing($iDocumentID)) { |
| 193 | + // only display for unpublished documents | |
| 193 | 194 | // if there is collaboration |
| 194 | 195 | if ($oDocument->hasCollaboration()) { |
| 195 | 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 | 272 | //if the current user is responsible for an active step in the collaboration process |
| 272 | 273 | $sToRender .= "\t\t<tr><td><table border=\"0\"><tr>\n"; |
| 273 | 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 | 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 | 277 | $sToRender .= "\t\t</tr></table></td>\n"; |
| 277 | 278 | } | ... | ... |