{% 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 %}
