summaryrefslogtreecommitdiff
path: root/templates/chimere/blocks/actions.html
blob: f806d6373c5ba87373748b8e02aebce2f3dc609e (plain)
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
{% load i18n chimere_tags %}<div class="navbar navbar-default navbar-fixed-top">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">{{PROJECT_NAME}}</a>
    </div>
    <div class="navbar-collapse collapse">
      <ul class="nav navbar-nav">
    {% for action, subactions in actions %}
        <li{% ifequal action.id action_selected.0 %} class="active"{% endifequal %}>
          <a href='{{ action.url }}' onclick='jQuery("#map").chimere("saveExtent");'>{{ action.label }}</a>
        </li>
    {% endfor %}
      </ul>
      <div class='tabbable navbar-right'>
      <ul class="nav nav-pills">
        {% if is_map %}
        {% if areas_visible %}
        <li>{% display_areas %}</li>
        <li><div id='permalink' class='ui-widget ui-button ui-state-default ui-corner-all'></div></li>
        <li>{% routing %}</li>
        <li>{% display_welcome %}</li>
        <li>{% display_news news_visible %}</li>
        <li><a id='simple_button' href='{% url chimere:simple_index area_name_slash %}'>{% trans "Simple map" %}</a></li>
        {% endif %}


        {% endif %}
        <li{% if not has_search %} class='active'{%endif%}><a href='#categories' data-toggle='panel'>{% trans "Categories "%}</a></li>
        {% if has_search %}
        <li class='active'><a href='#search-box' data-toggle='panel'>{% trans "Search" %}</a></li>
        {% endif %}
      </ul>
      </div>
    </div>
  </div>
</div>


<!--
<div id="topbar">
    <ul id='action' class='action'>
        {% for action, subactions in actions %}
        <li class='ui-widget ui-button ui-state-default ui-corner-all {% ifequal action.id action_selected.0 %} ui-state-active{% endifequal %}'>
            <a href='{{ action.url }}' onclick='jQuery("#map").chimere("saveExtent");'>{{ action.label }}</a>
        </li>
        {% endfor %}
    </ul>
    <ul id='action-2' class='action'>
    {% for action, subactions in actions %}
        {% ifequal action.id action_selected.0 %}{% if subactions %}
        {% for subaction in subactions %}
            <li class='ui-widget ui-button ui-state-default ui-corner-all{% ifequal subaction.id action_selected.1 %} ui-state-active{% endifequal %}'>
                <a href='{{ subaction.url }}' onclick='saveExtent();'>{{ subaction.label }}</a>
            </li>
        {% endfor %}
        {% endif %}{% endifequal %}
    {% endfor %}
    </ul>
</div>
!-->