Add interactive template with python environment selector
This commit is contained in:
parent
494ba17aaf
commit
dea39b9462
5 changed files with 105 additions and 43 deletions
19
src/glicid_spawner/templates/interactive.html
Normal file
19
src/glicid_spawner/templates/interactive.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<div class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<label for="username" class="col-sm-3 control-label">Username:</label>
|
||||
<div class="col-sm-9">
|
||||
<input class="form-control" name="username" type="text" placeholder="{{username}}" disabled>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="username" class="col-sm-3 control-label">Python environment:</label>
|
||||
<div class="col-sm-9">
|
||||
<select class="form-control" name="python-env">
|
||||
{%- for pyenv in python_envs -%}
|
||||
<option value="{{pyenv.path}}">{{pyenv.name}} ({{pyenv.scope | upper}})</option>
|
||||
{% endfor -%}
|
||||
</select>
|
||||
<input class="form-control" name="username" type="text" placeholder="{username}" disabled>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue