Ignore:
Timestamp:
8 Sep 2021, 07:15:07 (3 years ago)
Author:
Henrik Bettermann
Message:

Enable students and officers to upload scanned signature in the same
way as passport pictures are handled. Some tabs and titles had to be
renamed. The placeholder file, which is still the portrait
placeholder, are no longer shown on base pages.

Location:
main/waeup.kofa/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk

    • Property svn:ignore
      •  

        old new  
        2121faculties.csv
        2222.mr.developer.cfg
         23dist
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r16520 r16609  
    29242924
    29252925class StudentFilesUploadPage(KofaPage):
    2926     """ View to upload files by student
     2926    """ View to upload passport picture by student. The class name
     2927    is historical. The page is only used for the student's portrait.
    29272928    """
    29282929    grok.context(IStudent)
     
    29402941            return
    29412942        super(StudentFilesUploadPage, self).update()
     2943        return
     2944
     2945class StudentSignatureUploadPage(KofaPage):
     2946    """ View to upload scanned signature by student. Not active
     2947    in base package.
     2948    """
     2949    grok.context(IStudent)
     2950    grok.name('change_signature')
     2951    grok.require('waeup.uploadStudentFile')
     2952    grok.template('filesuploadpage')
     2953    label = _('Upload signature')
     2954    pnav = 4
     2955
     2956    def update(self):
     2957        SIGNATURE_CHANGE_STATES = getUtility(IStudentsUtils).SIGNATURE_CHANGE_STATES
     2958        if self.context.student.state not in SIGNATURE_CHANGE_STATES:
     2959            emit_lock_message(self,
     2960                _('This form is locked. You are in the wrong state.'))
     2961            return
     2962        super(StudentSignatureUploadPage, self).update()
    29422963        return
    29432964
Note: See TracChangeset for help on using the changeset viewer.