Browse Source

Redesign map page for bootstrap

producao
Marcio Mazza 10 years ago
parent
commit
75601fb5e7
  1. 54
      sigi/apps/metas/templates/metas/mapa.html
  2. 4
      sigiStatic/css/base_site.css
  3. 9
      templates/admin/base.html

54
sigi/apps/metas/templates/metas/mapa.html

@ -1,5 +1,6 @@
{% extends "admin/base_site.html" %} {% extends "admin/base_site.html" %}
{% load static from staticfiles %} {% load static from staticfiles %}
{% load i18n %}
{% block title %}SIGI{% endblock %} {% block title %}SIGI{% endblock %}
@ -23,24 +24,41 @@
{% block content_title %} {% block content_title %}
<h1>Mapa de atuação do Interlegis</h1> <h1>Mapa de atuação do Interlegis</h1>
<div id="changelist"> {% endblock %}
<div id="toolbar">
<form method="get" action="" id="changelist-search"> {% block object-tools %}
<div><!-- DIV needed for valid HTML --> {{ block.super }}
<label for="searchbar"><img alt="Search" src="{% static 'admin/img/icon_searchbox.png' %}" ></label> <form class="navbar-form navbar-right" role="search" id="changelist-search" action="" method="get">
<input type="text" id="searchbar" value="" name="q" size="40"> <div class="form-group"><!-- DIV needed for valid HTML -->
<input type="submit" value="Pesquisar"> <div class="input-group">
<span id="search-panel" class="small quiet">&nbsp;</span> <input type="text" class="form-control search-query" placeholder="{% trans 'Search' %}" size="40" name="q" value="" id="searchbar" />
</div> <span class="input-group-btn">
</form> <button class="btn btn-default" type="submit">
<ul class="object-tools"> <span class="glyphicon glyphicon-search"></span>
<li> <a href="/dashboard/mapsum/" id="summary_report" onclick="return false;">Relatório resumo</a> </li> </button>
<li> <a href="/dashboard/maplist/" id="list_report" onclick="return false;">Listagem das Casas</a> </li> </span>
<li> <a href="/dashboard/maplist/?fmt=csv" id="list_csv" onclick="return false;">Exportar Casas</a> </li> </div>
<li> <a href="#" id="closeiwlink">Fechar todas as janelas de informação</a> </li> </div>
</ul> </form>
</div> {% endblock %}
</div>
{% block object-tools-items %}
<li><a href="/dashboard/mapsum/" id="summary_report" onclick="return false;">
<span class="glyphicon glyphicon-th-large"></span>
Relatório resumo
</a></li>
<li><a href="/dashboard/maplist/" id="list_report" onclick="return false;">
<span class="glyphicon glyphicon-list"></span>
Listagem das Casas
</a></li>
<li><a href="/dashboard/maplist/?fmt=csv" id="list_csv" onclick="return false;">
<span class="glyphicon glyphicon-export"></span>
Exportar Casas
</a></li>
<li><a href="#" id="closeiwlink">
<span class="glyphicon glyphicon-remove"></span>
Fechar todas as janelas de informação
</a></li>
{% endblock %} {% endblock %}
{% block content %} {% block content %}

4
sigiStatic/css/base_site.css

@ -209,6 +209,10 @@ h1 {
margin-bottom: 20px; margin-bottom: 20px;
} }
#navbar-object-tools {
margin-bottom: 10px;
}
.form-group button { .form-group button {
/* TODO: /* TODO:
consider undoing change done to '.form-group input[type="text"]' consider undoing change done to '.form-group input[type="text"]'

9
templates/admin/base.html

@ -147,9 +147,12 @@
{% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %} {% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}
{% block navbar %} {% block navbar %}
<div class="nav"> <div id="navbar-object-tools" class="nav">
{% block pretitle %}{% endblock %} {% block object-tools %}
{% block object-tools %}{% endblock %} <ul class="object-tools pull-left nav nav-pills">
{% block object-tools-items %}{% endblock %}
</ul>
{% endblock %}
</div> </div>
{% endblock navbar %} {% endblock navbar %}

Loading…
Cancel
Save