Skip to content

Commit

Permalink
[CE-119] Fix fail to create swarm worker node
Browse files Browse the repository at this point in the history
    1. this patchset will allow user to chose host_type
       via our jinja2 dashboard

Change-Id: I1d0bfbb9ab3be21ca2fcd7ecc843e2bbe9e05f1f
Signed-off-by: Li Chaoran <pkwarcraft@gmail.com>
  • Loading branch information
pkking committed Sep 18, 2017
1 parent ac545cb commit d7f2ba1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/themes/basic/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,19 @@ <h4 class="modal-title">Add a host</h4>
<input id="host_capacity" type="number" name="capacity"
class="form-control" min="0" max="1000" value=1 required>
</div>
{% if host_types|length > 0 %}
<div class="form-group form-inline">
<label for="host_type" style="width: 20%">Host Type</label>
<select id="host_type" class="c-select host_type"
name="host_type" required>
<option selected
value="{{host_types[0]}}">{{host_types[0]|upper }}</option>
{% for c in host_types[1:] %}
<option value="{{c}}">{{c|upper}}</option>
{% endfor %}
</select>
</div>
{% endif %}
{% if log_levels|length > 0 %}
<div class="form-group form-inline">
<label for="log_level" style="width: 20%">Logging Level</label>
Expand Down

0 comments on commit d7f2ba1

Please sign in to comment.