equal
deleted
inserted
replaced
2 {% load static %} |
2 {% load static %} |
3 {% load i18n %} |
3 {% load i18n %} |
4 {% load thumbnail %} |
4 {% load thumbnail %} |
5 |
5 |
6 {% block title %}{% trans "Annotate a picture" %}{% endblock %} |
6 {% block title %}{% trans "Annotate a picture" %}{% endblock %} |
7 |
|
8 {% block popins %} |
|
9 <div class="popin-wrap"> |
|
10 <div id="add-to-collection" class="popin popin-new-collection box-shadow"> |
|
11 <header> |
|
12 <h2>{% trans "Add to the collection" %}</h2> |
|
13 <a href="#" class="close-popin"></a> |
|
14 </header> |
|
15 <section> |
|
16 <form action="#"> |
|
17 <p> |
|
18 <label for="collection-name">{% trans "Add to" %} :</label> |
|
19 <label class="styled-select"> |
|
20 <select> |
|
21 <option selected="" value="/egonomy/allpictures/">Images</option> |
|
22 <option value="/egonomy/allfragments/">Fragments</option> |
|
23 </select> |
|
24 </label> |
|
25 </p> |
|
26 <p> |
|
27 <label class="block" for="image-description">{% trans "Image comment" %} :</label> |
|
28 <textarea name="" id="image-description"></textarea> |
|
29 </p> |
|
30 <div class="buttons"> |
|
31 <a href="#" class="btn close-popin">{% trans "Cancel" %}</a> |
|
32 <input class="btn" type="submit" value="{% trans 'Submit' %}"> |
|
33 </div> |
|
34 </form> |
|
35 </section> |
|
36 </div> |
|
37 </div> |
|
38 {% endblock %} |
|
39 |
7 |
40 {% block content %} |
8 {% block content %} |
41 <div class="title-page"> |
9 <div class="title-page"> |
42 <h2>{{ img.metadata.titre|default:_("No title") }}</h2> |
10 <h2>{{ img.metadata.titre|default:_("No title") }}</h2> |
43 </div> |
11 </div> |
50 <li> |
18 <li> |
51 <a class="icon cut" href="{% url 'create_fragment' image_id=img.id %}">{% trans "Create a fragment" %}</a> |
19 <a class="icon cut" href="{% url 'create_fragment' image_id=img.id %}">{% trans "Create a fragment" %}</a> |
52 </li> |
20 </li> |
53 <li> |
21 <li> |
54 {% if user.is_authenticated %} |
22 {% if user.is_authenticated %} |
55 <a class="icon plus open-popin" href="#add-to-collection">{% trans "Add to my collection" %}</a> |
23 <a class="icon plus open-popin" href="#add-to-collection">{% trans "Add to a collection" %}</a> |
56 {% else %} |
24 {% else %} |
57 <a class="icon plus" href="{% url 'login' %}?next={% url 'annotate_picture' image_id=img.id %}">{% trans "Add to my collection" %}</a> |
25 <a class="icon plus" href="{% url 'login' %}?next={% url 'annotate_picture' image_id=img.id %}">{% trans "Add to a collection" %}</a> |
58 {% endif %} |
26 {% endif %} |
59 </li> |
27 </li> |
60 <!--li> |
28 <!--li> |
61 <form action="#"> |
29 <form action="#"> |
62 <p> |
30 <p> |