Browse Source
Merge branch '3.1.x' into 2631-filtra-lista-anexar-lote
pull/2654/head
Victor Fabre
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with
67 additions and
60 deletions
-
docker-compose.yml
-
sapl/base/views.py
-
sapl/crud/base.py
-
sapl/sessao/urls.py
-
sapl/settings.py
-
sapl/templates/base.html
-
sapl/templates/comissoes/composicao_list.html
-
sapl/templates/crud/list.html
-
sapl/templates/protocoloadm/MateriaTemplate.html
-
sapl/templates/sessao/sessaoplenaria_form.html
-
setup.py
|
|
|
@ -11,7 +11,7 @@ sapldb: |
|
|
|
ports: |
|
|
|
- "5432:5432" |
|
|
|
sapl: |
|
|
|
image: interlegis/sapl:3.1.148 |
|
|
|
image: interlegis/sapl:3.1.149 |
|
|
|
restart: always |
|
|
|
environment: |
|
|
|
ADMIN_PASSWORD: interlegis |
|
|
|
|
|
|
|
@ -611,12 +611,13 @@ class RelatorioMateriasTramitacaoView(FilterView): |
|
|
|
qs = filtra_url_materias_em_tramitacao( |
|
|
|
qr, qs, 'tramitacao__status', 'status') |
|
|
|
|
|
|
|
context['object_list'] = qs |
|
|
|
li = [li1 for li1 in qs if li1.tramitacao_set.last() and li1.tramitacao_set.last().status.indicador != 'F'] |
|
|
|
context['object_list'] = li |
|
|
|
|
|
|
|
qtdes = {} |
|
|
|
for tipo in TipoMateriaLegislativa.objects.all(): |
|
|
|
qs = context['object_list'] |
|
|
|
qtde = len(qs.filter(tipo_id=tipo.id)) |
|
|
|
li = context['object_list'] |
|
|
|
qtde = sum(1 for i in li if i.tipo_id==tipo.id) |
|
|
|
if qtde > 0: |
|
|
|
qtdes[tipo] = qtde |
|
|
|
context['qtdes'] = qtdes |
|
|
|
|
|
|
|
@ -581,6 +581,8 @@ class CrudListView(PermissionRequiredContainerCrudMixin, ListView): |
|
|
|
rmo = rmo[0] |
|
|
|
if not isinstance(rmo, str): |
|
|
|
rmo = rmo[0] |
|
|
|
if rmo.startswith('-'): |
|
|
|
rmo = rmo[1:] |
|
|
|
fo = '%s__%s' % (fo, rmo) |
|
|
|
|
|
|
|
fo = desc + fo |
|
|
|
|
|
|
|
@ -59,9 +59,13 @@ urlpatterns = [ |
|
|
|
name='remove_parlamentar_composicao'), |
|
|
|
|
|
|
|
url(r'^sessao/recuperar-materia/', recuperar_materia), |
|
|
|
url(r'^sessao/recuperar-numero-sessao/', recuperar_numero_sessao), |
|
|
|
url(r'^sessao/recuperar-numero-sessao/', |
|
|
|
recuperar_numero_sessao, |
|
|
|
name='recuperar_numero_sessao_view' |
|
|
|
), |
|
|
|
url(r'^sessao/sessao-legislativa-legislatura-ajax/', |
|
|
|
sessao_legislativa_legislatura_ajax), |
|
|
|
sessao_legislativa_legislatura_ajax, |
|
|
|
name='sessao_legislativa_legislatura_ajax_view'), |
|
|
|
|
|
|
|
url(r'^sessao/(?P<pk>\d+)/(?P<spk>\d+)/abrir-votacao$', |
|
|
|
abrir_votacao, |
|
|
|
|
|
|
|
@ -41,7 +41,7 @@ ALLOWED_HOSTS = ['*'] |
|
|
|
LOGIN_REDIRECT_URL = '/' |
|
|
|
LOGIN_URL = '/login/?next=' |
|
|
|
|
|
|
|
SAPL_VERSION = '3.1.148' |
|
|
|
SAPL_VERSION = '3.1.149' |
|
|
|
|
|
|
|
if DEBUG: |
|
|
|
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' |
|
|
|
|
|
|
|
@ -179,7 +179,7 @@ |
|
|
|
<small> |
|
|
|
Desenvolvido pelo <a href="http://www.interlegis.leg.br/">Interlegis</a> em software livre e aberto. |
|
|
|
</small> |
|
|
|
<span>Release: 3.1.148</span> |
|
|
|
<span>Release: 3.1.149</span> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
<div class="col-md-4"> |
|
|
|
|
|
|
|
@ -1,10 +1,8 @@ |
|
|
|
{% extends "crud/list.html" %} |
|
|
|
{% load i18n common_tags crispy_forms_tags%} |
|
|
|
|
|
|
|
{% block base_content %} |
|
|
|
{% if user.is_authenticated and perms.comissoes.add_composicao %} |
|
|
|
<div class="context-actions clearfix"> |
|
|
|
{% block actions %} |
|
|
|
{% if user.is_authenticated and perms.comissoes.add_composicao %} |
|
|
|
<div class="actions btn-group float-right btn-group-lg" role="group"> |
|
|
|
{% if view.create_url %} |
|
|
|
<a href="{{ view.create_url }}" class="btn btn-outline-primary"> |
|
|
|
@ -13,13 +11,13 @@ |
|
|
|
{% endif %} |
|
|
|
{% block more_buttons %}{% endblock more_buttons %} |
|
|
|
</div> |
|
|
|
{% endblock actions %} |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
{% endblock actions %} |
|
|
|
|
|
|
|
{% block extra_content %} |
|
|
|
<form method="GET"> |
|
|
|
<fieldset class="form-group"> |
|
|
|
<legend>Selecione o Período</legend> |
|
|
|
<form method="GET"> |
|
|
|
<select name="pk" class="form-control" onChange="form.submit();"> |
|
|
|
{% for c in composicao_list %} |
|
|
|
<option value="{{c.id}}" {% if composicao_pk == c.id %} selected {% endif %}> |
|
|
|
@ -27,20 +25,21 @@ |
|
|
|
</option> |
|
|
|
{% endfor %} |
|
|
|
</select> |
|
|
|
</form> |
|
|
|
</fieldset> |
|
|
|
</form> |
|
|
|
<br/> |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
{% block container_table_list %} |
|
|
|
{% if user.is_authenticated and perms.comissoes.add_participacao %} |
|
|
|
<div class="context-actions clearfix"> |
|
|
|
<div class="actions btn-group mb-2" role="group"> |
|
|
|
<a href="{% url 'sapl.comissoes:participacao_create' composicao_pk %}" class="btn btn-outline-primary"> |
|
|
|
Adicionar Participação em Comissão |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
<div class="clearfix"></div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="container-table"> |
|
|
|
<table class="table table-striped table-hover table-link-ordering"> |
|
|
|
<thead> |
|
|
|
@ -71,4 +70,4 @@ |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
</div> |
|
|
|
{% endblock base_content %} |
|
|
|
{% endblock %} |
|
|
|
|
|
|
|
@ -5,11 +5,12 @@ |
|
|
|
|
|
|
|
<div class="context-actions clearfix"> |
|
|
|
|
|
|
|
<div class="actions search float-left"> |
|
|
|
<div class="actions search"> |
|
|
|
{% if form %} |
|
|
|
{% crispy form %} |
|
|
|
{% endif %} |
|
|
|
</div> |
|
|
|
|
|
|
|
{% block actions %} |
|
|
|
<div class="actions btn-group float-right btn-group-lg" role="group"> |
|
|
|
{% if view.create_url %} |
|
|
|
|
|
|
|
@ -3,17 +3,17 @@ |
|
|
|
|
|
|
|
{% block base_content %} |
|
|
|
<div class="alert alert-success alert-dismissible " role="alert"> |
|
|
|
<p align="center"><b><font color="green">Matéria protocolada com sucesso!</font></b></p> |
|
|
|
Matéria protocolada com sucesso! |
|
|
|
</div> |
|
|
|
|
|
|
|
<div align="center"> |
|
|
|
|
|
|
|
<div class="row" style="width:50%;"> |
|
|
|
<div class="row mb-3" style="width:50%;"> |
|
|
|
<div class="col-md-6"> |
|
|
|
<a onclick="window.open('{% url 'sapl.relatorios:relatorio_etiqueta_protocolo' protocolo.numero protocolo.ano %}','Comprovante','width=400, height=200')"class="btn btn-secondary">Imprimir Etiqueta</a> |
|
|
|
<span onclick="window.open('{% url 'sapl.relatorios:relatorio_etiqueta_protocolo' protocolo.numero protocolo.ano %}','Comprovante','width=400, height=200')"class="btn btn-secondary">Imprimir Etiqueta</span> |
|
|
|
</div> |
|
|
|
<div class="col-md-6"> |
|
|
|
<a target="popup" class="btn btn-secondary" onclick="window.open('{% url 'sapl.protocoloadm:comprovante_protocolo' protocolo.pk %}','Comprovante','width=800, height=700')">Imprimir Comprovante</a> |
|
|
|
<span target="popup" class="btn btn-secondary" onclick="window.open('{% url 'sapl.protocoloadm:comprovante_protocolo' protocolo.pk %}','Comprovante','width=800, height=700')">Imprimir Comprovante</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
@ -13,10 +13,10 @@ |
|
|
|
var sessao = $("#id_sessao_legislativa").val() |
|
|
|
|
|
|
|
if (tipo) { |
|
|
|
$.get("/sessao/recuperar-numero-sessao",{tipo: tipo, sessao_legislativa:sessao}, |
|
|
|
$.get("{% url 'sapl.sessao:recuperar_numero_sessao_view' %}",{tipo: tipo, sessao_legislativa:sessao}, |
|
|
|
function(data, status) { |
|
|
|
$("#id_numero").val(data.numero); |
|
|
|
console.log(data) |
|
|
|
// console.log(data) |
|
|
|
}); |
|
|
|
} |
|
|
|
else{ |
|
|
|
@ -35,7 +35,7 @@ |
|
|
|
var id_sessao_leg = $("#id_sessao_legislativa").val(); |
|
|
|
$("#id_sessao_legislativa option").remove(); |
|
|
|
if (id_legislatura) { |
|
|
|
$.get("/sessao/sessao-legislativa-legislatura-ajax", {legislatura: id_legislatura}, function(data) { |
|
|
|
$.get("{% url 'sapl.sessao:sessao_legislativa_legislatura_ajax_view' %}", {legislatura: id_legislatura}, function(data) { |
|
|
|
lista_sessoes = data['sessao_legislativa']; |
|
|
|
|
|
|
|
$('#id_sessao_legislativa').append('<option value="">' + '---------' + '</option>'); |
|
|
|
|
|
|
|
@ -20,7 +20,7 @@ install_requires = [ |
|
|
|
'django-extra-views==0.12.0', |
|
|
|
'django-model-utils==3.1.2', |
|
|
|
'django-reversion==3.0.2', |
|
|
|
'django-reversion-compare==0.8.6' |
|
|
|
'django-reversion-compare==0.8.6', |
|
|
|
'django-speedinfo==1.4.0', |
|
|
|
'django-extensions==2.1.4', |
|
|
|
'django-image-cropping==1.2.0', |
|
|
|
@ -43,7 +43,7 @@ install_requires = [ |
|
|
|
] |
|
|
|
setup( |
|
|
|
name='interlegis-sapl', |
|
|
|
version='3.1.148', |
|
|
|
version='3.1.149', |
|
|
|
packages=find_packages(), |
|
|
|
include_package_data=True, |
|
|
|
license='GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007', |
|
|
|
|