preety
This commit is contained in:
parent
66b36bccad
commit
b1268ea045
@ -1,4 +1,13 @@
|
|||||||
%include ('header.tpl')
|
%include ('header.tpl')
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function startBtn() {
|
||||||
|
alert("asd");
|
||||||
|
document.getElementById("parentID").innerHTML+= "new content" ;
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<nav class="navbar navbar-dark bg-dark">
|
<nav class="navbar navbar-dark bg-dark">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<a class="navbar-brand" href="#">Welcome to libvirt domain ctl</a>
|
<a class="navbar-brand" href="#">Welcome to libvirt domain ctl</a>
|
||||||
@ -8,34 +17,32 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
||||||
RAW: {{name}}
|
<div class="alert alert-primary" role="alert">
|
||||||
|
RAW: {{name}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
%for i in name:
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-body">
|
||||||
|
<h5 class="card-title">{{i['name']}}</h5>
|
||||||
|
<p class="card-text">State: {{i['state']}}</p>
|
||||||
|
<form method="POST" action="http://192.168.100.50:5000/action" id={{i['name']}}>
|
||||||
|
<input name="name" value="{{i['name']}}" hidden>
|
||||||
|
<button name="act" class="btn btn-success" value="start" onclick="startBtn();">Start</button>
|
||||||
|
|
||||||
<div class="row">
|
<button name="act" class="btn btn-danger" value="destroy">Destroy</button>
|
||||||
%for i in name:
|
<button name="act" class="btn btn-warning" value="stop">Stop</button>
|
||||||
<div class="col-sm-6">
|
</form>
|
||||||
<div class="card">
|
</div>
|
||||||
<div class="card-body">
|
</div>
|
||||||
<h5 class="card-title">{{i['name']}}</h5>
|
</div>
|
||||||
<p class="card-text">State: {{i['state']}}</p>
|
%end
|
||||||
|
|
||||||
<form method="POST" action="http://192.168.100.50:5000/action">
|
|
||||||
<input name="name" value="{{i['name']}}" hidden>
|
|
||||||
<button name="act" class="btn btn-success" value="start">Start</button>
|
|
||||||
<button name="act" class="btn btn-danger" value="destroy">Destroy</button>
|
|
||||||
<button name="act" class="btn btn-warning" value="stop">Stop</button>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
%end
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
%include ('footer.tpl')
|
%include ('footer.tpl')
|
Loading…
Reference in New Issue
Block a user