Browse Source

Removendo templates do SIGI 2

pull/181/head
Sesóstris Vieira 2 months ago
parent
commit
ef5af3ae2e
  1. 12
      templates/404.html
  2. 12
      templates/500.html
  3. 19
      templates/503.html
  4. 16
      templates/admin/actions.html
  5. 10
      templates/admin/app_index.html
  6. 188
      templates/admin/base.html
  7. 63
      templates/admin/base_site.html
  8. 98
      templates/admin/carrinho.html
  9. 121
      templates/admin/change_list.html
  10. 64
      templates/admin/login.html
  11. 25
      templates/admin/search_form.html
  12. 33
      templates/admin/tabs_style.html
  13. 56
      templates/base_mobile.html
  14. 112
      templates/base_report.html
  15. 18
      templates/change_form_with_report_and_labels.html
  16. 5
      templates/clear_all_filter.html
  17. 36
      templates/index.html
  18. 16
      templates/mobile/404.html
  19. 92
      templates/snippets/modules/charts-convenios.html
  20. 69
      templates/snippets/modules/resumo_convenios.html

12
templates/404.html

@ -1,12 +0,0 @@
{% extends "admin/base_site.html" %}
{% load i18n %}
{% block title %}{% trans 'Page not found' %}{% endblock %}
{% block content %}
<h2>{% trans 'Page not found' %}</h2>
<p>{% trans "We're sorry, but the requested page could not be found." %}</p>
{% endblock %}

12
templates/500.html

@ -1,12 +0,0 @@
{% extends "admin/base_site.html" %}
{% load i18n %}
{% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans "Home" %}</a> &rsaquo; {% trans "Server error" %}</div>{% endblock %}
{% block title %}{% trans 'Server error (500)' %}{% endblock %}
{% block content %}
<h1>{% trans 'Server Error <em>(500)</em>' %}</h1>
<p>{% trans "There's been an error. It's been reported to the site administrators via e-mail and should be fixed shortly. Thanks for your patience." %}</p>
{% endblock %}

19
templates/503.html

@ -1,19 +0,0 @@
{% extends "admin/base_site.html" %}
{% load i18n %}
{% block title %}{% trans 'Serviço em manutenção (503) | SIGI' %}{% endblock %}
{% block branding %}{% endblock %}
{% block menu-principal %}{% endblock %}
{% block breadcrumbs %}{% endblock %}
{% block content %}
<h1>{% trans 'SIGI em manutenção' %}</h1>
<p>{% trans 'Esta página está atualmente em manutenção! Por favor, tente novamente mais tarde.' %}</p>
<p>{% trans 'Obrigado pela paciência' %},<br />
{% trans 'Serviço de Pesquisa e Desenvolvimento Tecnológico (SPDT)' %}</p>
{% endblock %}
{% block footer %}{% endblock %}

16
templates/admin/actions.html

@ -1,16 +0,0 @@
{% load i18n %}
<div class="actions" style="display:inline-block;">
{% for field in action_form %}{% if field.label %}<span style="vertical-align:middle">{{ field.label }}</span> {% endif %}{{ field }}{% endfor %}
<button type="submit" class="btn btn-default btn-sm" title="{% trans "Run the selected action" %}" name="index" value="{{ action_index|default:0 }}">{% trans "Go" %}</button>
{% if actions_selection_counter %}
<script type="text/javascript">var _actions_icnt="{{ cl.result_list|length|default:"0" }}";</script>
<span class="action-counter" style="vertical-align:middle">{{ selection_note }}</span>
{% if cl.result_count != cl.result_list|length %}
<span class="all" style="vertical-align:middle">{{ selection_note_all }}</span>
<span class="question" style="vertical-align:middle">
<a class="btn" href="javascript:;" title="{% trans "Click here to select the objects across all pages" %}">{% blocktrans with cl.result_count as total_count %}Select all {{ total_count }} {{ module_name }}{% endblocktrans %}</a>
</span>
<span class="clear" style="vertical-align:middle"><a class="btn" href="javascript:;">{% trans "Clear selection" %}</a></span>
{% endif %}
{% endif %}
</div>

10
templates/admin/app_index.html

@ -1,10 +0,0 @@
{% extends "admin/index.html" %}
{% load static from staticfiles %}
{% block extrastyle %}
<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 %}

188
templates/admin/base.html

