{% extends "../../installer/templates/index.html" %}


{% block body %}

<div class="back-button">
<a href="javascript:history.go(-1)"><h4><i class="fa fa-chevron-circle-left"></i> Back</h4></a>
</div>
<h1>Build An Environment</h1>
<div class="profileform">
    <form action="" method="POST">{% csrf_token %}

    <div class="build-choices">
        {% for field in form %}
            {% if field|length == 1 %}
                <h3>{{ field.label }}</h3>
                <p>{{ field }}</p>
            {% else %}
                <h3>Options</h3>
                <ul>
                {% for choice in field %}
                    <li>{{choice}} / 
                    d:{{choice.description}}</li>
                {% endfor %}
                </ul>
            {% endif %}
        {% endfor %}
    </div>
    {% if profile %}
        <input class="button" type="submit" value="Save Profile" />
    {% else %}
        <input class="button" type="submit" value="Create Profile" />
    {% endif %}
</form>
{% if profile %}
    <form action="{% url 'installer_config:DeleteEnv' profile.id %}" method="POST">{% csrf_token %}
        <input class="button" type="submit" value="Delete Profile" />
    </form>
{% endif %}
</div>

{% endblock %}

{% extends "../../installer/templates/index.html" %}


{% block body %}

<div class="back-button">
<a href="javascript:history.go(-1)"><h4><i class="fa fa-chevron-circle-left"></i> Back</h4></a>
</div>
<h1>Build An Environment</h1>

    <form action="" method="POST">{% csrf_token %}
    <div class="profileform">
        <div class="build-choices">
            {% for field in form %}
                {% if field|length == 1 %}
                    <h3>{{ field.label }}</h3>
                    <p>{{ field }}</p>
                {% else %}
                    <h3>Options</h3>
                    <ul>
                    {% for choice in field %}
                        <li>{{choice}} / 
                        d:{{choice.description}}</li>
                    {% endfor %}
                    </ul>
                {% endif %}
            {% endfor %}
        </div>
    </div>
    {% if profile %}
        <input class="button" type="submit" value="Save Profile" />
    {% else %}
        <input class="button" type="submit" value="Create Profile" />
    {% endif %}
</form>

{% if profile %}
    <form action="{% url 'installer_config:DeleteEnv' profile.id %}" method="POST">{% csrf_token %}
        <input class="button" type="submit" value="Delete Profile" />
    </form>
{% endif %}


{% endblock %}

Fix formatting in environment form
Fix formatting in environment form
