hello bootstrap
This commit is contained in:
parent
26ff15634e
commit
66b36bccad
@ -1,3 +1,5 @@
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
@ -3,6 +3,7 @@
|
||||
<title>
|
||||
libvirt domctl
|
||||
</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
|
||||
<style>
|
||||
.raw {
|
||||
color:darkslategrey;
|
||||
@ -10,4 +11,3 @@
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -1,24 +1,41 @@
|
||||
%include ('header.tpl')
|
||||
<h1 class="raw">
|
||||
Welcome to libvirt domain ctl
|
||||
</h1>
|
||||
<nav class="navbar navbar-dark bg-dark">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="#">Welcome to libvirt domain ctl</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
|
||||
RAW: {{name}}
|
||||
|
||||
|
||||
%for i in name:
|
||||
<li>
|
||||
{{i['name']}}, state:
|
||||
{{i['state']}}
|
||||
<form method="POST" action="http://192.168.100.50:5000/action">
|
||||
<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">
|
||||
<input name="name" value="{{i['name']}}" hidden>
|
||||
<button name="act" value="start">Start</button>
|
||||
<button name="act" value="destroy">Destroy</button>
|
||||
<button name="act" value="stop">Stop</button>
|
||||
</form>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
<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>
|
||||
%end
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
%include ('footer.tpl')
|
Loading…
Reference in New Issue
Block a user