From 7cc0ea9b6b6f8011e75e7d7d96b639bbf76a4810 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Wed, 13 Jan 2016 17:10:31 -0200 Subject: [PATCH] Fix #151 --- protocoloadm/views.py | 23 +++++++++++++++++-- .../protocoloadm/protocolar_documento.html | 6 +---- .../protocoloadm/protocolar_materia.html | 6 +---- 3 files changed, 23 insertions(+), 12 deletions(-) diff --git a/protocoloadm/views.py b/protocoloadm/views.py index 03265372f..250d76ff6 100644 --- a/protocoloadm/views.py +++ b/protocoloadm/views.py @@ -454,7 +454,17 @@ class ProtocoloDocumentForm(forms.Form): self.helper.layout = Layout( Fieldset('Protocolo - Opção de Numeração', row1), Fieldset('Identificação de Documento', - row2, row3, row4, row5, row6) + row2, + row3, + row4, + row5, + row6, + HTML(" "), + ButtonHolder(Submit('submit', 'Protocolar Documento', + css_class='button primary' + ) + ) + ) ) super(ProtocoloDocumentForm, self).__init__( *args, **kwargs) @@ -561,7 +571,16 @@ class ProtocoloMateriaForm(forms.Form): self.helper.layout = Layout( Fieldset('Protocolo - Opção de Numeração', row1), Fieldset('Identificação da Matéria', - row2, row3, row4, row5) + row2, + row3, + row4, + row5, + HTML(" "), + ButtonHolder(Submit('submit', 'Protocolar Matéria', + css_class='button primary' + ) + ) + ) ) super(ProtocoloMateriaForm, self).__init__( *args, **kwargs) diff --git a/templates/protocoloadm/protocolar_documento.html b/templates/protocoloadm/protocolar_documento.html index b4bc98ace..87259a900 100644 --- a/templates/protocoloadm/protocolar_documento.html +++ b/templates/protocoloadm/protocolar_documento.html @@ -3,9 +3,5 @@ {% load crispy_forms_tags %} {% block detail_content %} -
- {% csrf_token %} - {% crispy form %} - -
+ {% crispy form %} {% endblock detail_content %} \ No newline at end of file diff --git a/templates/protocoloadm/protocolar_materia.html b/templates/protocoloadm/protocolar_materia.html index f0418ade1..87259a900 100644 --- a/templates/protocoloadm/protocolar_materia.html +++ b/templates/protocoloadm/protocolar_materia.html @@ -3,9 +3,5 @@ {% load crispy_forms_tags %} {% block detail_content %} -
- {% csrf_token %} - {% crispy form %} - -
+ {% crispy form %} {% endblock detail_content %} \ No newline at end of file