Browse Source

Usando static tag nos templates ao inves da variavel STATIC_URL

producao
Marcio Mazza 10 years ago
parent
commit
074f9d2059
  1. 3
      sigi/apps/diagnosticos/templates/admin/diagnosticos/diagnostico/change_list.html
  2. 9
      sigi/apps/diagnosticos/templates/diagnosticos/diagnosticos_login.html
  3. 5
      sigi/apps/diagnosticos/templates/diagnosticos/graficos.html
  4. 10
      sigi/apps/diagnosticos/templates/diagnosticos/mapa.html
  5. 3
      sigi/apps/metas/templates/admin/metas/planodiretor/change_list.html
  6. 16
      sigi/apps/metas/templates/metas/mapa.html
  7. 7
      templates/admin/app_index.html
  8. 5
      templates/admin/base_site.html
  9. 60
      templates/admin/carrinho.html
  10. 25
      templates/admin/tabs_style.html
  11. 13
      templates/base_mobile.html
  12. 5
      templates/base_report.html
  13. 11
      templates/index.html
  14. 5
      templates/snippets/modules/charts-convenios.html

3
sigi/apps/diagnosticos/templates/admin/diagnosticos/diagnostico/change_list.html

@ -1,11 +1,12 @@
{% extends "admin/change_list.html" %}
{% load i18n reporting_tags admin_list %}
{% load static from staticfiles %}
{% block search %}
<div id="toolbar">
<form id="changelist-search" action="" method="get">
<div><!-- DIV needed for valid HTML -->
<label for="searchbar"><img src="{{ STATIC_URL }}admin/img/icon_searchbox.png" alt="Search" /></label>
<label for="searchbar"><img src="{% static 'admin/img/icon_searchbox.png' %}" alt="Search" /></label>
<input type="text" size="40" name="q" value="" id="searchbar" />
<label for="data_visita_inicio__gte">Visitados a partir de:</label>
<input type="text" size="10" name="data_visita_inicio__gte" value="" id="data_visita_inicio__gte" class="vDateField"/>

9
sigi/apps/diagnosticos/templates/diagnosticos/diagnosticos_login.html

@ -1,22 +1,23 @@
{% load static from staticfiles %}
<!DOCTYPE HTML>
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>SIGI - Login de Acesso</title>
<link rel="stylesheet" href="{{ STATIC_URL }}jquery.mobile-1.0.1/jquery.mobile-1.0.1.min.css" />
<script src="{{ STATIC_URL }}/js/jquery/jquery-1.6.4.min.js"></script>
<link rel="stylesheet" href="{% static 'jquery.mobile-1.0.1/jquery.mobile-1.0.1.min.css' %}" />
<script src="{% static '/js/jquery/jquery-1.6.4.min.js' %}" ></script>
<script language=javascript>
$(document).bind("mobileinit", function () {
$.mobile.ajaxEnabled = false;
$.mobile.loadingMessage = 'salvando';
});
</script>
<script type="text/javascript" src="{{ STATIC_URL }}jquery.mobile-1.0.1/jquery.mobile-1.0.1.min.js"></script>
<script type="text/javascript" src="{% static 'jquery.mobile-1.0.1/jquery.mobile-1.0.1.min.js' %}" ></script>
</head>
<body>
<div data-role="header" data-theme="d">
<img src="{{ STATIC_URL }}img/mobile/logointerlegis_mobile.png" alt="Interlegis"/>
<img src="{% static 'img/mobile/logointerlegis_mobile.png' %}" alt="Interlegis"/>
</div> <!-- header -->
{% if form.errors %}
<div data-role="header" data-theme="b">

5
sigi/apps/diagnosticos/templates/diagnosticos/graficos.html

