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()
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()