{% extends "vac-templater/vcl/layout.html" %} {% load i18n %} {% load vac_templater_base_helpers %} {% load vac_templater_widget_helpers %} {% block title %}{% trans 'VCL' %} > {% trans 'Deploy' %}{% endblock %} {% block sidebar_section %}deploy{% endblock %} {% block sidebar_content %} {% capture vac_url %}{% settings_value 'VAC_LOCATION' %}{% endcapture %}
{% csrf_token %} {% if cache_group_form %}

{% trans '1. Choose a cache group...' %}

{{ cache_group_form.group|add_class:"form-control" }}
{% for error in cache_group_form.group.errors %} {% endfor %}
{% endif %} {% if deploy_form %}

{% trans '2. Modify any settings you want...' %}

{% if deploy_form.vcl_commit %} {% if deploy_form.config %} {% if deploy_form.visible_fields %} {% for field in deploy_form.hidden_fields %} {{ field }} {% endfor %} {% for setting in deploy_form.config.settings %} {% include 'vac-templater/vcl/_setting.html' with setting=setting form=deploy_form only %} {% endfor %}
{% else %}

{% blocktrans %} There are no settings to edit in this VCL. Use the VAC to edit it and add some custom VAC Templater configuration. {% endblocktrans %}

{% endif %} {% else %}

{% blocktrans %} Fix these errors on the VAC Templater configuration at the currently loaded VCL by using the VAC. {% endblocktrans %}

{% endif %} {% else %}

{% blocktrans %} This cache group has no associated VCL. Use the VAC to load one. {% endblocktrans %}

{% endif %}
{% endif %}
{% endblock %}