Fixing initial web form
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
<div class = "row">
|
||||
<div class = "col-sm-6">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon" id="basic-addon1">Tiller Namespace:</span>
|
||||
{{ form.tiller_ns(class_="form-control") }}
|
||||
<span class="input-group-addon" id="basic-addon1">Namespace:</span>
|
||||
{{ form.ns(class_="form-control") }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -50,16 +50,16 @@
|
||||
</dl>
|
||||
|
||||
<script>
|
||||
var tillerSelect = document.getElementById("tiller_ns");
|
||||
var nsSelect = document.getElementById("ns");
|
||||
var chartSelect = document.getElementById("chart");
|
||||
|
||||
tillerSelect.onchange = function() {myFunction()};
|
||||
nsSelect.onchange = function() {myFunction()};
|
||||
|
||||
function myFunction() {
|
||||
|
||||
tiller_ns = tillerSelect.value;
|
||||
ns = nsSelect.value;
|
||||
|
||||
fetch('/nsLookup/' + tiller_ns + '/default').then(function(response) {
|
||||
fetch('/nsLookup/' + ns + '/default').then(function(response) {
|
||||
response.json().then(function(data) {
|
||||
if (data != 'EMPTY') {
|
||||
var optionHTML = '';
|
||||
|
||||
Reference in New Issue
Block a user