| author | veltr |
| Mon, 18 Feb 2013 17:24:37 +0100 | |
| changeset 44 | f2d7c97b7ec9 |
| parent 43 | 119cd616faa4 |
| child 69 | 412ab5e76c65 |
| permissions | -rw-r--r-- |
| 9 | 1 |
{% load static %} |
2 |
{% load i18n %} |
|
3 |
{#% load analytics %#} |
|
4 |
<!DOCTYPE html> |
|
5 |
<html lang="fr"> |
|
6 |
{% block head %} |
|
7 |
<head> |
|
8 |
<meta charset="utf-8" /> |
|
9 |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
|
10 |
<title>TagItAll by eGonomy » {% block title %}Base{% endblock %}</title> |
|
| 15 | 11 |
{% block css_declaration %}{% endblock %} |
| 9 | 12 |
{% block css_import %} |
13 |
<link rel="stylesheet" href="{% static 'egonomy/css/egonomy.css' %}" /> |
|
14 |
{% endblock %} |
|
| 15 | 15 |
{% block css_page %}{% endblock %} |
| 44 | 16 |
{% block js_import %} |
17 |
<script type="text/javascript" src="{% static 'egonomy/lib/jquery.min.js' %}"></script> |
|
18 |
{% endblock %} |
|
19 |
{% block js_inline %} |
|
20 |
<script type="text/javascript"> |
|
21 |
$(function() { |
|
22 |
$(".search-type").change(function() { |
|
23 |
$(".search-form").attr("action", $(this).val()); |
|
24 |
if ($(".search-field").val()) { |
|
25 |
$(".search-form").submit(); |
|
26 |
} |
|
27 |
}); |
|
28 |
}); |
|
29 |
</script> |
|
30 |
{% endblock %} |
|
| 9 | 31 |
</head> |
32 |
{% endblock %} |
|
33 |
<body> |
|
34 |
<div class="header-wrap fullwidth"> |
|
35 |
<header> |
|
36 |
<h1 class="column column-third"><a href="{% url 'home' %}">TagItAll {% trans "by" %} eGonomy</a></h1> |
|
| 44 | 37 |
<form class="search-form column column-third" action="{% if search_fragment %}{% url 'all_fragments' %}{% else %}{% url 'all_pictures' %}{% endif %}" method="GET"> |
| 20 | 38 |
<input class="search-field" type="search" placeholder="{% trans 'Search' %}" id="id_search" name="search"/> |
| 44 | 39 |
<select class="search-type"> |
40 |
<option value="{% url 'all_pictures' %}"{% if not search_fragment %} selected{% endif %}>Images</option> |
|
41 |
<option value="{% url 'all_fragments' %}"{% if search_fragment %} selected{% endif %}>Fragments</option> |
|
42 |
</select> |
|
| 20 | 43 |
<input type="hidden" value="all" name="field"> |
| 9 | 44 |
</form> |
45 |
<nav class="column column-third"> |
|
|
23
bb7819c8d7c2
first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents:
20
diff
changeset
|
46 |
{% if user.is_authenticated %} |
|
bb7819c8d7c2
first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents:
20
diff
changeset
|
47 |
{{ user.username }} : <a href="{% url 'logout' %}?next={% url 'home' %}">{% trans "Log out" %}</a> |
|
bb7819c8d7c2
first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents:
20
diff
changeset
|
48 |
{% else %} |
|
bb7819c8d7c2
first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents:
20
diff
changeset
|
49 |
<a href="{% url 'login' %}">{% trans "Log in" %}</a> |
|
bb7819c8d7c2
first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents:
20
diff
changeset
|
50 |
{% endif %} |
| 9 | 51 |
</nav> |
52 |
</header> |
|
53 |
</div> |
|
54 |
<div class="main-wrap fullwidth"> |
|
55 |
<div class="main"> |
|
56 |
{% block content %} |
|
57 |
{% endblock %} |
|
58 |
<footer class="fullwidth"> |
|
59 |
<ul class="footer-list"> |
|
60 |
<li>© IRI 2013</li> |
|
61 |
</ul> |
|
62 |
</footer> |
|
63 |
</div> |
|
64 |
</div> |
|
65 |
{#% analytics %#} |
|
66 |
</body> |
|
67 |
</html> |