Commit da06a1ec17a24ac9b85895df7b2008211bd17d71
1 parent
cd72693f
KTS-1554
"Implement a Scheduler" Updated the runtime on changing frequency and setting task to run on next iteration. Committed by: Megan Watson Reviewed by: Conrad Vermeulen git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7150 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
10 additions
and
7 deletions
templates/ktcore/scheduler.smarty
| @@ -26,10 +26,10 @@ | @@ -26,10 +26,10 @@ | ||
| 26 | <td> | 26 | <td> |
| 27 | {$task->getTask()} | 27 | {$task->getTask()} |
| 28 | </td> | 28 | </td> |
| 29 | - <td id="tblCol"> | 29 | + <td id="tblCol"><a href="#" onclick="javascript: showFrequencyDiv('{$task->getId()}');"> |
| 30 | <div id="div{$task->getId()}"> | 30 | <div id="div{$task->getId()}"> |
| 31 | - {$task->getFrequency()} | ||
| 32 | - </div> | 31 | + {$task->getFrequency()} |
| 32 | + </div></a> | ||
| 33 | </td> | 33 | </td> |
| 34 | <td> | 34 | <td> |
| 35 | <div id="runDiv{$task->getId()}"> | 35 | <div id="runDiv{$task->getId()}"> |
| @@ -37,13 +37,16 @@ | @@ -37,13 +37,16 @@ | ||
| 37 | </div> | 37 | </div> |
| 38 | </td> | 38 | </td> |
| 39 | <td> | 39 | <td> |
| 40 | - {$task->getPrevious()} | 40 | + <div id="prevDiv{$task->getId()}" style="display:none; visibility:hidden;"> |
| 41 | + <input type="hidden" name="prev{$task->getId()}" id="prev{$task->getId()}" value="{$task->getPrevious()}" /> | ||
| 42 | + </div> | ||
| 43 | + {$task->getPrevious(TRUE)} | ||
| 41 | </td> | 44 | </td> |
| 42 | <td> | 45 | <td> |
| 43 | {$task->getRunDuration()} | 46 | {$task->getRunDuration()} |
| 44 | </td> | 47 | </td> |
| 45 | <td> | 48 | <td> |
| 46 | - {$task->getAlterFreqLink()} | 49 | + {$task->getAlterFreqLink()} {$task->getRunNowLink()} |
| 47 | </td> | 50 | </td> |
| 48 | </tr> | 51 | </tr> |
| 49 | 52 | ||
| @@ -56,8 +59,8 @@ | @@ -56,8 +59,8 @@ | ||
| 56 | <select name="frequency" id="frequency"> | 59 | <select name="frequency" id="frequency"> |
| 57 | {html_options values=$aFrequencies output=$aFrequencies} | 60 | {html_options values=$aFrequencies output=$aFrequencies} |
| 58 | </select> | 61 | </select> |
| 59 | - <input type="hidden" name="fId" id="fId" value=""> | ||
| 60 | - <input type="button" name="save" id="save" onclick="javascript: saveFreq('{$sUrl}');" value="Save"> | 62 | + <input type="hidden" name="fId" id="fId" value="" /> |
| 63 | + <input type="button" name="save" id="save" onclick='javascript: saveFreq("{$sUrl}");' value="Save" /> | ||
| 61 | </form> | 64 | </form> |
| 62 | </div> | 65 | </div> |
| 63 | 66 |