Added slide numbering reminder. Fixes issue #3041. Commit ready for merge.
- Legacy-Id: 18590
This commit is contained in:
parent
1a7aa2129d
commit
9963ab69d1
|
@ -331,6 +331,8 @@ class FileUploadForm(forms.Form):
|
|||
self.mime_types = settings.MEETING_VALID_UPLOAD_MIME_TYPES[doc_type]
|
||||
super(FileUploadForm, self).__init__(*args, **kwargs)
|
||||
label = '%s file to upload. ' % (self.doc_type.capitalize(), )
|
||||
if self.doc_type == "slides":
|
||||
label += 'Did you remember to put in slide numbers? '
|
||||
if self.mime_types:
|
||||
label += 'Note that you can only upload files with these formats: %s.' % (', '.join(self.mime_types, ))
|
||||
self.fields['file'].label=label
|
||||
|
|
|
@ -2495,7 +2495,7 @@ class UploadSlidesForm(FileUploadForm):
|
|||
|
||||
def clean_title(self):
|
||||
title = self.cleaned_data['title']
|
||||
# THe current tables only handles Unicode BMP:
|
||||
# The current tables only handles Unicode BMP:
|
||||
if ord(max(title)) > 0xffff:
|
||||
raise forms.ValidationError("The title contains characters outside the Unicode BMP, which is not currently supported")
|
||||
if self.session.meeting.type_id=='interim':
|
||||
|
|
Loading…
Reference in a new issue