From 337a458c4d2e06ce611fff60cb592df3bb96f88e Mon Sep 17 00:00:00 2001 From: luxagraf Date: Mon, 14 Feb 2022 21:15:36 -0500 Subject: lib: got rid of all ifequal in templates --- app/lttr/templates/lttr/postcard_subscribe.html | 2 +- templates/comments/form.html | 4 ++-- templates/comments/preview.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/lttr/templates/lttr/postcard_subscribe.html b/app/lttr/templates/lttr/postcard_subscribe.html index 7f96503..17d1564 100644 --- a/app/lttr/templates/lttr/postcard_subscribe.html +++ b/app/lttr/templates/lttr/postcard_subscribe.html @@ -19,7 +19,7 @@ html { overflow: hidden;} {% for field in form %}
{{field.label_tag}} - {%ifequal field.name "address"%}
{{ field }}
{%else%}{{field}}{%endifequal%} + {%if field.name == "address"%}
{{ field }}
{%else%}{{field}}{%endif%}
{% if forloop.last %}{%endif%} {% if field.errors %}{{field.errors}}{% endif %} diff --git a/templates/comments/form.html b/templates/comments/form.html index b70862f..129de90 100644 --- a/templates/comments/form.html +++ b/templates/comments/form.html @@ -10,9 +10,9 @@ {% if field.is_hidden %} {{ field }} {% else %} -
+
{{ field.label_tag }} - {%ifequal field.name "comment"%}
{{ field }}
{%else%}{{field}}{%endifequal%} + {%if field.name == "comment"%}
{{ field }}
{%else%}{{field}}{%endif%}
{% endif %} {% endfor %} diff --git a/templates/comments/preview.html b/templates/comments/preview.html index 9e27c81..b42e42d 100644 --- a/templates/comments/preview.html +++ b/templates/comments/preview.html @@ -29,9 +29,9 @@ class="detail"{%endblock%} {% if field.is_hidden %} {{ field }} {% else %} -