show some of the worker options only when the worker process is active
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 6 Dec 2016 20:47:37 +0000 (21:47 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 6 Dec 2016 20:47:37 +0000 (21:47 +0100)
view/templates/admin_site.tpl

index c3e9a72..5316149 100644 (file)
 
        <h3>{{$worker_title}}</h3>
        {{include file="field_checkbox.tpl" field=$worker}}
-       {{include file="field_input.tpl" field=$worker_queues}}
-       {{include file="field_checkbox.tpl" field=$worker_dont_fork}}
-       {{include file="field_checkbox.tpl" field=$worker_fastlane}}
-       {{include file="field_checkbox.tpl" field=$worker_frontend}}
+       {{if $worker.2}}
+               {{include file="field_input.tpl" field=$worker_queues}}
+               {{include file="field_checkbox.tpl" field=$worker_dont_fork}}
+               {{include file="field_checkbox.tpl" field=$worker_fastlane}}
+               {{include file="field_checkbox.tpl" field=$worker_frontend}}
+       {{/if}}
        <div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
 
        </form>