src/egonomy/templates/egonomy_all_collections.html
author cavaliet
Thu, 27 Jun 2013 12:51:32 +0200
changeset 168 c90576d18319
parent 159 b98558f8d2c1
child 204 1d22c4e915a9
permissions -rw-r--r--
argumentaire/list collection view
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
159
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
     1
{% extends "egonomy_newbase.html" %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
     2
{% load static %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
     3
{% load i18n %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
     4
{% load thumbnail %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
     5
{% load navigation %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
     6
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
     7
{% block title %}{% trans "All collection" %}{% endblock %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
     8
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
     9
{% block css_page %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    10
<style>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    11
.bar-tools:first-child {
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    12
    background-position: bottom center;
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    13
}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    14
</style>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    15
{% endblock %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    16
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    17
{% block popins %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    18
        <div id="new-collection" class="popin popin-new-collection box-shadow">
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    19
            <header>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    20
                <h2>{% trans "New collection" %}</h2>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    21
                <a href="#" class="close-popin"></a>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    22
            </header>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    23
            <section>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    24
                <form action="{% url 'new_collection' %}" method="POST">
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    25
                    <p>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    26
                        <label for="collection-title">{% trans "Title" %} :</label>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    27
                        <input type="text" name="collection-title" id="collection-title">
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    28
                    </p>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    29
                    <p>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    30
                        <label class="block" for="collection-description">{% trans "Description" %} :</label>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    31
                        <textarea name="collection-description" id="collection-description"></textarea>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    32
                    </p>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    33
                    <div class="buttons">
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    34
                        <a href="#" class="btn close-popin">{% trans "Cancel" %}</a>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    35
                        <input class="btn" type="submit" value="{% trans 'Submit' %}">
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    36
                    </div>{% csrf_token %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    37
                </form>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    38
            </section>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    39
        </div>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    40
{% endblock %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    41
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    42
{% block content %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    43
            <div class="bar-tools clearfix">
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    44
              {% if user_collections %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    45
                <h3>{% blocktrans count counter=results|length %}My collection{% plural %}My {{ counter }} collections{% endblocktrans %}</h3>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    46
              {% else %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    47
                <h3>{% trans "All collections" %}</h3>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    48
              {% endif %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    49
                <ul class="clearfix">
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    50
                    <li><a class="open-popin" href="#new-collection">{% trans "New collection" %}</a></li>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    51
                </ul>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    52
            </div>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    53
            {% if nb_pages > 1 %}{% build_pagination nb_pages cur_page_nb url_pagination "clickable" %}{% endif %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    54
            <ul class="list-projets-2 clearfix no-border-bot">
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    55
              {% for col in results %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    56
                <li>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    57
                {% include "partial/collection_in_list.html" %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    58
                </li>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    59
              {% endfor %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    60
            </ul>
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    61
            {% if nb_pages > 1 %}<p>{% build_pagination nb_pages cur_page_nb url_pagination "clickable" %}</p>{% endif %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    62
{% endblock %}
b98558f8d2c1 collection first step
cavaliet
parents:
diff changeset
    63