Browse Source

Allow "Force" priority to be set in the NZO page (now also for smpl and Classic.)

Otherwise "Force" jobs will lose their priority when other fields are changed on the NZO page.
pull/140/head
shypike 11 years ago
parent
commit
e517b67faf
  1. 1
      interfaces/Classic/templates/nzo.tmpl
  2. 1
      interfaces/smpl/templates/nzo.tmpl

1
interfaces/Classic/templates/nzo.tmpl

@ -88,6 +88,7 @@
<label class="label">$T('priority'):</label><br />
<select name="priority">
<option value="-100" <!--#if $slot.priority == "-100" then "selected" else ""#-->>$T('default')</option>
<option value="2" <!--#if $slot.priority == "2" then "selected" else ""#-->>$T('pr-force')</option>
<option value="1" <!--#if $slot.priority == "1" then "selected" else ""#-->>$T('pr-high')</option>
<option value="0" <!--#if $slot.priority == "0" then "selected" else ""#-->>$T('pr-normal')</option>
<option value="-1" <!--#if $slot.priority == "-1" then "selected" else ""#-->>$T('pr-low')</option>

1
interfaces/smpl/templates/nzo.tmpl

@ -19,6 +19,7 @@
<select name="priority">
<optgroup label="$T('priority')">
<option value="-100" <!--#if $slot.priority == "-100" then "selected" else ""#-->>$T('default')</option>
<option value="2" <!--#if $slot.priority == "2" then "selected" else ""#-->>$T('pr-force')</option>
<option value="1" <!--#if $slot.priority == "1" then "selected" else ""#-->>$T('pr-high')</option>
<option value="0" <!--#if $slot.priority == "0" then "selected" else ""#-->>$T('pr-normal')</option>
<option value="-1" <!--#if $slot.priority == "-1" then "selected" else ""#-->>$T('pr-low')</option>

Loading…
Cancel
Save