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