Added slide numbering reminder. Fixes issue #3041. Commit ready for merge.

- Legacy-Id: 18590
This commit is contained in:
Peter E. Yee 2020-10-09 21:41:10 +00:00
parent 1a7aa2129d
commit 9963ab69d1
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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':