Tweaks for API changes. Tell the user if their scheduler script is not configured.

This commit is contained in:
paul 2006-11-23 07:25:30 +00:00
parent c175de0cb3
commit 1dbbf53799
1 changed files with 9 additions and 4 deletions
campcaster/src/modules/htmlUI/var/templates/scheduler

View File

@ -3,14 +3,19 @@
<div class="container_elements" style="width: 790px;">
<div class="head_scheduler" style=""><h1>##Scheduler status##</h1></div>
<div class="clearer">&nbsp;</div>
{if $SCHEDULER->testDaemon() === true}
{if $SCHEDULER->daemonIsRunning() === true}
<p>##Scheduler is running##</p>
<p><input type="button" onClick="hpopup('{$UI_HANDLER}?act=SCHEDULER.stopDaemon');" value="##Stop scheduler##"></p>
{else}
<p>##Scheduler is not running##</p>
<p><input type="button" class="button" onClick="hpopup('{$UI_HANDLER}?act=SCHEDULER.startDaemon');" value="##Start scheduler##"></p>
{assign var=tmpErrorMsg value=$SCHEDULER->getScriptError()}
{if $tmpErrorMsg}
{$tmpErrorMsg}
{else}
<p>##Scheduler is not running##</p>
<p><input type="button" class="button" onClick="hpopup('{$UI_HANDLER}?act=SCHEDULER.startDaemon');" value="##Start scheduler##"></p>
{/if}
{/if}
</p>
</div>