autoselect first work order type when only 1
parent
e995c156b3
commit
9917a11cfb
|
|
@ -110,7 +110,7 @@
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<div class="select is-fullwidth">
|
<div class="select is-fullwidth">
|
||||||
<select id="workOrderEdit--workOrderTypeId" name="workOrderTypeId" required <%= (isCreate ? " autofocus" : "") %>>
|
<select id="workOrderEdit--workOrderTypeId" name="workOrderTypeId" required <%= (isCreate ? " autofocus" : "") %>>
|
||||||
<% if (isCreate) { %>
|
<% if (isCreate && workOrderTypes.length > 1) { %>
|
||||||
<option value="">(Select Type)</option>
|
<option value="">(Select Type)</option>
|
||||||
<% } %>
|
<% } %>
|
||||||
<% for (const workOrderType of workOrderTypes) { %>
|
<% for (const workOrderType of workOrderTypes) { %>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue