1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 23:25:24 +00:00

fix typo. remove unused variable. add form-control to volume dropdown.

This commit is contained in:
catborise 2018-10-26 17:30:52 +03:00
parent 07984a2a9a
commit 2ca2add444
2 changed files with 1 additions and 6 deletions

View file

@ -12,9 +12,6 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">{% trans "Add Instance Volume" %}</h4> <h4 class="modal-title">{% trans "Add Instance Volume" %}</h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<div class="row"> <div class="row">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
@ -103,7 +100,7 @@
<label class="col-sm-3 control-label" style="font-weight:normal;">{% trans "Storage" %}</label> <label class="col-sm-3 control-label" style="font-weight:normal;">{% trans "Storage" %}</label>
<div class="col-sm-4"> <div class="col-sm-4">
<div class="dropdown"> <div class="dropdown">
<button id="select_storage" class="btn dropdown-toggle" type="button" data-toggle="dropdown">{% trans 'Select Pool...' %} <button id="select_storage" class="btn btn-default dropdown-toggle form-control" type="button" data-toggle="dropdown">{% trans 'Select Pool...' %}
<span class="caret"></span></button> <span class="caret"></span></button>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
{% for storage in storages %} {% for storage in storages %}

View file

@ -1244,8 +1244,6 @@
<script src="{% static "js/ace.js" %}" type="text/javascript" charset="utf-8"></script> <script src="{% static "js/ace.js" %}" type="text/javascript" charset="utf-8"></script>
<script> <script>
function get_volumes(comp_id, pool) { function get_volumes(comp_id, pool) {
vol_params = comp_id + " " + pool;
vol_url = "/computes/" + comp_id + "/storage/" + pool + "/?get_volumes"; vol_url = "/computes/" + comp_id + "/storage/" + pool + "/?get_volumes";
var select = document.getElementById("vols"); var select = document.getElementById("vols");