VM-Dashboard-Manager/templates/add.html

75 lines
2.1 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends 'layout.html' %}
{% block tytle %} Добавить ВМ {% endblock%}
{% block style %}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f0f0f0;
}
h1 {
color: #333;
}
form {
background-color: #fff;
padding: 20px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
width: 300px;
margin: 20px auto;
}
input[type="text"] {
width: calc(100% - 22px);
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
button[type="submit"] {
background-color: #007bff;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
button[type="submit"]:hover {
background-color: #0056b3;
}
{% endblock %}
{% block body %}
<form method="post" action="">
{% from "includes/_formhelpers.html" import render_field%}
<div class="form-group">
{{ render_field(form.hyper, class_='form-control') }}
</div>
<div class="form-group">
{{ render_field(form.ip_addres, class_='form-control') }}
</div>
<div class="form-group">
{{ render_field(form.name, class_='form-control') }}
</div>
<div class="form-group">
{{ render_field(form.os, class_='form-control') }}
</div>
<div class="form-group">
{{ render_field(form.memory, class_='form-control') }}
</div>
<div class="form-group">
{{ render_field(form.cpu, class_='form-control') }}
</div>
<div class="form-group">
{{ render_field(form.technical, class_='form-control') }}
</div>
<p><input type="submit" class="btn btn-primary" value="Сохранить"></p>
</form>
{% endblock %}