Browse Source

Adicionados barra e rodapé padrões aos templates do SIGI.

stable/1.0
Sesostris Vieira 12 years ago
parent
commit
fe61a8e176
  1. 58
      media/css/base_site.css
  2. 82
      sigi/templates/admin/base.html
  3. 46
      sigi/templates/admin/base_site.html
  4. 2
      sigi/templates/login.html
  5. 14
      sigi/templates/registration/logged_out.html

58
media/css/base_site.css

@ -144,12 +144,52 @@ img.chart {
width: 31%;
}
div.partners > ul > li {
display: inline;
}
div.utils li {
display: inline;
}
/* FOOTER */
#footer {
color: #555;
font-size: 0.9em;
text-align: center;
margin-top: 40px;
div#footer {
background-color: #25528C;
display: table;
margin: 4em 0 0;
padding: 0.5em 0;
vertical-align: middle;
width: 100%;
}
div#footer div.footernote {
width: 45%;
padding: 0.4em 1em;
text-align: left;
float: left;
}
div#footer div.footerlogos {
width: 50%;
padding: 0.4em 1em;
text-align: center;
margin-left: 50%;
border-left: 1px solid white;
}
div#footer div.footerlogos li {
display: inline;
margin-right: 2em;
}
div#footer p {
font-size: 0.7em;
font-weight: normal;
color: white;
}
div#footer a {
color: white;
}
/* JQuery */
@ -200,3 +240,11 @@ img.chart {
display: inline-block;
float: right;
}
#branding h1 {
float: left;
}
#user-tools {
position: inherit;
}

82
sigi/templates/admin/base.html

