From dbcce4ad83ca814974fab554bfbc2bfb5eeab814 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Fri, 12 Feb 2016 14:03:42 -0200 Subject: [PATCH] =?UTF-8?q?Refatora=20bot=C3=A3o=20de=20submit=20de=20tela?= =?UTF-8?q?=20de=20pesquisa=20formul=C3=A1rio=20para=20utilizar=20crispy?= =?UTF-8?q?=20form?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit E comenta radio button com problema devido ao Bootstrap até encontrar solução. --- protocoloadm/views.py | 6 +++--- templates/protocoloadm/protocolo_pesquisa.html | 11 +++-------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/protocoloadm/views.py b/protocoloadm/views.py index 248cb4c4d..216af2f1c 100644 --- a/protocoloadm/views.py +++ b/protocoloadm/views.py @@ -149,8 +149,8 @@ class ProtocoloForm(forms.Form): ('0', 'Administrativo'), ('1', 'Legislativo'), ('', 'Ambos')], - widget=forms.RadioSelect( - renderer=HorizontalRadioRenderer) + # widget=forms.RadioSelect( + # renderer=HorizontalRadioRenderer) ) @@ -203,7 +203,7 @@ class ProtocoloForm(forms.Form): [('natureza_processo', 12)]) self.helper = FormHelper() - self.helper.layout = Layout(row1, row2, row3, row4, row5) + self.helper.layout = Layout(row1, row2, row3, row4, row5, form_actions(save_label='Pesquisar')) super(ProtocoloForm, self).__init__( *args, **kwargs) diff --git a/templates/protocoloadm/protocolo_pesquisa.html b/templates/protocoloadm/protocolo_pesquisa.html index 5b699906f..60a795994 100644 --- a/templates/protocoloadm/protocolo_pesquisa.html +++ b/templates/protocoloadm/protocolo_pesquisa.html @@ -3,12 +3,7 @@ {% load crispy_forms_tags %} {% block detail_content %} -
- {% csrf_token %} -
- Pesquisa Avançada - {% crispy form %} - -
-
+ Pesquisa Avançada + {% crispy form %} + {% endblock detail_content %}