- put icons on remove/rewind workflow buttons

This commit is contained in:
steinm 2013-01-24 10:47:32 +00:00
parent 4f436d0475
commit 7582c2bd11

View File

@ -421,10 +421,10 @@ class LetoDMS_View_ViewDocument extends LetoDMS_Bootstrap_Style {
<?php
$this->contentContainerStart();
if(LetoDMS_Core_DMS::checkIfEqual($workflow->getInitState(), $latestContent->getWorkflowState())) {
print "<form action=\"../out/out.RemoveWorkflow.php\" method=\"post\">".createHiddenFieldWithKey('removeworkflow')."<input type=\"hidden\" name=\"documentid\" value=\"".$documentid."\" /><input type=\"hidden\" name=\"version\" value=\"".$latestContent->getVersion()."\" /><input type=\"submit\" class=\"btn\" value=\"".getMLText('rm_workflow')."\" /></form>";
print "<form action=\"../out/out.RemoveWorkflow.php\" method=\"post\">".createHiddenFieldWithKey('removeworkflow')."<input type=\"hidden\" name=\"documentid\" value=\"".$documentid."\" /><input type=\"hidden\" name=\"version\" value=\"".$latestContent->getVersion()."\" /><button type=\"submit\" class=\"btn\"><i class=\"icon-remove\"></i> ".getMLText('rm_workflow')."</button></form>";
} else {
if($user->isAdmin())
print "<form action=\"../out/out.RewindWorkflow.php\" method=\"post\">".createHiddenFieldWithKey('rewindworkflow')."<input type=\"hidden\" name=\"documentid\" value=\"".$documentid."\" /><input type=\"hidden\" name=\"version\" value=\"".$latestContent->getVersion()."\" /><input type=\"submit\" class=\"btn\" value=\"".getMLText('rewind_workflow')."\" /></form>";
print "<form action=\"../out/out.RewindWorkflow.php\" method=\"post\">".createHiddenFieldWithKey('rewindworkflow')."<input type=\"hidden\" name=\"documentid\" value=\"".$documentid."\" /><input type=\"hidden\" name=\"version\" value=\"".$latestContent->getVersion()."\" /><button type=\"submit\" class=\"btn\"><i class=\"icon-refresh\"></i> ".getMLText('rewind_workflow')."</button></form>";
}
$workflowstate = $latestContent->getWorkflowState();