Source du gabarit : main/index.html

{% extends "base.html" %}
{% load i18n static %}

{% block header %}
    {% include 'frags/header.html' %}
{% endblock%}

{% block content %}
<!--debut bloc content-->
    <section class="wrapper wrapper--centered section section--home">
        <div class="column column--centered column--centered-w">
            <img class="logo--big" src="{% static 'img/communes_et_commerces-logo.svg' %}" alt="Logo Communes et commerces">

            <div class="title__commune-commerce">
                <h1 class="title__medium title__medium--no-margin">Communes-Commerces.be</h1>
                <p>L’annuaire des Commerces de votre Commune</p>
            </div>
        </div>

        <div class="research wrapper--centered">
            <div class="research__field--full">
                <span class="research__btn"></span>
                <select id="select-mun" class="input--select2--d-placeholder"  data-placeholder="Choisis ta Commune ..." onchange="if (this.selectedIndex) window.location.href = this.value;">
                    <option></option>
                    {% for municipality in municipalities %}
                        <option value="{% url 'municipality' municipality.name municipality.postal_code %}">{{municipality.postal_code}} - {{municipality.name}}</option>
                    {% endfor %}
                </select>
            </div>
        </div>

        <p class="p--center">Le Commerce de qualité est le Commerce de proximité !</p>
    </section>

    <section class="wrapper wrapper--centered">
        <h2 class="title__medium title__medium--small-margin text--center">Trouver les Commerces de ma région</h2>

        <a class="text--center  text--color link" title="Accéder à la liste des commerces complètes" href="{% url 'province' %}">Consulter la liste complètes des Communes</a>

        <div class="list-municipality">
            <ul>
                {% for m in municipalities_index %}
                    <li>
                        <a title="Accéder à la commune {{m.name}}" href="{% url 'municipality' m.name m.postal_code%}">{{m.name}}</a>
                    </li>
                {% endfor %}
            </ul>
        </div>
    </section>
<!--fin bloc content-->
{% endblock %}


{% block footer %}
    {% include 'frags/footer.html' %}
{% endblock %}