diff options
Diffstat (limited to 'templates/chimere/blocks/actions.html')
| -rw-r--r-- | templates/chimere/blocks/actions.html | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/templates/chimere/blocks/actions.html b/templates/chimere/blocks/actions.html new file mode 100644 index 0000000..f806d63 --- /dev/null +++ b/templates/chimere/blocks/actions.html @@ -0,0 +1,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> +!--> |