@ -1,188 +0,0 @@
{% load admin_static bootstrapped_goodies_tags %}
{% load i18n %}
{% load menus %}
<!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" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
<head>
<title>{% block title %}{% endblock %}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" />
{% block extrastyle %}{% endblock %}
<!-- Le styles, placed after extrastyle to correctly override default styling -->
<link href="{% static "bootstrap/css/bootstrap.min.css" %}" rel="stylesheet"/>
<style type="text/css">
body {
padding: 10px 20px 40px;
}
</style>
<link href="{% static "bootstrap/css/bootstrap-theme.min.css" %}" rel="stylesheet"/>
<link rel="stylesheet" type="text/css" href="{% static "admin/css/overrides.css" %}" />
<!-- <link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% static "admin/css/base.css" %}{% endblock %}" /> -->
<script type="text/javascript">
//<![CDATA[
window.__admin_media_prefix__ = "{% filter escapejs %}{% static "admin/" %}{% endfilter %}";
//]]>
</script>
{% block default_javascript %}
{# We should be able to turn this off, to avoid conflict in integrated pages like petaho's dashboards #}
<script src="{% static "admin/js/jquery-1.9.1.min.js" %}"></script>
<script src="{% static "admin/js/jquery-migrate-1.2.1.min.js" %}"></script>
<script src="{% static "bootstrap/js/bootstrap.min.js" %}"></script>
{% endblock %}
{% block extrahead %}{% endblock %}
{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
<script type="text/javascript">
//<![CDATA[
(function($) {
$(document).ready(function() {
$('input[type="submit"]').addClass('btn');
$('[title]').tooltip();
});
}(jQuery));
//]]>
</script>
</head>
<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
<!-- Container -->
<div class="container-fluid">
{% if not is_popup %}
{% block container-top %}{% endblock %}
<!-- Header -->
<div id="navbar-title-tools" class="navbar navbar-static-top">
<div class="navbar-inner">
<div class="container-fluid">
<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>
{% block branding %}{% endblock %}
</div>
<div class="navbar-collapse collapse navbar-right">
<ul class="nav navbar-nav">
{% if user.is_active and user.is_staff %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{% trans 'Welcome,' %} <strong>{% filter force_escape %}{% firstof user.get_short_name user.get_username user.first_name user.username %}{% endfilter %}</strong> <span class="caret"></span></a>
<ul class="dropdown-menu">
{% if user.has_usable_password %}
<li><a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a></li>
{% endif %}
<li><a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a></li>
</ul>
</li>
{% block languages %}
<li class="divider-vertical"></li>
{% language_selector %}
{% endblock languages %}
{% block logs %}
<li class="dropdown" id="recent-actions-module">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{% trans 'Recent Actions' %} <b class="caret"></b></a>
{% load log %}
{% get_admin_log 10 as admin_log for_user user %}
<ul class="dropdown-menu">
{% for entry in admin_log %}
<li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}">
<a href="{% if entry.is_deletion or not entry.get_admin_url %}#{% else %}{{ entry.get_admin_url }}{% endif %}">
<i class="icon-{% if entry.is_addition %}plus{% endif %}{% if entry.is_change %}edit{% endif %}{% if entry.is_deletion %}remove{% endif %}"></i>
{{ entry.object_repr }}
{% if entry.content_type %}
<span class="mini quiet">({% filter capfirst %}{% trans entry.content_type.name %}{% endfilter %})</span>
{% else %}
<span class="mini quiet">({% trans 'Unknown content' %})</span>
{% endif %}
</a>
</li>
{% empty %}
<li class="disabled"><a href="#">{% trans 'None available' %}</a></li>
{% endfor %}
</ul>
</li>
{% endblock %}
{% block userlinks %}
{% url 'django-admindocs-docroot' as docsroot %}
{% if docsroot %}
<li class="divider-vertical"></li>
<li><a href="{{ docsroot }}">{% trans 'Documentation' %}</a></li>
{% endif %}
{% endblock %}
{% endif %}
{% block nav-global %}{% endblock %}
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<!-- END Header -->
{% block menu-principal %}
<div role="navigation" class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button data-target=".navbar-collapse" data-toggle="collapse" class="navbar-toggle collapsed" type="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar-collapse collapse">
{% show_menu "main_menu" %}
</div><!--/.nav-collapse -->
</div><!--/.container-fluid -->
</div>
{% endblock %}
{% endif %}
<!-- Content -->
{% comment %} <div id="content" class="{% block coltype %}colM{% endblock %}">
{% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}
{% block navbar %}
<div id="navbar-object-tools" class="nav">
{% block object-tools %}
<ul class="object-tools pull-left nav nav-pills">
{% block object-tools-items %}{% endblock %}
</ul>
{% endblock %}
</div>
{% endblock navbar %}
{% block messages %}
{% if messages %}
<div class="row">
<div class="col-sm-12">
{% for message in messages %}
<div class="alert alert-info {% if message.tags %}{{ message.tags }}{% endif %}">
{{ message }}
</div>
{% endfor %}
</div>
</div>
{% endif %}
{% endblock messages %}
{% block content %}{{ content }}{% endblock %}
{% block sidebar %}{% endblock %}
</div> {% endcomment %}
<!-- END Content -->
{% block footer %}<footer id="footer"></footer>{% endblock %}
</div>
<!-- END Container -->
</body>
</html>

63
templates/admin/base_site.html

@ -1,63 +0,0 @@
{% extends "admin/base.html" %}
{% load i18n %}{% load admin_static bootstrapped_goodies_tags %}
{% load static from staticfiles %}
{% block title %}{{ title }} | SIGI{% endblock %}
{% block extrastyle %}
<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 %}
<meta name="copyright" content="Copyright (c) 2008 Interlegis. Todos
Direitos Reservados." />
{% endblock %}
{% block container-top %}
<ul id="globalnavbar">
<li class="globalnav-busca">
<form action="http://www.interlegis.leg.br/search">
<input type="text" name="SearchableText" size="8" placeholder="Pesquisar" />
</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.leg.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 %}
<a class="navbar-brand" href="/">{% trans 'Sistema de Informações Gerenciais do Interlegis' %}</a>
{% endblock %}
{% block nav-global %}
{% if user.is_superuser %}
<li class="dropdown">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">{% trans 'Administração' %} <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="/auth/">{% trans 'Usuários' %} &amp; {% trans 'Grupos' %}</a></li>
<li><a href="/sites/site/">{% trans 'Sites' %}</a></li>
<li><a href="/diagnosticos/">{% trans 'Diagnósticos' %}</a></li>
<li><a href="{% url 'importar-casas' %}">{% trans 'Importar dados de Casas' %}</a></li>
<li><a href="{% url 'importar-gescon' %}">{% trans 'Importar convênios do Gescon' %}</a></li>
</ul>
</li>
{% endif %}
{% endblock %}
{% block footer %}
{% if not is_popup %}
<div id="footer">
<div class="footernote">
<p>{% trans 'Em caso de dúvida no uso do sistema contate o SPDT no ramal 2587' %}.</p>
<p>{% trans 'É recomendado o uso das informações aqui fornecidas fora do âmbito do Interlegis' %}.</p>
<p>{% trans '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>
{% endif %}
{% endblock %}

98
templates/admin/carrinho.html

@ -1,98 +0,0 @@
{% extends "admin/base_site.html" %}
{% load i18n %}
{% block extrastyle %}
{{ block.super }}
<style>
.botoes{
/*background: url("../../static/admin/img/nav-bg.gif");*/
font-weight: bold;
/*color: red;*/
}
.botoes input{
background: none;
font-weight: bold;
border: none;
color: blue;
}
.botoes li {
background-image: url("../../static/admin/img/nav-bg.gif");
display: inline;
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
}
</style>
{% endblock %}
{% block title %}{% trans 'Carrinho | SIGI' %}{% endblock %}
{% block content_title %}<h1>{% trans 'Carrinho' %}</h1>{% endblock %}
{% block content %}
<div id="content-main">
{% block mensagem %}
<ul class="messagelist">
{%if carIsEmpty%}
<li class="warning">{% trans 'O carrinho está vazio' %}</li>
{%else%}
<li>{{paginas.paginator.count}} {% trans 'Itens no carrinho' %}.</li>
{%endif%}
</ul>
{% endblock %}
<div id="changelist" class="module">
<form action="{% block action %}#{% endblock %}"
class="changelist-form" method="post">{% csrf_token %}
{%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">{% trans 'Esvaziar carrinho' %}</a></li>
</ul>
</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">{% trans 'Esvaziar carrinho' %}</a></li>
</ul>
</div>
{% endif %}
<div class="paginator">
<span class="step-links">
{% if paginas.has_previous %}
<a href="?page={{ paginas.previous_page_number }}">{% trans 'Anterior' %}</a>
{% endif %}
<span class="this-page">
Página {{ paginas.number }} de {{ paginas.paginator.num_pages }}.
</span>
{% if paginas.has_next %}
<a href="?page={{ paginas.next_page_number }}">{% trans 'Próxima' %}</a>
{% endif %}
</span>
<span>{{paginas.paginator.count}} {% trans 'itens' %}</span>
</div>
</form>
{% block botoes %}{% endblock %}
</div>
</div>
{% endblock %}

121
templates/admin/change_list.html

@ -1,121 +0,0 @@
{% extends "admin/base_site.html" %}
{% load i18n admin_urls admin_static admin_list bootstrapped_goodies_tags %}
{% block extrastyle %}
{{ block.super }}
<link rel="stylesheet" type="text/css" href="{% static "admin/css/changelists.css" %}" />
{% if cl.formset %}
<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}" />
{% endif %}
{% if cl.formset or action_form %}
{% url 'admin:jsi18n' as jsi18nurl %}
<script type="text/javascript" src="{{ jsi18nurl|default:'../../jsi18n/' }}"></script>
{% endif %}
{{ media.css }}
{% endblock %}
{% block extrahead %}
{{ block.super }}
{{ media.js }}
{% if action_form %}{% if actions_on_top or actions_on_bottom %}
<script type="text/javascript">
(function($) {
$(document).ready(function($) {
$("tr input.action-select").actions();
});
})(django.jQuery);
</script>
{% endif %}{% endif %}
{% endblock %}
{% block bodyclass %}_change-list{% endblock %}
{% block coltype %}flex{% endblock %}
{% block object-tools %}
<ul class="object-tools pull-left nav nav-pills">
{% block object-tools-items %}
{% if has_add_permission %}
<li>
{% url cl.opts|admin_urlname:'add' as add_url %}
<a href="{% add_preserved_filters add_url is_popup %}">
<span class="glyphicon glyphicon-plus"></span> {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
</a>
</li>
{% endif %}
{% endblock %}
</ul>
{% if cl.has_filters %}
<ul class="nav navbar-nav pull-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{% trans 'Filter' %} <span class="caret"></span></a>
<ul class="dropdown-menu pull-right">
{% for spec in cl.filter_specs %}
{% admin_list_filter cl spec %}
{% endfor %}
</ul>
</li>
</ul>
{% endif %}
{% block search %}{% search_form cl %}{% endblock %}
{% endblock %}
{% block content %}
{% block extra_search %}{% endblock %}
<form class="" id="changelist-form" action="" method="post"{% if cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %}>{% csrf_token %}
{% if cl.formset.errors %}
<div class="alert alert-danger">
<p class="errornote">
{% blocktrans count cl.formset.errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}
</p>
{{ cl.formset.non_form_errors }}
</div>
{% endif %}
{% with app_name=cl.opts.module_name|lower|slugify %}
{% render_with_template_if_exist cl.opts.app_label|lower|add:"/admin_app_"|add:app_name|add:"_description.html" "" %}
{% endwith %}
{% if action_form and actions_on_top and cl.full_result_count %}
<div class='pull-left'>{% admin_actions %}</div>
{% endif %}
<div id="content-main">
<div class="module{% if cl.has_filters %} filtered{% endif %}" id="_changelist">
{% block date_hierarchy %}
{% date_hierarchy cl %}
{% endblock %}
{% if cl.formset %}
<div>{{ cl.formset.management_form }}</div>
{% endif %}
{% block result_list %}
{% result_list cl %}
{% endblock %}
</div>
</div>
{# {% if cl.formset and cl.result_count %} #}
<div class="navbar navbar-default">
<div class="navbar-inner">
<div class="navbar-form pull-left">
{% if action_form and actions_on_bottom and cl.full_result_count %}
{% admin_actions %}
{% endif %}
</div>
<div class="navbar-form pull-right">
<input type="submit" name="_save" class="btn btn-primary default" value="{% trans 'Save' %}"/>
</div>
</div>
</div>
{# {% endif %} #}
{% block pagination %}
{% pagination cl %}
{% endblock %}
</form>
{% endblock %}

64
templates/admin/login.html

@ -1,64 +0,0 @@
{% extends "admin/base_site.html" %}
{% load i18n admin_static %}
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/login.css" %}" />{% endblock %}
{% block bodyclass %}login{% endblock %}
{% block menu-principal %}{% endblock %}
{% block content_title %}{% endblock %}
{% block breadcrumbs %}{% endblock %}
{% block container-top %}{% endblock %}
{% block branding %}
<h1 id="site-name">SIGI</h1>
{% endblock %}
{% block content %}
{% if form.errors and not form.non_field_errors and not form.this_is_the_login_form.errors %}
<p class="errornote">
{% if form.errors.items|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %}
</p>
{% endif %}
{% if form.non_field_errors or form.this_is_the_login_form.errors %}
{% for error in form.non_field_errors|add:form.this_is_the_login_form.errors %}
<p class="errornote">
{{ error }}
</p>
{% endfor %}
{% endif %}
<div id="content-main">
<form action="{{ app_path }}" method="post" id="login-form">{% csrf_token %}
<div class="form-row">
{% if not form.this_is_the_login_form.errors %}{{ form.username.errors }}{% endif %}
<label for="id_username" class="required">{{ form.username.label }}:</label> {{ form.username }}
</div>
<div class="form-row">
{% if not form.this_is_the_login_form.errors %}{{ form.password.errors }}{% endif %}
<label for="id_password" class="required">{% trans 'Password' %}:</label> {{ form.password }}
<input type="hidden" name="this_is_the_login_form" value="1" />
<input type="hidden" name="next" value="{{ next }}" />
</div>
{% url 'admin_password_reset' as password_reset_url %}
{% if password_reset_url %}
<div class="password-reset-link">
<a href="{{ password_reset_url }}">{% trans 'Forgotten your password or username?' %}</a>
</div>
{% endif %}
<div class="submit-row">
<label>&nbsp;</label><input type="submit" value="{% trans 'Log in' %}" />
</div>
</form>
<script type="text/javascript">
document.getElementById('id_username').focus()
</script>
</div>
{% endblock %}
{% block footer %}{% endblock %}

25
templates/admin/search_form.html

@ -1,25 +0,0 @@
{% load i18n admin_static %}
{% if cl.search_fields %}
<form class="navbar-form navbar-right" role="search" id="changelist-search" action="" method="get">
<div class="form-group"><!-- DIV needed for valid HTML -->
<div class="input-group">
<input type="text" class="form-control search-query" placeholder="{% trans 'Search' %}" size="40" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" />
<span class="input-group-btn">
<button class="btn btn-default" type="submit">
<span class="glyphicon glyphicon-search"></span>
</button>
</span>
</div>
</div>
{% if show_result_count %}
<span class="small quiet">{% blocktrans count counter=cl.result_count %}{{ counter }} result{% plural %}{{ counter }} results{% endblocktrans %} (<a href="?{% if cl.is_popup %}pop=1{% endif %}">{% blocktrans with full_result_count=cl.full_result_count %}{{ full_result_count }} total{% endblocktrans %}</a>)</span>
{% endif %}
{% for pair in cl.params.items %}
{% ifnotequal pair.0 search_var %}<input type="hidden" name="{{ pair.0 }}" value="{{ pair.1 }}"/>{% endifnotequal %}
{% endfor %}
</form>
<script type="text/javascript">document.getElementById("searchbar").focus();</script>
{% endif %}

33
templates/admin/tabs_style.html

@ -1,33 +0,0 @@
{% load static from staticfiles %}
{% load i18n %}
<!--CSS JQuery-->
<link type="text/css" href="{% static 'css/jquery/smoothness/jquery.ui.all.css' %}" rel="stylesheet" />
<!--Scripts JQuery-->
<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>
$(function() {
$( "#sortable" ).sortable();
$( "#sortable" ).disableSelection();
});
</script>
<style>
.ui-tabs-nav {
background-image: url("{% static 'admin/img/nav-bg.gif' %}" );
}
</style>

56
templates/base_mobile.html

@ -1,56 +0,0 @@
{% load static from staticfiles %}
{% load i18n %}
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
{% block titulo %}
<title>{% trans 'SIGI - Diagnósticos' %}</title>
{% endblock titulo %}
{% block media %}
<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 '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 'img/loader.gif' %}" class="ui-btn-right"/>
{% block cabecalho %}{% endblock cabecalho %}
</div> <!-- header -->
<div data-role="content" class="content-primary">
{% block corpo %}{% endblock corpo %}
</div><!-- content -->
<div data-role="footer">
<div data-role="navbar">
<ul>
{% block rodape %}
<li><a href="{% url 'lista_diagnosticos' %}" data-icon="home">{% trans 'Página Inicial' %}</a></li>
{% endblock rodape %}
</ul>
</div>
</div> <!-- footer -->
</div> <!-- page -->
<a id='open-dialog' href="#dialog" data-rel="dialog" data-transition="pop" style='display:none;'></a>
<div data-role="page" id="dialog">
<div data-role="header">
<h1>{% trans 'Ops! Não foi possivel salvar os dados' %}.</h1>
</div>
<div data-role="content" id="text">
{% trans 'Algum erro ocorreu ao salvar os dados do diagnóstico' %}.
{% trans 'Verifique a sua conectividade e/ou entre em contato com a equipe técnica o mais rápido possível' %}.
</div>
</div>
</body>
</html>

112
templates/base_report.html

@ -1,112 +0,0 @@
{% load smart_if %}
{% load static from staticfiles %}
{% load i18n %}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{% block title %}{% trans 'Relatório' %}{% endblock title %}</title>
<style type="text/css">
td.logo {
text-align: center;
}
td.header_text p {
margin: 5px;
font-size: 1.2em;
text-align: center;
}
.orgao_name {
margin-bottom: 0px;
margin-top: 0px;
font-weight: bold;
}
h1 {
font-size: 2em;
text-align: center;
}
h2 {
font-size: 1.7em;
}
h3 {
margin-top: 10px;
margin-bottom: 0px;
}
body {
font-family: "Helvetica, Arial, sans-serif";
font-size: 1.3em;
line-height: 1em;
}
#footer {
width: 100%;
}
#footer table {
border: 0px;
}
.footer-left {
text-align: left;
}
.footer-center {
text-align: center;
}
.footer-right {
text-align: right;
}
div.new_page {
page-break-before: always;
}
div.same_page {
-pdf-keep-with-next: true;
}
@page {
size: {% block pagesize %}{{ pagesize }}{% endblock pagesize %};
margin: {% block pagemargin %}4cm 1cm 1cm 2cm{% endblock pagemargin %};
font-family: "Helvetica, Arial, sans-serif";
font-size: 2em;
@frame header {
-pdf-frame-content: header;
{% block header-settings %}top: 1cm;{% endblock header-settings %}
}
@frame footer {
-pdf-frame-content: footer;
bottom: 0cm;
height: 1cm;
margin-left: 2cm;
margin-right: 1cm;
}
}
</style>
{% block extra_head %}
{% endblock %}
</head>
<body>
<div id="header">
<table>
<tr>
<td class="logo"><img src="{% static 'img/logo-senado.jpg' %}" /></td>
<td class="header_text">
<p><strong>{% trans 'SENADO FEDERAL' %}</strong></p>
<p class="orgao_name">{% trans 'Instituto Legislativo Brasileiro' %}</p>
<p class="orgao_name">{% trans "ILB / Interlegis" %}</p>
<p>{% block subsecretaria %}{% endblock %}</p>
</td>
<td class="logo"><img src="{% static 'img/logo-interlegis.jpg' %}" /></td>
</tr>
</table>
</div>
{% block report %}
{% endblock %}
<div id="footer">
{%block page_foot%}
<table>
<tr>
<td class="footer-left">{% trans 'Emissão:' %} {% now "d/m/Y H:i:s" %}</td>
<td class="footer-center">&nbsp;</td>
<td class="footer-right">{% trans 'Página:' %} <pdf:pagenumber/> </td>
</tr>
</table>
{%endblock%}
</div>
</body>
</html>

18
templates/change_form_with_report_and_labels.html

@ -1,18 +0,0 @@
{% extends "base_change_form.html" %}
{% load i18n %}
{% block object-tools-items %}
<li><a href="report_complete/">
<span class="glyphicon glyphicon-list-alt"></span>
{% trans 'Relatório' %}
</a></li>
<li><a href="labels/">
<span class="glyphicon glyphicon-th"></span>
{% trans 'Etiqueta' %}
</a></li>
<li><a href="labels_sem_presidente/">
<span class="glyphicon glyphicon-th-large"></span>
{% trans 'Etiqueta sem presidente' %}
</a></li>
{{ block.super }}
{% endblock %}

5
templates/clear_all_filter.html

@ -1,5 +0,0 @@
{% load i18n %}
{% with choices|first as disabled %}
<li class="clear-all-filter{% if disabled %} disabled{% endif %}"><a href="?">{% trans 'Clear All Filters' %}</a></li>
{% endwith %}

36
templates/index.html

@ -1,36 +0,0 @@
{% 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 'css/style.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="{% static 'js/Chart.min.js' %}" ></script>
<script type="text/javascript" src="{% static 'js/dashboard.js' %}"></script>
{% endblock %}
{% block content_title %}
<h1 class="pull-left">{% trans 'Dashboard' %}</h1>
<div class="pull-right"><a href="{% url 'openmap' %}"><img src="{% static 'img/mapicon.png' %}" /> {% trans 'Mapa de atuação do Interlegis' %}</a></div>
{% endblock %}
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}" />{% endblock %}
{% block coltype %}colMS{% endblock %}
{% block bodyclass %}dashboard{% endblock %}
{% block breadcrumbs %}{% endblock %}
{% block content %}
<div id="content-main">
{% include "snippets/modules/charts-convenios.html" %}
</div>
{% endblock %}

16
templates/mobile/404.html

@ -1,16 +0,0 @@
{% extends "base_mobile.html" %}
{% load i18n %}
{% block cabecalho %}
<h1>{% trans 'Ocorreu um erro' %}</h1>
{% endblock cabecalho %}
{% block corpo %}
<p>{% trans 'A página que está procurando não existe.' %} </p>
<p>{% trans 'Verifique se o diagnóstico, categoria ou pergunta está cadastrado no sistema.' %}</p>
<a href="{% url 'lista_diagnosticos' %}" data-icon="arrow-l"
data-direction="reverse" data-role="button" data-theme="c" class="ui-btn-left">{% trans 'Voltar' %}</a>
{% endblock corpo %}
{% block rodape %}
{% endblock rodape %}

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

@ -1,92 +0,0 @@
{% load static from staticfiles %}
{% load i18n %}
<div class="row row-flex row-flex-wrap">
<div id="resumoseit" class="col-md-6" data-source="{% url "home_resumoseit" %}"></div>
<div class="col-md-6">
<div class="panel panel-primary flex-col">
<div class="panel-heading">{% trans 'Sazonalidade da hospedagem de serviços' %}</div>
<div class="panel-body">
<div class="chartcontainer">
<canvas id="chart-area-evolucao" data-source="{% url "home_chartseit" %}" data-legend-id="area-evolucao-legend" data-prevlink-id="area-evolucao-previlink" data-nextlink-id="area-evolucao-nextlink"></canvas>
<div id="area-evolucao-legend"></div>
<div>
<a id="area-evolucao-previlink" href="#" aria-label="{% trans "Retroceder um mês" %}" data-target="chart-area-evolucao">
<span class="glyphicon glyphicon-chevron-left pull-left" aria-hidden="true"></span>
</a>
<a id="area-evolucao-nextlink" href="#" aria-label="{% trans "Avançar um mês" %}" data-target="chart-area-evolucao">
<span class="glyphicon glyphicon-chevron-right pull-right" aria-hidden="true"></span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row row-flex row-flex-wrap">
<div id="resumo" class="col-md-6" data-source="{% url "casas_carteira" %}?snippet=resumo&s=sim"></div>
<div class="col-md-6">
<div class="panel panel-primary flex-col">
<div class="panel-heading">{% trans 'Performance da gerência de carteiras' %}</div>
<div class="panel-body">
<ul class="nav nav-pills" role="tablist">
<li role="presentation"><a href="{% url "home_chartperformance" %}" data-target="chart-performance">{% trans "Todo o Interlegis" %}</a></li>
{% for g in gerentes %}
<li role="presentation"><a href="{% url "home_chartperformance" %}?servidor={{ g.pk }}" data-target="chart-performance">{{ g.user.first_name }}</a></li>
{% endfor %}
</ul>
<div class="chartcontainer">
<canvas id="chart-performance" data-source="{% url "home_chartperformance" %}" data-legend-id="chart-performance-all-legend"></canvas>
<div id="chart-performance-all-legend"></div>
</div>
</div>
</div>
</div>
</div>
<div class="row row-flex row-flex-wrap">
<div class="col-md-6" data-source="{% url "home_resumoconvenios" %}"></div>
<div class="col-md-6">
<div class="panel panel-primary flex-col">
<div class="panel-heading">{% trans 'Distribuição de Casas por Gerente' %}</div>
<div class="panel-body">
<div class="chartcontainer">
<canvas id="chart-carteira" data-source="{% url "home_chartcarteira" %}" data-legend-id="chart-carteira-legend"></canvas>
<div id="chart-carteira-legend"></div>
</div>
</div>
</div>
</div>
</div>
{% comment %}
<div class="row row-flex row-flex-wrap">
<div class="col-md-6">
<div class="panel panel-primary flex-col">
<div class="panel-heading">{% trans 'Convênios assinados por projeto' %}</div>
<div class="panel-body">
<div class="chartcontainer">
<div>
<canvas id="chart-area-convenios" width="400" height="400" data-source="{% url "home_chartconvenios" %}" data-legend-id="area-convenios-legend"></canvas>
</div>
<div id="area-convenios-legend"></div>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-primary flex-col">
<div class="panel-heading">{% trans 'Processos de convênios por projeto' %}</div>
<div class="panel-body">
<div class="chartcontainer">
<canvas id="chart-area-processos" width="150" height="150" data-source="{% url "home_chartconvenios" %}?q=assinados" data-legend-id="area-processos-legend"></canvas>
<div id="area-processos-legend"></div>
</div>
</div>
</div>
</div>
</div>
{% endcomment %}

69
templates/snippets/modules/resumo_convenios.html

@ -1,69 +0,0 @@
{% load i18n %}
<div class="panel panel-primary flex-col">
<div class="panel-heading">{% trans 'Resumo de informações' %}</div>
<div class="panel-body table-responsive">
<dl class="dl-horizontal">
<dt class="pilllabel">{% trans 'Resumo por região' %}:</dt>
<dd>
<ul class="nav nav-pills">
<li><a href="{% url 'convenios-report_regiao_pdf' 'CO' %}">Centro Oeste</a></li>
<li><a href="{% url 'convenios-report_regiao_pdf' 'NE' %}">Nordeste</a></li>
<li><a href="{% url 'convenios-report_regiao_pdf' 'NO' %}">Norte</a></li>
<li><a href="{% url 'convenios-report_regiao_pdf' 'SD' %}">Sudeste</a></li>
<li><a href="{% url 'convenios-report_regiao_pdf' 'SL' %}">Sul</a></li>
</ul>
</dd>
</dl>
<table class="table table-condensed numeros">
<tr>
{% for item in tabela_resumo_camara.cabecalho_topo %}
<th>{{item}}</th>
{% endfor %}
</tr>
{% for cabecalho,lista in tabela_resumo_camara.lista_zip %}
<tr>
<th>{{cabecalho}}</th>
{% for item in lista %}
<td>{{item}}</td>
{% endfor %}
</tr>
{% endfor %}
</table>
</div>
<div class="panel-footer">
<table class="table table-condensed numeros">
<tr>
<th>{% trans 'Total de câmaras' %}</th>
<td>{{ tabela_resumo_camara.total_camaras }}</td>
</tr>
<tr>
<th>{% trans 'Câmaras sem processo' %}</th>
<td>{{ tabela_resumo_camara.camaras_sem_processo }}</td>
</tr>
<tr>
<th>{% trans 'Casas sem convenio que utilizam algum serviço de hospedagem' %}
<a href="{% url "home_reportsemconvenio" %}?modo=H" target="_blank" aria-label="{% trans "Listar casas" %}" title="{% trans "Listar casas" %}"><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span></a>
<a href="{% url "home_reportsemconvenio" %}?modo=H&f=csv" aria-label="{% trans "Download csv" %}" title="{% trans "Download csv" %}"><span class="glyphicon glyphicon-download" aria-hidden="true"></span></a>
</th>
<td>{{ tabela_resumo_camara.sem_convenio.hospedagem|length }}</td>
</tr>
<tr>
<th>{% trans 'Casas sem convenio que utilizam somente serviço de registro' %}
<a href="{% url "home_reportsemconvenio" %}?modo=R" target="_blank" aria-label="{% trans "Listar casas" %}" title="{% trans "Listar casas" %}"><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span></a>
<a href="{% url "home_reportsemconvenio" %}?modo=R&f=csv" aria-label="{% trans "Download csv" %}" title="{% trans "Download csv" %}"><span class="glyphicon glyphicon-download" aria-hidden="true"></span></a>
</th>
<td>{{ tabela_resumo_camara.sem_convenio.registro|length }}</td>
</tr>
<tr>
<th>{% trans 'Casas sem convenio que utilizam algum serviço de registro e/ou hospedagem' %}
<a href="{% url "home_reportsemconvenio" %}" target="_blank" aria-label="{% trans "Listar casas" %}" title="{% trans "Listar casas" %}"><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span></a>
<a href="{% url "home_reportsemconvenio" %}?f=csv" aria-label="{% trans "Download csv" %}" title="{% trans "Download csv" %}"><span class="glyphicon glyphicon-download" aria-hidden="true"></span></a>
</th>
<td>{{ tabela_resumo_camara.sem_convenio.total|length }}</td>
</tr>
</table>
</div>
</div>
Loading…
Cancel
Save