Convert document thumbnails, preview, image preview and staging files to template base widgets. Unify all updated widgets. Display resolution settings are now specified as width and height and not a single resolution value.
Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
committed by
Roberto Rosario
parent
d29d4ba110
commit
8590bff6e4
17
mayan/apps/documents/fields.py
Normal file
17
mayan/apps/documents/fields.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
from django import forms
|
||||
|
||||
from .widgets import DocumentPagesCarouselWidget, DocumentPageImageWidget
|
||||
|
||||
|
||||
class DocumentField(forms.fields.Field):
|
||||
widget = DocumentPagesCarouselWidget
|
||||
|
||||
|
||||
class DocumentPageField(forms.fields.Field):
|
||||
widget = DocumentPageImageWidget
|
||||
|
||||
|
||||
class DocumentVersionField(forms.fields.Field):
|
||||
widget = DocumentPagesCarouselWidget
|
||||
Reference in New Issue
Block a user