예제 #1
0
파일: career.py 프로젝트: leihuagh/coursys
 class EntryForm(BaseEntryForm):
     REASONS = Choices(
         ('MEDICAL', 'Medical'),
         ('PARENTAL', 'Parental'),
         ('ADMIN', 'Admin'),
         ('LOA', 'Leave of Absence'),
         ('SECONDMENT', 'Secondment'),
     )
     reason = forms.ChoiceField(label='Type', choices=REASONS)
     leave_fraction = fields.FractionField(help_text="Fraction of salary received during leave eg. '3/4' indicates 75% pay",
                                           label='Work fraction', initial=1)
     teaching_credits = fields.TeachingCreditField()
     teaching_load_decrease = fields.TeachingReductionField()
예제 #2
0
파일: info.py 프로젝트: csvenja/coursys
 class EntryForm(BaseEntryForm):
     description = forms.CharField(
         help_text='A brief description of the service', max_length=30)
     add_pay = fields.AddPayField()
     teaching_credits = fields.TeachingCreditField()