|
121
|
1 |
{% load static %} |
|
|
2 |
{% load i18n %} |
|
|
3 |
<!DOCTYPE html> |
|
|
4 |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> |
|
|
5 |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> |
|
|
6 |
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> |
|
|
7 |
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> |
|
|
8 |
{% block head %} |
|
|
9 |
<head> |
|
|
10 |
<meta charset="utf-8"> |
|
|
11 |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
|
|
12 |
<meta name="description" content="eGonomy"> |
|
|
13 |
<title>TagItAll by eGonomy » {% block title %}Base{% endblock %}</title> |
|
|
14 |
{% block css_declaration %}{% endblock %} |
|
|
15 |
{% block css_import %} |
|
|
16 |
<link rel="stylesheet" href="{% static 'egonomy/css/reset.css' %}" /> |
|
|
17 |
<link rel="stylesheet" href="{% static 'egonomy/css/fonts.css' %}" /> |
|
|
18 |
<link rel="stylesheet" href="{% static 'egonomy/css/style.css' %}" /> |
|
|
19 |
{% endblock %} |
|
|
20 |
{% block css_page %}{% endblock %} |
|
|
21 |
</head> |
|
|
22 |
{% endblock %} |
|
|
23 |
<body> |
|
159
|
24 |
<div class="popin-wrap"> |
|
168
|
25 |
{% if current_user_collection_list %} |
|
159
|
26 |
<div id="add-to-collection" class="popin popin-new-collection box-shadow"> |
|
|
27 |
<header> |
|
|
28 |
<h2>{% trans "Add to the collection" %}</h2> |
|
|
29 |
<a href="#" class="close-popin"></a> |
|
|
30 |
</header> |
|
|
31 |
<section> |
|
168
|
32 |
<form action="{% url 'add_item' %}" method="POST"> |
|
159
|
33 |
<p> |
|
|
34 |
<label for="collection-name">{% trans "Add to" %} :</label> |
|
|
35 |
<label class="styled-select"> |
|
168
|
36 |
<select name="collection-pk"> |
|
159
|
37 |
{% for c in current_user_collection_list %} |
|
|
38 |
<option value="{{ c.pk }}">{{ c.title }}</option> |
|
|
39 |
{% endfor %} |
|
|
40 |
</select> |
|
|
41 |
</label> |
|
|
42 |
</p> |
|
|
43 |
<p> |
|
168
|
44 |
<label class="block" for="item-description">{% trans "Image comment" %} :</label> |
|
|
45 |
<textarea name="item-description" id="item-description"></textarea> |
|
159
|
46 |
</p> |
|
|
47 |
<div class="buttons"> |
|
|
48 |
<a href="#" class="btn close-popin">{% trans "Cancel" %}</a> |
|
|
49 |
<input class="btn" type="submit" value="{% trans 'Submit' %}"> |
|
|
50 |
</div> |
|
168
|
51 |
<input class="item-type" name="item-type" type="hidden" value=""> |
|
|
52 |
<input class="item-id" name="item-id" type="hidden" value="">{% csrf_token %} |
|
159
|
53 |
</form> |
|
|
54 |
</section> |
|
|
55 |
</div> |
|
168
|
56 |
{% endif %} |
|
|
57 |
{% block popins %}{% endblock %} |
|
159
|
58 |
</div> |
|
121
|
59 |
<div class="wrap"> |
|
|
60 |
<header class="clearfix"> |
|
|
61 |
<h1><a href="{% url 'home' %}">egonomy</a></h1> |
|
|
62 |
<div class="col-right"> |
|
|
63 |
<ul class="head-login clearfix"> |
|
|
64 |
<li> |
|
153
|
65 |
<form id="search-form" action="{% if search_fragment %}{% url 'all_fragments' %}{% else %}{% url 'all_pictures' %}{% endif %}" method="GET"> |
|
121
|
66 |
<p> |
|
159
|
67 |
<input id="search-field" type="text" placeholder="{% trans 'Search' %}" name="search"/> |
|
149
|
68 |
<label class="styled-select"> |
|
153
|
69 |
<select id="search-type"> |
|
149
|
70 |
<option value="{% url 'all_pictures' %}"{% if not search_fragment %} selected{% endif %}>Images</option> |
|
|
71 |
<option value="{% url 'all_fragments' %}"{% if search_fragment %} selected{% endif %}>Fragments</option> |
|
|
72 |
</select> |
|
|
73 |
</label> |
|
121
|
74 |
<input type="hidden" value="all" name="field"> |
|
|
75 |
</p> |
|
|
76 |
</form> |
|
|
77 |
</li> |
|
|
78 |
{% if user.is_authenticated %} |
|
207
|
79 |
<li class="hello-user">{% trans "Hello" %} <a href="{% url 'user_fragments' username=user %}">{{ user.username }}</a> |
|
121
|
80 |
<li><span class="dot-6"></span></li> |
|
|
81 |
<li><a href="{% url 'logout' %}?next={% url 'home' %}">{% trans "Log out" %}</a></li> |
|
|
82 |
{% else %} |
|
|
83 |
<li class="hello-user"><a href="{% url 'login' %}">{% trans "Log in" %}</a></li> |
|
|
84 |
{% endif %} |
|
|
85 |
</ul> |
|
|
86 |
<nav> |
|
|
87 |
<ul class="nav clearfix"> |
|
207
|
88 |
<li><a href="{% url 'all_pictures' %}">{% trans "explore" %}</a></li> |
|
121
|
89 |
<li><span class="dot-10"></span></li> |
|
207
|
90 |
<li><a href="{% url 'all_collections' %}">{% trans "collect" %}</a></li> |
|
121
|
91 |
<!--li><span class="dot-10"></span></li> |
|
|
92 |
<li><a href="#">créer</a></li> |
|
|
93 |
<li><span class="dot-10"></span></li> |
|
|
94 |
<li><a href="">mon profil</a></li--> |
|
|
95 |
</ul> |
|
|
96 |
{% if user.is_authenticated %} |
|
|
97 |
<ul class="sub-nav clearfix"> |
|
207
|
98 |
<li><a href="{% url 'user_collections' username=user %}" {% if user_collections %}class="active"{% endif %}>{% trans "my collections" %}</a></li> |
|
121
|
99 |
<li><span class="dot-6"></span></li> |
|
207
|
100 |
<li><a href="{% url 'user_fragments' username=user %}" {% if user_fragments %}class="active"{% endif %}>{% trans "my fragments" %}</a></li> |
|
121
|
101 |
<!--li><span class="dot-6"></span></li> |
|
|
102 |
<li><a href="#">mon profil</a></li--> |
|
|
103 |
</ul> |
|
|
104 |
{% endif %} |
|
|
105 |
</nav> |
|
|
106 |
</div> |
|
|
107 |
</header> |
|
|
108 |
<section> |
|
|
109 |
{% block content %} |
|
|
110 |
{% endblock %} |
|
|
111 |
</section> |
|
|
112 |
<footer class="clearfix"> |
|
|
113 |
<!--h6>EGONOMY est un projet de l’IRI et de la réunion des Musées Nationaux</h6--> |
|
|
114 |
<p>© IRI 2013 - v{{ VERSION }}</p> |
|
|
115 |
</footer> |
|
|
116 |
{% block js_common %} |
|
|
117 |
<script type="text/javascript" src="{% static 'egonomy/lib/jquery.min.js' %}"></script> |
|
|
118 |
<script type="text/javascript" src="{% static 'egonomy/js/masonry.min.js' %}"></script> |
|
|
119 |
<script type="text/javascript" src="{% static 'egonomy/js/main.js' %}"></script> |
|
|
120 |
{% endblock %} |
|
159
|
121 |
<script type="text/javascript"> |
|
|
122 |
$(function() { |
|
|
123 |
$("#search-type").change(function() { |
|
|
124 |
$("#search-form").attr("action", $(this).val()); |
|
|
125 |
if ($("#search-field").val()) { |
|
|
126 |
$("#search-form").submit(); |
|
|
127 |
} |
|
|
128 |
}); |
|
|
129 |
}); |
|
|
130 |
</script> |
|
121
|
131 |
{% block js_page %} |
|
|
132 |
{% endblock %} |
|
|
133 |
</body> |
|
|
134 |
</html> |