From 961c7020a121f483bbd245818c54da75fcc89725 Mon Sep 17 00:00:00 2001 From: Max Yakovenko Date: Mon, 23 Jul 2018 03:16:55 +0300 Subject: [PATCH] refactor conctact us form --- templates/bootstrap/forms/contact_us.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/templates/bootstrap/forms/contact_us.html b/templates/bootstrap/forms/contact_us.html index d1ffafa..638b80b 100644 --- a/templates/bootstrap/forms/contact_us.html +++ b/templates/bootstrap/forms/contact_us.html @@ -1,7 +1,9 @@ {% load crispy_forms_tags %} -{% if input.tag == "input" %} - {{ input }} -{% else %} - {{ field }} -{% endif %} +{% spaceless %} + {% if input.tag == "input" %} + {{ input }} + {% else %} + {{ field }} + {% endif %} +{% endspaceless %}