Replaced the Textarea widget with the TextAreaDiv widget on document and document page detail views

This commit is contained in:
Roberto Rosario
2011-08-05 07:42:27 -04:00
parent beea100cd9
commit 65f9eb11fb
4 changed files with 9 additions and 7 deletions

View File

@@ -9,6 +9,7 @@ from common.forms import DetailForm
from common.literals import PAGE_SIZE_CHOICES, PAGE_ORIENTATION_CHOICES
from common.conf.settings import DEFAULT_PAPER_SIZE
from common.conf.settings import DEFAULT_PAGE_ORIENTATION
from common.widgets import TextAreaDiv
from documents.models import Document, DocumentType, \
DocumentPage, DocumentPageTransformation, DocumentTypeFilename
@@ -229,9 +230,7 @@ class DocumentContentForm(forms.Form):
contents = forms.CharField(
label=_(u'Contents'),
widget=forms.widgets.Textarea(attrs={
'rows': 14, 'cols': 80, 'readonly': 'readonly'
})
widget=TextAreaDiv()
)