@ -1,11 +1,12 @@
{% extends "admin/index.html" %}
{% load static from staticfiles %}
{% block content_title %}<h1>Graficos dos Diagnósticos</h1>{% endblock %}
{% block extrahead %}
<link rel="stylesheet" href="{{ STATIC_URL }}css/style.css">
<link rel="stylesheet" href="{% static 'css/style.css' %}" >
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/Chart.min.js"></script>
<script type="text/javascript" src="{% static 'js/Chart.min.js' %}" ></script>
<script src="http://code.highcharts.com/highcharts.js"></script>
<script language=javascript>
jQuery(document).ready(function () {

10
sigi/apps/diagnosticos/templates/diagnosticos/mapa.html

@ -4,7 +4,7 @@
{% block extrahead %}
{{ block.super }}
{% load staticfiles %}
{% load static from staticfiles %}
<script type="text/javascript" src="{% static "admin/js/core.js" %}"></script>
<script type="text/javascript" src="{% static "admin/js/jquery.min.js" %}"></script>
<script type="text/javascript" src="{% static "admin/js/jquery.init.js" %}"></script>
@ -18,7 +18,7 @@
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map"),
myOptions);
@ -40,12 +40,12 @@
linkMarkMessage(mark, infoWin, map);
}
});
function linkMarkMessage(mark, infoWin, map) {
google.maps.event.addListener(mark, 'click', function() {
google.maps.event.addListener(mark, 'click', function() {
infoWin.open(map, mark);});
}
})})(django.jQuery);
})})(django.jQuery);
</script>
{% endblock %}

3
sigi/apps/metas/templates/admin/metas/planodiretor/change_list.html

@ -1,11 +1,12 @@
{% extends "admin/change_list.html" %}
{% load i18n reporting_tags admin_list %}
{% load static from staticfiles %}
{% block search %}
<div id="toolbar">
<form id="changelist-search" action="" method="get">
<div><!-- DIV needed for valid HTML -->
<label for="searchbar"><img src="{{ STATIC_URL }}admin/img/icon_searchbox.png" alt="Search" /></label>
<label for="searchbar"><img src="{% static 'admin/img/icon_searchbox.png' %}" alt="Search" /></label>
<input type="text" size="40" name="q" value="" id="searchbar" />
<label for="data_entrega__gte">Entregues a partir de:</label>
<input type="text" size="10" name="data_entrega__gte" value="" id="data_entrega__gte" class="vDateField"/>

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

@ -1,16 +1,16 @@
{% extends "admin/index.html" %}
{% load static from staticfiles %}
{% block title %}SIGI{% endblock %}
{% block extrahead %}
{{ block.super }}
{% load staticfiles %}
<link rel="stylesheet" type="text/css" href="{% static "admin/css/changelists.css" %}" />
<script type="text/javascript" src="{% static "admin/js/core.js" %}"></script>
<script type="text/javascript" src="{% static "admin/js/jquery.min.js" %}"></script>
<script type="text/javascript" src="{% static "admin/js/jquery.init.js" %}"></script>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/metas/mapa.js"></script>
<script type="text/javascript" src="{% static 'js/metas/mapa.js' %}" ></script>
<style>
.totalizador { float:right; }
</style>
@ -22,7 +22,7 @@
<div id="toolbar">
<form method="get" action="" id="changelist-search">
<div><!-- DIV needed for valid HTML -->
<label for="searchbar"><img alt="Search" src="{{ STATIC_URL }}admin/img/icon_searchbox.png"></label>
<label for="searchbar"><img alt="Search" src="{% static 'admin/img/icon_searchbox.png' %}" ></label>
<input type="text" id="searchbar" value="" name="q" size="40">
<input type="submit" value="Pesquisar">
<span id="search-panel" class="small quiet">&nbsp;</span>
@ -33,7 +33,7 @@
<li> <a href="/dashboard/maplist/" id="list_report" onclick="return false;">Listagem das Casas</a> </li>
<li> <a href="/dashboard/maplist/?fmt=csv" id="list_csv" onclick="return false;">Exportar Casas</a> </li>
<li> <a href="#" id="closeiwlink">Fechar todas as janelas de informação</a> </li>
</ul>
</ul>
</div>
</div>
{% endblock %}
@ -46,7 +46,7 @@
{% block sidebar %}
<form id="filter_form" method="get" action="">
<div id="content-related">
<div class="module" id="filters"> {% comment %} Adicione style="overflow: auto; height: 800px;" para rolar apenas na caixa de filtros {% endcomment %}
<div class="module" id="filters"> {% comment %} Adicione style="overflow: auto; height: 800px;" para rolar apenas na caixa de filtros {% endcomment %}
<h2>Filtros</h2>
<h3>Por Serviços SEIT</h3>
<ul>
@ -85,11 +85,11 @@
<li><input type="checkbox" name="regioes" value="{{ r.0 }}" {% if r.0 in regioes %}checked="checked"{% endif %}/> {{ r.1 }}
<span id="{{ r.0 }}" class="totalizador">&nbsp;(1)</span></li>
{% endfor %}
</ul>
</ul>
<h3>Por Estado</h3>
<ul>
{% for e in estado_choices %}
<li><input type="checkbox" name="estados" value="{{ e.sigla }}"
<li><input type="checkbox" name="estados" value="{{ e.sigla }}"
{% if e.sigla in estados %} checked="checked" {% endif %}/>
{{ e.nome }}
<span id="{{ e.sigla }}" class="totalizador">&nbsp;(1)</span>
@ -98,5 +98,5 @@
</ul>
</div>
</div>
</form>
</form>
{% endblock %}

