Ejemplo n.º 1
0
 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 e.g. '3/4' indicates "
                                                     "75% pay.  It can also be input as a decimal value, e.g. 0.75 "
                                                     "for 75%.",
                                           label='Work fraction', initial=1)
     teaching_credits = fields.TeachingCreditField()
     teaching_load_decrease = fields.TeachingReductionField()
Ejemplo n.º 2
0
    class EntryForm(BaseEntryForm):
        RESULT_CHOICES = Choices(
            ('PEND', 'Pending'),
            ('RECI', 'Promoted'),
            ('DENI', 'Denied'),
        )

        rank = forms.ChoiceField(choices=RANK_CHOICES, required=True, 
                help_text='Rank being applied for (promoted to if successful)')
        result = forms.ChoiceField(label='Result', choices=RESULT_CHOICES,
                help_text='The end date of this event is assumed to be when this decision is effective.')
        steps = forms.ChoiceField(label='Steps Year One', choices=SALARY_STEPS_CHOICES,
                help_text=mark_safe('Annual step increase given for the <strong>first</strong> year after promotion'))
        steps2 = forms.ChoiceField(label='Steps Year Two', choices=SALARY_STEPS_CHOICES,
                help_text=mark_safe('Annual step increase given for the <strong>second</strong> year after promotion'))
Ejemplo n.º 3
0
    class EntryForm(BaseEntryForm):

        POSITIONS = Choices(
            ('UGRAD_DIRECTOR', 'Undergrad Program Director'),
            ('GRAD_DIRECTOR', 'Graduate Program Director'),
            ('DDP_DIRECTOR', 'Dual-Degree Program Director'),
            ('ASSOC_DIRECTOR', 'Associate Director/Chair'),
            ('DIRECTOR', 'School Director/Chair'),
            ('ASSOC_DEAN', 'Associate Dean'),
            ('DEAN', 'Dean'),
            ('OTHER', 'Other Admin Position'),
        )

        position = forms.ChoiceField(required=True, choices=POSITIONS)
        teaching_credit = TeachingCreditField(required=False, initial=None)
Ejemplo n.º 4
0
    class EntryForm(BaseEntryForm):

        CATEGORIES = Choices(
            ('BUYOUT', 'Course Buyout'),
            ('RELEASE', 'Teaching Release'),
            ('OTHER', 'Other'),
        )

        category = forms.ChoiceField(label='Type', choices=CATEGORIES)
        teaching_credits = TeachingCreditField()
        reason = forms.CharField(max_length=255, required=False)
        funded_by = forms.CharField(label='Funded By',
                                    max_length=255,
                                    required=False)
        approved_by = forms.CharField(label='Approved By',
                                      max_length=255,
                                      required=False)
Ejemplo n.º 5
0
    class EntryForm(BaseEntryForm):

        LEAVING_CHOICES = Choices(
            ('HERE', u'\u2014'),  # hasn't left yet
            ('RETI', 'Retired'),
            ('END', 'Limited-term contract ended'),
            ('UNIV', 'Left: job at another University'),
            ('PRIV', 'Left: private-sector job'),
            ('GONE', 'Left: employment status unknown'),
            ('FIRE', 'Dismissal'),
            ('DIED', 'Deceased'),
            ('OTHR', 'Other/Unknown'),
        )

        position_number = forms.CharField(
            initial='',
            required=False,
            widget=forms.TextInput(attrs={'size': '6'}))
        spousal_hire = forms.BooleanField(initial=False, required=False)
        leaving_reason = forms.ChoiceField(initial='HERE',
                                           choices=LEAVING_CHOICES)
