{% load i18n %} {% load crispy_forms_tags %} {% with form=form %} {% include "display-form-errors.html" %} {% endwith %} {% csrf_token %} {{ form.type }}
{% trans "General settings" %} {{ form.name|as_crispy_field }} {{ form.path|as_crispy_field }} {{ form.hostname|as_crispy_field }}
{% if form.type.value == "ceph_block" %}
{% trans "Ceph block storage authentication settings" %} {{ form.ceph_user|as_crispy_field }} {{ form.secret_uuid|as_crispy_field }}
{% trans "Select or add new Ceph monitor hostname(s)" %} {% trans "new hostname" %} {{ form.media }}
{{ form.hosts }}
{% endif %}