diff --git a/rowers/forms.py b/rowers/forms.py index f4cfb3aa..744c47a3 100644 --- a/rowers/forms.py +++ b/rowers/forms.py @@ -65,7 +65,7 @@ class DocumentsForm(forms.Form): def __init__(self, *args, **kwargs): from django.forms.widgets import HiddenInput super(DocumentsForm, self).__init__(*args, **kwargs) - self.fields['offline'].widget = HiddenInput() +# self.fields['offline'].widget = HiddenInput() from utils import ( workflowleftpanel,workflowmiddlepanel, diff --git a/rowers/templates/document_form.html b/rowers/templates/document_form.html index 53c88b5d..997bfc37 100644 --- a/rowers/templates/document_form.html +++ b/rowers/templates/document_form.html @@ -22,8 +22,9 @@ } if (f.size > 1048576) { $('#id_offline').val('True'); + $('#id_offline').prop('checked','True'); console.log("Set offline to True"); - $('#extra_message').text('Because of the large size, the file will be processed offline. You will receive email when it is done. The extra actions will not be performed.'); + $('#extra_message').text('Because of the large size, we recommend to use background processing. You will receive email when it is done. The extra actions will not be performed.'); $('#extra_message').addClass('message'); } });