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. 2
      sigi/apps/diagnosticos/templates/diagnosticos/mapa.html
  5. 3
      sigi/apps/metas/templates/admin/metas/planodiretor/change_list.html
  6. 6
      sigi/apps/metas/templates/metas/mapa.html
  7. 7
      templates/admin/app_index.html
  8. 5
      templates/admin/base_site.html
  9. 17
      templates/admin/tabs_style.html
  10. 13
      templates/base_mobile.html
  11. 5
      templates/base_report.html
  12. 11
      templates/index.html
  13. 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" %} {% extends "admin/change_list.html" %}
{% load i18n reporting_tags admin_list %} {% load i18n reporting_tags admin_list %}
{% load static from staticfiles %}
{% block search %} {% block search %}
<div id="toolbar"> <div id="toolbar">
<form id="changelist-search" action="" method="get"> <form id="changelist-search" action="" method="get">
<div><!-- DIV needed for valid HTML --> <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" /> <input type="text" size="40" name="q" value="" id="searchbar" />
<label for="data_visita_inicio__gte">Visitados a partir de:</label> <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"/> <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> <!DOCTYPE HTML>
<html lang="pt-BR"> <html lang="pt-BR">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>SIGI - Login de Acesso</title> <title>SIGI - Login de Acesso</title>
<link rel="stylesheet" href="{{ STATIC_URL }}jquery.mobile-1.0.1/jquery.mobile-1.0.1.min.css" /> <link rel="stylesheet" href="{% static '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> <script src="{% static '/js/jquery/jquery-1.6.4.min.js' %}" ></script>
<script language=javascript> <script language=javascript>
$(document).bind("mobileinit", function () { $(document).bind("mobileinit", function () {
$.mobile.ajaxEnabled = false; $.mobile.ajaxEnabled = false;
$.mobile.loadingMessage = 'salvando'; $.mobile.loadingMessage = 'salvando';
}); });
</script> </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> </head>
<body> <body>
<div data-role="header" data-theme="d"> <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 --> </div> <!-- header -->
{% if form.errors %} {% if form.errors %}
<div data-role="header" data-theme="b"> <div data-role="header" data-theme="b">

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

@ -1,11 +1,12 @@
{% extends "admin/index.html" %} {% extends "admin/index.html" %}
{% load static from staticfiles %}
{% block content_title %}<h1>Graficos dos Diagnósticos</h1>{% endblock %} {% block content_title %}<h1>Graficos dos Diagnósticos</h1>{% endblock %}
{% block extrahead %} {% 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="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 src="http://code.highcharts.com/highcharts.js"></script>
<script language=javascript> <script language=javascript>
jQuery(document).ready(function () { jQuery(document).ready(function () {

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

@ -4,7 +4,7 @@
{% block extrahead %} {% block extrahead %}
{{ block.super }} {{ 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/core.js" %}"></script>
<script type="text/javascript" src="{% static "admin/js/jquery.min.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 "admin/js/jquery.init.js" %}"></script>

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

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

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

@ -1,16 +1,16 @@
{% extends "admin/index.html" %} {% extends "admin/index.html" %}
{% load static from staticfiles %}
{% block title %}SIGI{% endblock %} {% block title %}SIGI{% endblock %}
{% block extrahead %} {% block extrahead %}
{{ block.super }} {{ block.super }}
{% load staticfiles %}
<link rel="stylesheet" type="text/css" href="{% static "admin/css/changelists.css" %}" /> <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/core.js" %}"></script>
<script type="text/javascript" src="{% static "admin/js/jquery.min.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 "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="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> <style>
.totalizador { float:right; } .totalizador { float:right; }
</style> </style>
@ -22,7 +22,7 @@
<div id="toolbar"> <div id="toolbar">
<form method="get" action="" id="changelist-search"> <form method="get" action="" id="changelist-search">
<div><!-- DIV needed for valid HTML --> <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="text" id="searchbar" value="" name="q" size="40">
<input type="submit" value="Pesquisar"> <input type="submit" value="Pesquisar">
<span id="search-panel" class="small quiet">&nbsp;</span> <span id="search-panel" class="small quiet">&nbsp;</span>

7
templates/admin/app_index.html

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

5
templates/admin/base_site.html

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

17
templates/admin/tabs_style.html

@ -1,14 +1,15 @@
{% load static from staticfiles %}
<!--CSS JQuery--> <!--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--> <!--Scripts JQuery-->
<script type="text/javascript" src="{{ STATIC_URL }}js/jquery/jquery-1.4.2.js"></script> <script type="text/javascript" src="{% static '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 '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 '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 '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 '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" src="{% static 'js/jquery/ui/jquery.ui.sortable.js' %}" ></script>
<script type="text/javascript"> <script type="text/javascript">
$(function() { $(function() {
$( "#tabs" ).tabs({ $( "#tabs" ).tabs({
@ -26,6 +27,6 @@
<style> <style>
.ui-tabs-nav { .ui-tabs-nav {
background-image: url("{{ STATIC_URL }}admin/img/nav-bg.gif"); background-image: url("{% static 'admin/img/nav-bg.gif' %}" );
} }
</style> </style>

13
templates/base_mobile.html

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

5
templates/base_report.html

@ -1,4 +1,5 @@
{% load smart_if %} {% 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"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
@ -63,13 +64,13 @@
<div id="header"> <div id="header">
<table> <table>
<tr> <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"> <td class="header_text">
<p><strong>SENADO FEDERAL</strong></p> <p><strong>SENADO FEDERAL</strong></p>
<p><strong>SECRETARIA ESPECIAL DO INTERLEGIS – SINTER</strong></p> <p><strong>SECRETARIA ESPECIAL DO INTERLEGIS – SINTER</strong></p>
<p>{% block subsecretaria %}{% endblock %}</p> <p>{% block subsecretaria %}{% endblock %}</p>
</td> </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> </tr>
</table> </table>
</div> </div>

11
templates/index.html

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

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

@ -1,3 +1,4 @@
{% load static from staticfiles %}
<div class="module" style="height: 300px;"> <div class="module" style="height: 300px;">
<h2>Resumo de informações</h2> <h2>Resumo de informações</h2>
<!-- h3>Câmaras municipais por projeto</h3 --> <!-- h3>Câmaras municipais por projeto</h3 -->
@ -37,7 +38,7 @@
<div class="module" style="height: 300px;"> <div class="module" style="height: 300px;">
<h2>Serviços</h2> <h2>Serviços</h2>
<div class="titlemapbox"> <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> <h3>Serviços hospedados no Interlegis (SEIT)</h3>
</div> </div>
@ -95,7 +96,7 @@
<h2>Atendimentos</h2> <h2>Atendimentos</h2>
<h3>Mapa de atuação do Interlegis</h3> <h3>Mapa de atuação do Interlegis</h3>
<div class="align-center"> <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>
</div> </div>

Loading…
Cancel
Save