add class selector dynamically to product search form

remotes/origin/HEAD
Max Yakovenko 8 years ago
parent f2631f679c
commit c00eabc552
  1. 8
      templates/bootstrap/forms/product_search.html

@ -1,4 +1,10 @@
{% load static %}
{% load crispy_forms_field %}
{% if input.name == "search" %}<button class="left-menu__search-btn"><img src="{% static "img/search.svg"%}" alt="Поиск"></button>{% else %}{{ field }}{% endif %}
{% spaceless %}
{% if input.name == "search" %}
<button class="{{ input.field_classes }}"><img src="{% static "img/search.svg" %}" alt="Поиск"></button>
{% else %}
{{ field }}
{% endif %}
{% endspaceless %}

Loading…
Cancel
Save