Merged in [18590] from peter@akayla.com:

Added slide numbering reminder. Fixes issue .
 - Legacy-Id: 18610
Note: SVN reference [18590] has been migrated to Git commit 9963ab69d1
This commit is contained in:
Henrik Levkowetz 2020-10-12 15:27:02 +00:00
commit 517555b61b
2 changed files with 3 additions and 1 deletions
ietf/meeting

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

@ -2493,7 +2493,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':