Browse Source

Fix #331

pull/336/head
Eduardo Edson Batista Cordeiro Alves 9 years ago
parent
commit
66ef0e5fc7
  1. 2
      base/forms.py
  2. 4
      parlamentares/forms.py
  3. 2
      static/js/app.js

2
base/forms.py

@ -43,7 +43,7 @@ class CasaLegislativaTabelaAuxForm(ModelForm):
'fax': forms.TextInput(attrs={'class': 'telefone'}), 'fax': forms.TextInput(attrs={'class': 'telefone'}),
'logotipo': ImageThumbnailFileInput, 'logotipo': ImageThumbnailFileInput,
'informacao_geral': forms.Textarea( 'informacao_geral': forms.Textarea(
attrs={'id': 'casa-informacoes'}) attrs={'id': 'texto-rico'})
} }
def clean_logotipo(self): def clean_logotipo(self):

4
parlamentares/forms.py

@ -21,7 +21,9 @@ class ParlamentarForm(ModelForm):
class Meta: class Meta:
model = Parlamentar model = Parlamentar
exclude = [] exclude = []
widgets = {'fotografia': ImageThumbnailFileInput} widgets = {'fotografia': ImageThumbnailFileInput,
'biografia': forms.Textarea(
attrs={'id': 'texto-rico'})}
class ParlamentarCreateForm(ParlamentarForm): class ParlamentarCreateForm(ParlamentarForm):

2
static/js/app.js

@ -119,5 +119,5 @@ $(document).ready(function(){
refreshDatePicker(); refreshDatePicker();
refreshMask(); refreshMask();
autorModal(); autorModal();
initTinymce("biografia-parlamentar,casa-informacoes"); initTinymce("texto-rico");
}); });

Loading…
Cancel
Save