mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
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:
parent
5dc9f5e13b
commit
f7bd448611
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@
|
||||||
<label for="user" class="pull-left">User</label>
|
<label for="user" class="pull-left">User</label>
|
||||||
<select name="user" id="user" class="form-control">
|
<select name="user" id="user" class="form-control">
|
||||||
{% for pool in pools %}
|
{% for pool in pools %}
|
||||||
<option value="{{ pool }}">{{ pool }}</option>
|
<option value="{{ pool }}" {{ "selected" if user.name == pool else "" }}>{{ pool }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue