diff --git a/python/templates/index.html b/python/templates/index.html new file mode 100644 index 0000000..29dc600 --- /dev/null +++ b/python/templates/index.html @@ -0,0 +1,153 @@ + + + + + Hyper-V 虚拟机管理 + + + +

Hyper-V 虚拟机管理

+
+ + + + + + + + + + {% for vm in vms %} + + + + + + {% endfor %} + +
虚拟机名称状态操作
{{ vm.Name }} + {% if vm.State == 2 %} + 运行中 + {% elif vm.State == 3 %} + 已关闭 + {% else %} + 未知状态 + {% endif %} + + {% if vm.State == 2 %} + + + {% elif vm.State == 3 %} + + {% else %} + + {% endif %} +
+
+ + + + + +