-
Notifications
You must be signed in to change notification settings - Fork 162
/
details.html
111 lines (87 loc) · 3.66 KB
/
details.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{% extends "gallery/base.html" %}
{% load crispy_forms_tags %}
{% load profile %}
{% load captureas %}
{% block title %}
{{ gallery.title }}
{% endblock %}
{% block breadcrumb %}
<li>{{ gallery.title }}</li>
{% endblock %}
{% block headline %}
{{ gallery.title }}
{% endblock %}
{% block headline_sub %}
{{ gallery.subtitle }}
{% endblock %}
{% block new_btn %}
<a href="{% url "zds.gallery.views.new_image" gallery.pk %}" class="new-btn ico-after more blue">
Ajouter une image
</a>
<a href="{% url "zds.gallery.views.import_image" gallery.pk %}" class="new-btn ico-after more blue">
Importer une archive
</a>
{% endblock %}
{% block content %}
<div class="authors">
<span class="authors-label">Galerie partagée avec : </span>
<ul>
{% for u in gallery.get_users %}
{% captureas info %}
{% if u.mode == 'R' %}
Lecture
{% elif u.mode == 'W' %}
Écriture
{% endif %}
{% endcaptureas %}
<li>
{% include "misc/member_item.part.html" with member=u.user avatar=True %}
</li>
{% endfor %}
{% if gallery_mode.is_write %}
<li>
<a href="#add-user-modal" class="open-modal ico-after more blue">Ajouter un utilisateur</a>
<div id="add-user-modal" class="modal modal-big">
{% crispy form %}
</div>
</li>
{% endif %}
</ul>
</div>
<form id="form" name="form" method="post" action="{% url "zds.gallery.views.delete_image" %}">
<input type="hidden" name="gallery" value="{{ gallery.pk }}">
<button class="btn btn-cancel" name="delete_multi">Supprimer la sélection</button>
<button class="toggle-gallery-view btn btn-grey" type="button" title="Alterner entre les modes de vue grille et liste">
Vue grille
</button>
<div class="gallery topic-list list-view clearfix navigable-list">
{% for img in gallery.get_images %}
<div class="topic gallery-item navigable-elem">
<div class="topic-infos">
<input name="items" type="checkbox" value="{{ img.pk }}">
</div>
<div class="topic-description">
<a href="{% url "zds.gallery.views.edit_image" gallery.pk img.pk %}" class="topic-title-link navigable-link">
<img src="{{ img.physical.gallery.url }}"
data-caption="{{ img.title }}"
alt="{{ img.title }}"
class="topic-image"
>
<span class="topic-title">{{ img.title }}</span>
<span class="topic-subtitle">{{ img.legend|default:"" }}</span>
</a>
</div>
</div>
{% empty %}
<p>
Aucune image. <br>
Cliquez sur <em>Ajouter une image</em> pour en ajouter !
</p>
{% endfor %}
<a href="{% url "zds.gallery.views.new_image" gallery.pk %}" title="Ajouter une image" class="gallery-item add-image">+</a>
</div>
<button class="btn btn-cancel" name="delete_multi">Supprimer la sélection</button>
<button class="toggle-gallery-view btn btn-grey" type="button"></button>
{% csrf_token %}
</form>
{% endblock %}