From bef19a3c61d21061b9c33c24d441d01b06710457 Mon Sep 17 00:00:00 2001 From: Mariana Mendes Date: Tue, 23 Oct 2018 12:45:19 -0200 Subject: [PATCH] finish the create view --- sapl/sessao/forms.py | 12 ++++++------ ...a_create.html => justificativaausencia_form.html} | 2 -- sapl/utils.py | 12 ++++++------ 3 files changed, 12 insertions(+), 14 deletions(-) rename sapl/templates/sessao/{justificativaausencia_create.html => justificativaausencia_form.html} (98%) diff --git a/sapl/sessao/forms.py b/sapl/sessao/forms.py index e657bfc19..b691ca968 100644 --- a/sapl/sessao/forms.py +++ b/sapl/sessao/forms.py @@ -18,7 +18,7 @@ from sapl.materia.models import (MateriaLegislativa, StatusTramitacao, from sapl.parlamentares.models import Parlamentar, Legislatura, Mandato from sapl.utils import (RANGE_DIAS_MES, RANGE_MESES, MateriaPesquisaOrderingFilter, autor_label, - ausencia_expediente, ausencia_ordem, autor_modal, timezone) + ausencia_materia, autor_modal, timezone) from .models import (Bancada, Bloco, ExpedienteMateria, JustificativaAusencia, Orador, OradorExpediente, OrdemDia, SessaoPlenaria, @@ -707,9 +707,9 @@ class JustificativaAusenciaForm(ModelForm): row3 = to_row( [('upload_anexo', 6)]) row4 = to_row( - [('tipo_ausencia', 6)]) + [('tipo_ausencia', 12)]) row5 = to_row( - [('ausencia', 6)]) + [('ausencia', 12)]) row6 = to_row( [('observacao', 12)]) @@ -718,9 +718,9 @@ class JustificativaAusenciaForm(ModelForm): Fieldset(_('Justificativa de Ausência'), row1, row2, row3, row4, row5, - HTML(ausencia_expediente), - HTML(ausencia_ordem), - row6,) + HTML(ausencia_materia), + row6, + form_actions(label='Salvar')) ) super(JustificativaAusenciaForm, self).__init__( *args, **kwargs) diff --git a/sapl/templates/sessao/justificativaausencia_create.html b/sapl/templates/sessao/justificativaausencia_form.html similarity index 98% rename from sapl/templates/sessao/justificativaausencia_create.html rename to sapl/templates/sessao/justificativaausencia_form.html index f8ebd0979..b3b9259fd 100644 --- a/sapl/templates/sessao/justificativaausencia_create.html +++ b/sapl/templates/sessao/justificativaausencia_form.html @@ -5,9 +5,7 @@ {% crispy form %} {% endblock detail_content %} - {% block extra_js %} -