{% load i18n %} {% load crispy_forms_tags %} {% if leases < 1 %}
{% trans "You haven't created any leases yet, but you need one to create a template!" %} {% trans "Create a new lease now." %}
{% endif %} {% with form=form %} {% include "display-form-errors.html" %} {% endwith %} {% crispy form %}