tpl
This commit is contained in:
parent
2aa6c7899b
commit
c78d758770
3
views/footer.tpl
Normal file
3
views/footer.tpl
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
13
views/header.tpl
Normal file
13
views/header.tpl
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>
|
||||||
|
libvirt domctl
|
||||||
|
</title>
|
||||||
|
<style>
|
||||||
|
.raw {
|
||||||
|
color:darkslategrey;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
@ -1,11 +1,27 @@
|
|||||||
<h1>
|
%include ('header.tpl')
|
||||||
{{name}}
|
<h1 class="raw">
|
||||||
|
Welcome to libvirt domain ctl
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
SRC: {{name}}
|
||||||
|
|
||||||
|
<%
|
||||||
|
print(name)
|
||||||
|
%>
|
||||||
|
|
||||||
%for i in name:
|
%for i in name:
|
||||||
<li>
|
<li>
|
||||||
{{i['name']}}, state:
|
{{i['name']}}, state:
|
||||||
{{i['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>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%end
|
%end
|
||||||
|
%include ('footer.tpl')
|
Loading…
Reference in New Issue
Block a user