preety
This commit is contained in:
parent
66b36bccad
commit
b1268ea045
@ -1,4 +1,13 @@
|
||||
%include ('header.tpl')
|
||||
|
||||
<script>
|
||||
function startBtn() {
|
||||
alert("asd");
|
||||
document.getElementById("parentID").innerHTML+= "new content" ;
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<nav class="navbar navbar-dark bg-dark">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="#">Welcome to libvirt domain ctl</a>
|
||||
@ -8,33 +17,31 @@
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
RAW: {{name}}
|
||||
<div class="alert alert-primary" role="alert">
|
||||
RAW: {{name}}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="row">
|
||||
%for i in name:
|
||||
<div class="col-sm-6">
|
||||
<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">
|
||||
<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">Start</button>
|
||||
<button name="act" class="btn btn-success" value="start" onclick="startBtn();">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>
|
||||
%end
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
%end
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user