From 66ef0e5fc7d811d90da03c686ba14ce67f3d175d Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Wed, 20 Apr 2016 10:28:59 -0300 Subject: [PATCH] Fix #331 --- base/forms.py | 2 +- parlamentares/forms.py | 4 +++- static/js/app.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/base/forms.py b/base/forms.py index 53b7f4d32..4df29cdf1 100644 --- a/base/forms.py +++ b/base/forms.py @@ -43,7 +43,7 @@ class CasaLegislativaTabelaAuxForm(ModelForm): 'fax': forms.TextInput(attrs={'class': 'telefone'}), 'logotipo': ImageThumbnailFileInput, 'informacao_geral': forms.Textarea( - attrs={'id': 'casa-informacoes'}) + attrs={'id': 'texto-rico'}) } def clean_logotipo(self): diff --git a/parlamentares/forms.py b/parlamentares/forms.py index 40d4c746e..11d6ad761 100644 --- a/parlamentares/forms.py +++ b/parlamentares/forms.py @@ -21,7 +21,9 @@ class ParlamentarForm(ModelForm): class Meta: model = Parlamentar exclude = [] - widgets = {'fotografia': ImageThumbnailFileInput} + widgets = {'fotografia': ImageThumbnailFileInput, + 'biografia': forms.Textarea( + attrs={'id': 'texto-rico'})} class ParlamentarCreateForm(ParlamentarForm): diff --git a/static/js/app.js b/static/js/app.js index 4507b64b6..e29834ae7 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -119,5 +119,5 @@ $(document).ready(function(){ refreshDatePicker(); refreshMask(); autorModal(); - initTinymce("biografia-parlamentar,casa-informacoes"); + initTinymce("texto-rico"); });