This commit is contained in:
lulzette 2021-03-25 21:11:03 +00:00
parent 2aa6c7899b
commit c78d758770
3 changed files with 34 additions and 2 deletions

3
views/footer.tpl Normal file
View File

@ -0,0 +1,3 @@
</body>
</html>

13
views/header.tpl Normal file
View File

@ -0,0 +1,13 @@
<html>
<head>
<title>
libvirt domctl
</title>
<style>
.raw {
color:darkslategrey;
}
</style>
</head>
<body>

View File

@ -1,11 +1,27 @@
<h1>
{{name}}
%include ('header.tpl')
<h1 class="raw">
Welcome to libvirt domain ctl
</h1>
SRC: {{name}}
<%
print(name)
%>
%for i in name:
<li>
{{i['name']}}, state:
{{i['state']}}
<form method="POST" action="http://192.168.100.50:5000/action">
<input name="name" value="{{i['name']}}">
<button name="act" value="start">
Start
</button>
</form>
</li>
%end
%include ('footer.tpl')