From bee6414744f54aa414fc77e6938ccf15f103e1ae Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Tue, 29 Mar 2016 10:21:04 -0300 Subject: [PATCH] Indenta foto com restante dos campos --- base/forms.py | 11 +++++++---- parlamentares/forms.py | 23 +++++++++++++---------- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/base/forms.py b/base/forms.py index 8e3cec9bb..798b40e11 100644 --- a/base/forms.py +++ b/base/forms.py @@ -36,6 +36,7 @@ class CasaLegislativaTabelaAuxForm(ModelForm): 'cep': forms.TextInput(attrs={'class': 'cep'}), 'telefone': forms.TextInput(attrs={'class': 'telefone'}), 'fax': forms.TextInput(attrs={'class': 'telefone'}), + 'logotipo': forms.FileInput, 'informacao_geral': forms.Textarea( attrs={'id': 'casa-informacoes'}) } @@ -87,16 +88,18 @@ class CasaLegislativaTabelaAuxForm(ModelForm): row3, row4, row5, - HTML("""{% if form.logotipo.value %} + HTML("""
+ {% if form.logotipo.value %} -

+
- {% endif %}""", ), + {% endif %} +
"""), row6, row7, row8, diff --git a/parlamentares/forms.py b/parlamentares/forms.py index 2b4725c0c..5ba68216d 100644 --- a/parlamentares/forms.py +++ b/parlamentares/forms.py @@ -131,16 +131,19 @@ class ParlamentaresForm (ModelForm): row1, row2, row3, row4, row5, row6, row7, row8, row9, row10, row11, row12, row13, - HTML("""{% if form.fotografia.value %} - -

- - {% endif %}""", ), + HTML("""
+ {% if form.fotografia.value %} + +
+ + {% endif %} +
""", ), row14, form_actions())