7
templates/admin/app_index.html

@ -1,9 +1,10 @@
{% extends "admin/index.html" %}
{% load static from staticfiles %}
{% block extrastyle %}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/globalnav-estilos.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/base_site.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/app_index.css" />
<link rel="stylesheet" type="text/css" href="{% static 'css/globalnav-estilos.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'css/base_site.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'css/app_index.css' %}" />
{% endblock %}
{% block breadcrumbs %}{% endblock %}

5
templates/admin/base_site.html

@ -1,11 +1,12 @@
{% extends "admin/base.html" %}
{% load tree_menu_tags %}
{% load static from staticfiles %}
{% block title %}{{ title }} | SIGI{% endblock %}
{% block extrastyle %}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/globalnav-estilos.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/base_site.css" />
<link rel="stylesheet" type="text/css" href="{% static 'css/globalnav-estilos.css' %}" />
<link rel="stylesheet" type="text/css" href="{% static 'css/base_site.css' %}" />
{% endblock %}
{% block extrahead %}

60
templates/admin/carrinho.html

@ -1,10 +1,10 @@
{% extends "admin/change_list.html" %}
{% load i18n %}
{% block extrastyle %}
{{ block.super }}
<style>
{{ block.super }}
<style>
.botoes{
/*background: url("../../static/admin/img/nav-bg.gif");*/
font-weight: bold;
/*color: red;*/
@ -13,25 +13,25 @@
background: none;
font-weight: bold;
border: none;
color: blue;
}
color: blue;
}
.botoes li {
background-image: url("../../static/admin/img/nav-bg.gif");
display: inline;
border: 1px solid #CCC;
border: 1px solid #CCC;
padding: 5px 10px;
margin: 0px;
}
.botoes a{
}
.botao_excluir input{
color: red;
background: url("../../static/admin/img/icon_deletelink.gif") no-repeat scroll 0 50% transparent
background: url("../../static/admin/img/icon_deletelink.gif") no-repeat scroll 0 50% transparent
}
</style>
</style>
{% endblock %}
@ -56,9 +56,9 @@
{%endif%}
</ul>
{% endblock %}
<div id="changelist" class="module">
<div id="changelist" class="module">
<form action="{% block action %}#{% endblock %}"
class="changelist-form" method="post">{% csrf_token %}
{%if not carIsEmpty%}
@ -66,43 +66,43 @@
<ul class="botao_excluir">
<li><input class="botao_excluir" type="submit" value=" Excluir do carrinho os itens selecionados" /></li>
<li><a href="excluir_carrinho">Esvaziar carrinho</a></li>
</ul>
</ul>
</div>
{% endif %}
<div class="result_list">
{% block tabela %}{% endblock %}
</div>
{% endif %}
<div class="result_list">
{% block tabela %}{% endblock %}
</div>
{%if not carIsEmpty%}
<div class="botoes">
<ul class="botao_excluir">
<li><input class="botao_excluir" type="submit" value=" Excluir do carrinho os itens selecionados" /></li>
<li><a href="excluir_carrinho">Esvaziar carrinho</a></li>
</ul>
</ul>
</div>
{% endif %}
{% endif %}
<div class="paginator">
<span class="step-links">
{% if paginas.has_previous %}
<a href="?page={{ paginas.previous_page_number }}">Anterior</a>
{% endif %}
<span class="this-page">
Página {{ paginas.number }} of {{ paginas.paginator.num_pages }}.
</span>
{% if paginas.has_next %}
<a href="?page={{ paginas.next_page_number }}">Próxima</a>
{% endif %}
</span>
<span>{{paginas.paginator.count}} itens</span>
</div>
</span>
<span>{{paginas.paginator.count}} itens</span>
</div>
</form>
{% block botoes %}{% endblock %}
</div>
</div>
{% endblock %}

