Template source: website/products-search-list.html

{% extends "website/base.html" %}
{% load static website_tags kway_tags nav_tags %}

{% block description %}{% ktrans "seo_description_prodotti_cerca_listini" %}{% endblock %}
{% block keywords %}{% ktrans "seo_keywords_prodotti_cerca_listini" %}{% endblock %}

{% block header %}
{{ block.super }}
{% endblock %}

{% block content %}
{{ block.super }}
        <div class="page-listini">

            <div class="container-fluid">
                <header>
                    <div class="header-heading-wrapper">
                        <h1 class="heading">{{ nav_page.name }}</h1>
                    </div>
                </header>
            </div>

            <div class="container">

                <div class="row">

                    <div class="col-xs-12 col-sm-12 col-md-10 col-md-offset-1 col-lg-10 col-lg-offset-1 col-xl-10 col-xl-offset-1">


                        <!-- begin filtri di ricerca -->
                        <div class="element-row search-form">
                            <div class="row">
                                {% comment %}
                                <!--
                                <div class="col-md-9 col-centered">
                                    <form method="GET" action="{% nav_url %}">
                                        <div class="row form-wrapper">
                                            <div class="col-sm-5">
                                                <label for="listiniMarcaSelect">Marca:</label>
                                                <select id="listiniMarcaSelect" class="form-control" name="marca">
                                                    <option value="tutte" {% if not catalog_brand_filter %}selected{% endif %}>Tutte</option>
                                                    {% for obj in catalog_brands %}
                                                    <option value="{{ obj.slug }}" {% if obj.slug == catalog_brand_filter %}selected{% endif %}>{{ obj.name }}</option>
                                                    {% endfor %}
                                                </select>
                                            </div>
                                            <div class="col-sm-5">
                                                <label for="listiniPeriodoSelect">Periodo:</label>
                                                <select id="listiniPeriodoSelect" class="form-control" name="periodo">
                                                    <option value="tutti" {% if not catalog_periods_filter %}selected{% endif %}>Tutti</option>
                                                    {% for obj in catalog_periods %}
                                                    <option value="{{ obj.value }}" {% if obj.value == catalog_periods_filter %}selected{% endif %}>{{ obj.label }}</option>
                                                    {% endfor %}
                                                </select>
                                            </div>
                                            <div class="col-sm-2">
                                                <label class="hidden-xs">&nbsp;</label>
                                                <input class="btn btn-primary btn-block" type="submit" value="Cerca">
                                            </div>
                                        </div>
                                    </form>
                                </div>
                                -->
                                {% endcomment %}
                                <div class="col-md-12">
                                    <form method="GET" action="{% nav_url %}">
                                        <div class="row form-wrapper">
                                            <div class="col-sm-4">
                                                <label for="listiniMarcaSelect">{% ktrans "brand" default="Marca" %}:</label>
                                                <select id="listiniMarcaSelect" class="form-control" name="marca">
                                                    <option value="tutte" {% if not catalog_brand_filter %}selected{% endif %}>{% ktrans "brands_all" default="Tutte" %}</option>
                                                    {% for obj in catalog_brands %}
                                                    <option value="{{ obj.slug }}" {% if obj.slug == catalog_brand_filter.slug %}selected{% endif %}>{{ obj.name }}</option>
                                                    {% endfor %}
                                                </select>
                                            </div>
                                            <div class="col-sm-2">
                                                <label class="hidden-xs">&nbsp;</label>
                                                <input class="btn btn-primary btn-block" type="submit" value="{% ktrans "search" default="Cerca" %}">
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                        <!-- begin filtri di ricerca -->

                        {% if catalog_results or True %}
                        <!-- begin risultati di ricerca -->
                        <div class="element-row listini-wrapper">
                            <div class="row">
                                <div class="col-xs-12">

                                    {% for group in catalog_lists %}
                                    <table class="listini-table">
                                        <tr>
                                            <td class="listini-brand">
                                                <table>
                                                    {% for obj in group %}
                                                    {% if forloop.first %}
                                                    <tr>
                                                        <td>{% if obj.image_url %}<img src="{{ obj.image_url }}" alt="{{ obj.Descrizione }}">{% else %}&nbsp;{% endif %}</td>
                                                    </tr>
                                                    {% endif %}
                                                    {% endfor %}
                                                </table>
                                            </td>
                                            <td class="listini-info">
                                                <table>
                                                    {% for obj in group %}
                                                    <tr>
                                                        <td><a class="btn btn-pdf btn-primary btn-sm" href="{% nav_url "products-download-list-pdf" %}?id={{ obj.CodListini }}&name=listino-{{ obj.Descrizione|slugify }}" target="_blank" role="button">{% ktrans "listino" default="Listino" %} {{ obj.DescrizioneBreve|lower }}</a></td>
                                                        <td>{{ obj.date_month|date:"F Y" }}</td>
                                                        <td>(dal: {{ obj.date|date:"d/m/Y" }})</td>
                                                    </tr>
                                                    {% endfor %}
                                                </table>
                                            </td>
                                        </tr>
                                    </table>

                                    <hr>
                                    {% endfor %}

                                </div>
                            </div>
                        </div>
                        <!-- end risultati di ricerca -->
                        {% endif %}

                    </div>

                </div>

            </div>

        </div>
{% endblock %}

{% block footer %}
{{ block.super }}
{% endblock %}