Ejemplo n.º 6
0
    class EntryForm(BaseEntryForm):

        LEAVING_CHOICES = Choices(
            ('HERE', '\u2014'),  # hasn't left yet
            ('RETI', 'Retired'),
            ('END', 'Limited-term contract ended'),
            ('UNIV', 'Left: job at another University'),
            ('PRIV', 'Left: private-sector job'),
            ('GONE', 'Left: employment status unknown'),
            ('FIRE', 'Dismissal'),
            ('DIED', 'Deceased'),
            ('OTHR', 'Other/Unknown'),
        )

        position_number = forms.CharField(initial='', required=False, widget=forms.TextInput(attrs={'size': '6'}))
        spousal_hire = forms.BooleanField(initial=False, required=False)
        leaving_reason = forms.ChoiceField(initial='HERE', choices=LEAVING_CHOICES)
        degree1 = forms.CharField(max_length=12, help_text='These are the degrees to be inserted into the '
                                                           'Recommendation for Appointment Forms (AKA "Yellow Form"). '
                                                           ' List the highest degree first.', required=False,
                                  label='Degree 1', widget=forms.TextInput(attrs={'size': '13'}))
        year1 = forms.CharField(max_length=5, required=False, label='Year 1', widget=forms.TextInput(attrs={'size': '5'}))
        institution1 = forms.CharField(max_length=25, required=False, label='Institution 1')
        location1 = forms.CharField(max_length=23, required=False, label='City/Country 1')
        degree2 = forms.CharField(max_length=12, required=False, label='Degree 2',
                                  widget=forms.TextInput(attrs={'size': '13'}))
        year2 = forms.CharField(max_length=5, required=False, label='Year 2', widget=forms.TextInput(attrs={'size': '5'}))
        institution2 = forms.CharField(max_length=25, required=False, label='Institution 2')
        location2 = forms.CharField(max_length=23, required=False, label='City/Country 2')
        degree3 = forms.CharField(max_length=12, required=False, label='Degree 3',
                                  widget=forms.TextInput(attrs={'size': '13'}))
        year3 = forms.CharField(max_length=5, required=False, label='Year 3', widget=forms.TextInput(attrs={'size': '5'}))
        institution3 = forms.CharField(max_length=25, required=False, label='Institution 3')
        location3 = forms.CharField(max_length=23, required=False, label='City/Country 3')
        teaching_semester_credits = forms.DecimalField(max_digits=3, decimal_places=0, required=False,
                                                       help_text='Number of teaching semester credits, for the tenure '
                                                       'track form')
Ejemplo n.º 7
0
from faculty.event_types.base import BaseEntryForm
from faculty.event_types.base import CareerEventHandlerBase
from faculty.event_types.choices import Choices
from faculty.event_types.base import SalaryAdjust, TeachingAdjust
from faculty.event_types.mixins import TeachingCareerEvent, SalaryCareerEvent
from faculty.event_types.constants import SALARY_STEPS_CHOICES
from dashboard.letters import yellow_form_limited, yellow_form_tenure

RANK_CHOICES = Choices(
    ('LLEC', 'Limited-Term Lecturer'),
    ('LABI', 'Laboratory Instructor'),
    ('LECT', 'Lecturer'),
    ('SLEC', 'Senior Lecturer'),
    ('INST', 'Instructor'),
    ('ASSI', 'Assistant Professor'),
    ('ASSO', 'Associate Professor'),
    ('FULL', 'Full Professor'),
    ('URAS', 'University Research Associate'),
    ('ADJC', 'Adjunct Professor'),
    ('POPP', 'Professor of Professional Practice'),
    #('UNIV', 'University Professor'),
    #('UNIR', 'University Research Professor'),
)

CONTRACT_REVIEW_CHOICES = Choices(
    ('PEND', 'Pending'),
    ('PROM', 'Renewed'),
    ('DENY', 'Denied'),
)

Ejemplo n.º 8
0
PERMISSION_CHOICES = {
    # who can create/edit/approve various things?
    'MEMB': 'Faculty Member',
    'DEPT': 'Department',
    'FAC': 'Dean\'s Office',
}
PERMISSION_LEVEL = {
    'NONE': 0,
    'MEMB': 1,
    'DEPT': 2,
    'FAC': 3,
}

EVENT_FLAGS = [
    'affects_teaching',
    'affects_salary',
    # You should add new flags just above this line
]

SALARY_STEPS_CHOICES = Choices(
    ('-', 'Pending'),
    ('0.0', '0.0'),
    ('0.5', '0.5'),
    ('1.0', '1.0'),
    ('1.5', '1.5'),
    ('2.0', '2.0'),
    ('2.5', '2.5'),
    ('3.0', '3.0'),
)