@ -0,0 +1,82 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE|default:"en-us" }}" xml:lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
<head>
<title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% load adminmedia %}{% admin_media_prefix %}css/base.css{% endblock %}" />
{% block extrastyle %}{% endblock %}
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{% block stylesheet_ie %}{% load adminmedia %}{% admin_media_prefix %}css/ie.css{% endblock %}" /><![endif]-->
{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% admin_media_prefix %}css/rtl.css{% endblock %}" />{% endif %}
<script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% admin_media_prefix %}{% endfilter %}";</script>
{% block extrahead %}{% endblock %}
{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
</head>
{% load i18n %}
<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
<!-- Container -->
<div id="container">
{% block container-top %}{% endblock %}
{% if not is_popup %}
<!-- Header -->
<div id="header">
<div id="branding">
{% block branding %}{% endblock %}
</div>
{% if user.is_active and user.is_staff %}
<div id="user-tools">
{% trans 'Welcome,' %}
<strong>{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}</strong>.
{% block userlinks %}
{% url django-admindocs-docroot as docsroot %}
{% if docsroot %}
<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> /
{% endif %}
{% url admin:password_change as password_change_url %}
{% if password_change_url %}
<a href="{{ password_change_url }}">
{% else %}
<a href="{{ root_path }}password_change/">
{% endif %}
{% trans 'Change password' %}</a> /
{% url admin:logout as logout_url %}
{% if logout_url %}
<a href="{{ logout_url }}">
{% else %}
<a href="{{ root_path }}logout/">
{% endif %}
{% trans 'Log out' %}</a>
{% endblock %}
</div>
{% endif %}
{% block nav-global %}{% endblock %}
</div>
<!-- END Header -->
{% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans 'Home' %}</a>{% if title %} &rsaquo; {{ title }}{% endif %}</div>{% endblock %}
{% endif %}
{% if messages %}
<ul class="messagelist">{% for message in messages %}
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
{% endfor %}</ul>
{% endif %}
<!-- Content -->
<div id="content" class="{% block coltype %}colM{% endblock %}">
{% block pretitle %}{% endblock %}
{% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}
{% block content %}
{% block object-tools %}{% endblock %}
{{ content }}
{% endblock %}
{% block sidebar %}{% endblock %}
<br class="clear" />
</div>
<!-- END Content -->
{% block footer %}<div id="footer"></div>{% endblock %}
</div>
<!-- END Container -->
</body>
</html>

46
sigi/templates/admin/base_site.html

@ -4,8 +4,8 @@
{% block title %}{{ title }} | SIGI{% endblock %}
{% block extrastyle %}
<link rel="stylesheet" type="text/css"
href="{{ MEDIA_URL }}css/base_site.css" />
<link rel="stylesheet" type="text/css" href="http://www.interlegis.leg.br/globalnav-estilos.css" />
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/base_site.css" />
{% endblock %}
{% block extrahead %}
@ -13,10 +13,27 @@
Direitos Reservados." />
{% endblock %}
{% block container-top %}
<ul id="globalnavbar">
<li class="globalnav-busca">
<form action="http://www.interlegis.leg.br/pesquisa">
<input type="hidden" name="cx" value="005989114056755709513:jxifhn8vsyw" />
<input type="hidden" name="cof" value="FORID:10" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" size="8" maxlength="255" value="Pesquisar" onBlur="if (this.value == '') { this.value = 'Pesquisar'; }" onFocus="if (this.value == 'Pesquisar') { this.value = ''; }" />
</form>
</li>
<li><a href="http://saberes.interlegis.leg.br/" title="Saberes - Ambiente de Aprendizagem a Distância" class="globalnav-saberes">Saberes</a></li>
<li><a href="http://colab.interlegis.leg.br/" title="Colab - Comunidades Interlegis" class="globalnav-colab">Colab</a></li>
<li><a href="https://intranet.interlegis.gov.br/" title="Intranet Interlegis" class="globalnav-intranet">Intranet</a></li>
<li><a href="http://www.interlegis.leg.br/" title="Portal Interlegis" class="globalnav-portal">Portal</a></li>
</ul>
{% endblock %}
{% block branding %}
<h1 id="site-name">
<a href="/sigi">Sistema de Informações Gerenciais do Interlegis</a>
</h1>
<h1 id="site-name">
<a href="/sigi">Sistema de Informações Gerenciais do Interlegis</a>
</h1>
{% endblock %}
{% block userlinks %}
@ -32,12 +49,23 @@
{% block footer %}
{% if not is_popup %}
<div id="footer">
<img src="{{ MEDIA_URL }}images/logo-interlegis.jpg">
<p>Copyright &copy; 2008&ndash;2010 Interlegis. Todos os Direitos Reservados.<br />
É proibido o uso das informações aqui fornecidas fora do âmbito do Interlegis.
<div id="footer">
<div class="footernote">
<p>Em caso de dúvida no uso do sistema contate o SPDT no ramal 2587.</p>
<p>É recomendado o uso das informações aqui fornecidas fora do âmbito do Interlegis.</p>
<p>SIGI é um software livre e seus fontes estão disponíveis no <a href="http://colab.interlegis.leg.br/wiki/ProjetoSigi">Colab</a>.</p>
</div>
<div class="footerlogos">
<ul>
<li><a href="http://www.senado.leg.br"><img title="Senado Federal" alt="Logotipo do Senado Federal" src="http://www.interlegis.leg.br/++theme++il.portalinterlegis/images/senado.png"></a></li>
<li><a href="http://www.camara.leg.br"><img title="Câmara dos Deputados" alt="Logotipo da Câmara dos Deputados" src="http://www.interlegis.leg.br/++theme++il.portalinterlegis/images/camara.png"></a></li>
<li><a href="http://www.iadb.org/pt"><img title="Banco Interamericano de Desenvolvimento" alt="Logotipo do Banco Interamericano de Desenvolvimento" src="http://www.interlegis.leg.br/++theme++il.portalinterlegis/images/bid.png"></a></li>
<li><a href="http://www.tcu.leg.br"><img title="Tribunal de Contas da União" alt="Logotipo do Tribunal de Contas da União" src="http://www.interlegis.leg.br/++theme++il.portalinterlegis/images/tcu.png"></a></li>
</ul>
</div>
</div>
{% endif %}
{% endblock %}

2
sigi/templates/login.html

@ -1,6 +1,8 @@
{% extends "admin/login.html" %}
{% load i18n %}
{% block container-top %}{% endblock %}
{% block branding %}
<h1 id="site-name">SIGI</h1>
{% endblock %}

14
sigi/templates/registration/logged_out.html

@ -0,0 +1,14 @@
{% extends "admin/base_site.html" %}
{% load i18n %}
{% block breadcrumbs %}{% endblock %}
{% block nav-global %}{% endblock %}
{% block content %}
<p>{% trans "Thanks for spending some quality time with the Web site today." %}</p>
<p><a href="../">{% trans 'Log in again' %}</a></p>
<p>Que bosta</p>
{% endblock %}
{% block footer %}{% endblock %}
Loading…
Cancel
Save