25
templates/admin/tabs_style.html

@ -1,21 +1,22 @@
{% load static from staticfiles %}
<!--CSS JQuery-->
<link type="text/css" href="{{ STATIC_URL }}css/jquery/smoothness/jquery.ui.all.css" rel="stylesheet" />
<link type="text/css" href="{% static 'css/jquery/smoothness/jquery.ui.all.css' %}" rel="stylesheet" />
<!--Scripts JQuery-->
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery/jquery-1.4.2.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery/ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery/ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery/ui/jquery.ui.tabs.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery/ui/jquery.ui.mouse.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery/ui/jquery.ui.sortable.js"></script>
<script type="text/javascript">
<script type="text/javascript" src="{% static 'js/jquery/jquery-1.4.2.js' %}" ></script>
<script type="text/javascript" src="{% static 'js/jquery/ui/jquery.ui.core.js' %}" ></script>
<script type="text/javascript" src="{% static 'js/jquery/ui/jquery.ui.widget.js' %}" ></script>
<script type="text/javascript" src="{% static 'js/jquery/ui/jquery.ui.tabs.js' %}" ></script>
<script type="text/javascript" src="{% static 'js/jquery/ui/jquery.ui.mouse.js' %}" ></script>
<script type="text/javascript" src="{% static 'js/jquery/ui/jquery.ui.sortable.js' %}" ></script>
<script type="text/javascript">
$(function() {
$( "#tabs" ).tabs({
event: "mouseover"
});
});
</script>
</script>
<script>
$(function() {
@ -23,9 +24,9 @@
$( "#sortable" ).disableSelection();
});
</script>
<style>
.ui-tabs-nav {
background-image: url("{{ STATIC_URL }}admin/img/nav-bg.gif");
}
background-image: url("{% static 'admin/img/nav-bg.gif' %}" );
}
</style>

13
templates/base_mobile.html

@ -1,3 +1,4 @@
{% load static from staticfiles %}
<!DOCTYPE html>
<html lang="pt-BR">
<head>
@ -7,23 +8,23 @@
<title>SIGI - Diagnósticos</title>
{% endblock titulo %}
{% block media %}
<link rel="stylesheet" href="{{ STATIC_URL }}jquery.mobile-1.0.1/jquery.mobile-1.0.1.min.css" />
<script type="text/javascript" src="{{ STATIC_URL }}/js/jquery/jquery-1.6.4.min.js"></script>
<link rel="stylesheet" href="{% static 'jquery.mobile-1.0.1/jquery.mobile-1.0.1.min.css' %}" />
<script type="text/javascript" src="{% static '/js/jquery/jquery-1.6.4.min.js' %}" ></script>
<script language=javascript>
$(document).bind("mobileinit", function () {
$.mobile.ajaxEnabled = false;
$.mobile.loadingMessage = 'salvando';
});
</script>
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery/jquery.maskedinput-1.1.3.min.js"/></script>
<script type="text/javascript" src="{{ STATIC_URL }}jquery.mobile-1.0.1/jquery.mobile-1.0.1.min.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/diagnosticos/diagnosticos_categorias_form.js"></script>
<script type="text/javascript" src="{% static 'js/jquery/jquery.maskedinput-1.1.3.min.js' %}" /></script>
<script type="text/javascript" src="{% static 'jquery.mobile-1.0.1/jquery.mobile-1.0.1.min.js' %}" ></script>
<script type="text/javascript" src="{% static 'js/diagnosticos/diagnosticos_categorias_form.js' %}" ></script>
{% endblock media %}
</head>
<body>
<div data-role="page" id="page" class="type-interior">
<div data-role="header" data-position="fixed">
<img id="working" src="{{ STATIC_URL }}img/loader.gif" class="ui-btn-right"/>
<img id="working" src="{% static 'img/loader.gif' %}" class="ui-btn-right"/>
{% block cabecalho %}{% endblock cabecalho %}
</div> <!-- header -->
<div data-role="content" class="content-primary">

