{% extends "layout2.html" %} {% load i18n %} {% load static %} {% block css_include %} {% endblock %} {% block js_include %} {% endblock %} {% block content %}
{# Print form errors correctly #} {% if form.non_field_errors %}

{% translate "Form errors" %}

{{ form.non_field_errors|safe }}
{% endif %} {# If there is save/configuration errors #} {% if save_error %} {% endif %}
{% csrf_token %}
{% endblock %} {% block jquery_code %} /* Switchery mandatory code */ var elems = Array.prototype.slice.call(document.querySelectorAll('.js-switch')); elems.forEach(function(html) { var switchery = new Switchery(html, { 'color': '#FA9834', }); }); /* Initialise tag-editor objects */ $(".tag-editor").tagEditor({ delimiter: ',' }); /* Initialise select2 objects */ $('.select2').select2(); $('.link-tab').click(function(){ window.location.href = ($(this).attr('href')); }); {% endblock %}