edit-project.tt: disable when disabled by server

Also add a tooltip describing why it's disabled, to make it easier to
chase down.
This commit is contained in:
Cole Helbling 2021-12-17 11:03:55 -08:00 committed by Graham Christensen
parent 6053e5fd4b
commit d680c209fe

View file

@ -56,7 +56,13 @@
<div class="form-group row"> <div class="form-group row">
<label class="col-sm-3" for="editprojectenable_dynamic_run_command">Enable Dynamic RunCommand Hooks for Jobsets</label> <label class="col-sm-3" for="editprojectenable_dynamic_run_command">Enable Dynamic RunCommand Hooks for Jobsets</label>
<div class="col-sm-9"> <div class="col-sm-9">
<input type="checkbox" id="editprojectenable_dynamic_run_command" name="enable_dynamic_run_command" [% IF jobset.enable_dynamic_run_command %]checked[% END %]/> <input type="checkbox" id="editprojectenable_dynamic_run_command" name="enable_dynamic_run_command"
[% IF !c.config.dynamicruncommand.enable %]
title="The server has not enabled dynamic RunCommands" disabled
[% ELSIF project.enable_dynamic_run_command %]
checked
[% END %]
/>
</div> </div>
</div> </div>