{% load i18n %} {% load crispy_forms_tags %}
{% with form=form %} {% include "display-form-errors.html" %} {% endwith %} {% csrf_token %} {{ form.name|as_crispy_field }}
{% trans "Resource configuration" %} {% include "dashboard/_resources-sliders.html" with field_priority=form.priority field_num_cores=form.num_cores field_ram_size=form.ram_size %} {{ form.max_ram_size|as_crispy_field }}
{% trans "Virtual machine settings" %} {{ form.arch|as_crispy_field }} {{ form.access_method|as_crispy_field }} {{ form.boot_menu|as_crispy_field }} {{ form.raw_data|as_crispy_field }} {{ form.req_traits|as_crispy_field }} {{ form.description|as_crispy_field }} {{ form.system|as_crispy_field }}
{% trans "External resources" %} {{ form.networks|as_crispy_field }} {{ form.lease|as_crispy_field }} {% if show_lease_create %}
{% trans "You haven't created any leases yet, but you need one to create a template." %} {% trans "Create a new lease now." %}
{% endif %} {{ form.tags|as_crispy_field }}