5
templates/base_report.html

@ -1,4 +1,5 @@
{% load smart_if %}
{% load static from staticfiles %}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
@ -63,13 +64,13 @@
<div id="header">
<table>
<tr>
<td class="logo"><img src="{{ STATIC_URL }}img/logo-senado.jpg"/></td>
<td class="logo"><img src="{% static 'img/logo-senado.jpg' %}" /></td>
<td class="header_text">
<p><strong>SENADO FEDERAL</strong></p>
<p><strong>SECRETARIA ESPECIAL DO INTERLEGIS – SINTER</strong></p>
<p>{% block subsecretaria %}{% endblock %}</p>
</td>
<td class="logo"><img src="{{ STATIC_URL }}img/logo-interlegis.jpg"/></td>
<td class="logo"><img src="{% static 'img/logo-interlegis.jpg' %}" /></td>
</tr>
</table>
</div>

11
templates/index.html

@ -1,16 +1,17 @@
{% extends "admin/base_site.html" %}
{% load i18n admin_static %}
{% load static from staticfiles %}
{% block title %}SIGI{% endblock %}
{% block extrahead %}
{{ block.super }}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/style.css">
<link rel="stylesheet" type="text/css" href="{% static 'css/style.css' %}" >
<script type="text/javascript" src="{{ STATIC_URL }}admin/js/core.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}admin/js/jquery.min.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}admin/js/jquery.init.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}js/Chart.min.js"></script>
<script type="text/javascript" src="{% static 'admin/js/core.js' %}" ></script>
<script type="text/javascript" src="{% static 'admin/js/jquery.min.js' %}" ></script>
<script type="text/javascript" src="{% static 'admin/js/jquery.init.js' %}" ></script>
<script type="text/javascript" src="{% static 'js/Chart.min.js' %}" ></script>
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"> </script>
<script type="text/javascript">
(function($) {

5
templates/snippets/modules/charts-convenios.html

@ -1,3 +1,4 @@
{% load static from staticfiles %}
<div class="module" style="height: 300px;">
<h2>Resumo de informações</h2>
<!-- h3>Câmaras municipais por projeto</h3 -->
@ -37,7 +38,7 @@
<div class="module" style="height: 300px;">
<h2>Serviços</h2>
<div class="titlemapbox">
<div class="mapbox"><a href="/dashboard/mapa/"><img src="{{ STATIC_URL }}img/mapicon.png"/><br/>Ver mapa</a></div>
<div class="mapbox"><a href="/dashboard/mapa/"><img src="{% static 'img/mapicon.png' %}" /><br/>Ver mapa</a></div>
<h3>Serviços hospedados no Interlegis (SEIT)</h3>
</div>
@ -95,7 +96,7 @@
<h2>Atendimentos</h2>
<h3>Mapa de atuação do Interlegis</h3>
<div class="align-center">
<a href="/dashboard/mapa/"> <img src="{{ STATIC_URL }}img/mapicon-large.png" style="width: 60%;"/> </a>
<a href="/dashboard/mapa/"> <img src="{% static 'img/mapicon-large.png' %}" style="width: 60%;"/> </a>
</div>
</div>

Loading…
Cancel
Save