src/hdalab/templates/categories.html
author rougeronj
Fri, 09 Jan 2015 11:08:09 +0100
changeset 421 2eee6f61f1c6
parent 396 064f4cdc48c3
child 459 699686ceb503
permissions -rw-r--r--
Add horizontal representation icon
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
205
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
     1
{% extends "base.html" %}
396
064f4cdc48c3 Set up css convention for the main titles of the pages and add translation support in main pages
rougeronj
parents: 387
diff changeset
     2
{% load i18n %}
279
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 271
diff changeset
     3
{% load static %}
205
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
     4
396
064f4cdc48c3 Set up css convention for the main titles of the pages and add translation support in main pages
rougeronj
parents: 387
diff changeset
     5
{% block title %}{{block.super}} > {% trans "Recherche par arbre" %}{% endblock %}
205
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
     6
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
     7
{% block css_import %}
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
     8
{{block.super}}
293
b33caeba7faa profile page first step
cavaliet
parents: 279
diff changeset
     9
        <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/ui-lightness/jquery-ui-1.10.4.min.css' %}" />
279
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 271
diff changeset
    10
        <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/trees.css?refresh' %}" />
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 271
diff changeset
    11
        <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/cattree.css?refresh' %}" />
205
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    12
{% endblock %}
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    13
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    14
{% block js_import %}
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    15
{{block.super}}
279
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 271
diff changeset
    16
        <script src="{% static 'hdalab/lib/underscore-min.js' %}"></script>
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 271
diff changeset
    17
        <script src="{% static 'hdalab/lib/mustache.js' %}"></script>
345
7bc38c7d6cf9 update libs + add wsgi interface
ymh <ymh.work@gmail.com>
parents: 293
diff changeset
    18
        <script src="{% static 'hdalab/lib/jquery-ui-1.10.4.min.js' %}"></script>
205
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    19
        <script type="text/javascript">
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    20
        endpoints = {
279
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 271
diff changeset
    21
            cat_search: "{% url 'cat_search' %}",
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 271
diff changeset
    22
            cat_tree: "{% url 'cat_tree' %}",
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 271
diff changeset
    23
            fill_tree: "{% url 'fill_tree' %}",
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 271
diff changeset
    24
            datasheet: "{% url 'notice' 'ID' %}"
205
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    25
        };
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    26
        </script>
279
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 271
diff changeset
    27
        <script src="{% static 'hdalab/js/trees.js?refresh' %}"></script>
177b508612f4 add, configure and correct hdalab to installed apps
cavaliet
parents: 271
diff changeset
    28
        <script src="{% static 'hdalab/js/cattree.js?refresh' %}"></script>
205
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    29
{% endblock %}
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    30
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    31
{% block categories_actif %}actif{% endblock %}
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    32
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    33
{% block main_content %}
396
064f4cdc48c3 Set up css convention for the main titles of the pages and add translation support in main pages
rougeronj
parents: 387
diff changeset
    34
	<div class="all-title">
064f4cdc48c3 Set up css convention for the main titles of the pages and add translation support in main pages
rougeronj
parents: 387
diff changeset
    35
        	<h1>{% trans "Explorer les domaines artistiques" %}</h1>
064f4cdc48c3 Set up css convention for the main titles of the pages and add translation support in main pages
rougeronj
parents: 387
diff changeset
    36
    </div>
205
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    37
    <div class="leftzone">
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    38
        <p>
234
568f35156573 Added discipline list to the left of categories view
veltr
parents: 205
diff changeset
    39
            Cette interface expérimentale présente les ressources d'<a href="http://histoiredesarts.culture.fr/" target="_blank">Histoire des Arts</a>,
568f35156573 Added discipline list to the left of categories view
veltr
parents: 205
diff changeset
    40
            ordonnées selon l'arborescence des <a href="http://fr.wikipedia.org/wiki/Sp%C3%A9cial:ArbreCat%C3%A9gorie/Espace_Cat%C3%A9gorie" target="_blank">catégories de Wikipédia</a>.
568f35156573 Added discipline list to the left of categories view
veltr
parents: 205
diff changeset
    41
            Seules les ressources les plus pertinentes sont affichées.
568f35156573 Added discipline list to the left of categories view
veltr
parents: 205
diff changeset
    42
        </p>
568f35156573 Added discipline list to the left of categories view
veltr
parents: 205
diff changeset
    43
        <ul class="disciplist">
568f35156573 Added discipline list to the left of categories view
veltr
parents: 205
diff changeset
    44
            <li><a href="#">Architecture</a></li>
568f35156573 Added discipline list to the left of categories view
veltr
parents: 205
diff changeset
    45
            <li><a href="#">Cinéma</a></li>
568f35156573 Added discipline list to the left of categories view
veltr
parents: 205
diff changeset
    46
            <li><a href="#">Littérature</a></li>
568f35156573 Added discipline list to the left of categories view
veltr
parents: 205
diff changeset
    47
            <li><a href="#">Musique</a></li>
568f35156573 Added discipline list to the left of categories view
veltr
parents: 205
diff changeset
    48
            <li><a href="#">Peinture</a></li>
568f35156573 Added discipline list to the left of categories view
veltr
parents: 205
diff changeset
    49
            <li><a href="#">Photographie</a></li>
568f35156573 Added discipline list to the left of categories view
veltr
parents: 205
diff changeset
    50
            <li><a href="#">Poésie</a></li>
568f35156573 Added discipline list to the left of categories view
veltr
parents: 205
diff changeset
    51
            <li><a href="#">Sculpture</a></li>
568f35156573 Added discipline list to the left of categories view
veltr
parents: 205
diff changeset
    52
            <li><a href="#">Théâtre</a></li>
568f35156573 Added discipline list to the left of categories view
veltr
parents: 205
diff changeset
    53
        </ul>
248
91bc8521e3cb Ajout de la navigation par thesaurus
veltr
parents: 234
diff changeset
    54
        <h3>Recherche de catégories de Wikipédia&nbsp;: </h3>
234
568f35156573 Added discipline list to the left of categories view
veltr
parents: 205
diff changeset
    55
        <p>
568f35156573 Added discipline list to the left of categories view
veltr
parents: 205
diff changeset
    56
            <form id="catform"><input id="catsearch" /></form>
205
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    57
        </p>
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    58
        <div class="results hidden">
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    59
            <h2>Résultats pour &laquo;&nbsp;<span class="label-name"></span>&nbsp;&raquo;&nbsp;:</h2>
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    60
            <p class="category-results"><span class="category-count"></span> sous-catégorie(s)</p>
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    61
            <p class="tag-results"><span class="tag-count"></span> tag(s)</p>
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    62
            <p class="content-results"><span class="content-count"></span> contenu(s)</p>
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    63
        </div>
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    64
    </div>
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    65
    <div id="tree" class="cattree"></div>
8ff4fd1a6e9c Added categories page
veltr
parents:
diff changeset
    66
{% endblock %}