Set default creation pool to current user

RTPs get to create vms in any pool, and the default in the user creation list is not the current user, but the first pool returned (in practice, alphabetically). Setting 'selected' on the option should remove this small inconvenience.
This commit is contained in:
Max Meinhold 2020-09-18 10:55:45 -04:00 committed by GitHub
parent 5dc9f5e13b
commit f7bd448611
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,7 @@
<label for="user" class="pull-left">User</label>
<select name="user" id="user" class="form-control">
{% for pool in pools %}
<option value="{{ pool }}">{{ pool }}</option>
<option value="{{ pool }}" {{ "selected" if user.name == pool else "" }}>{{ pool }}</option>
{% endfor %}
</select>
</div>