Commit f5373ef8 authored by Daniel W Bond's avatar Daniel W Bond

laying out the forms

parent 25b961d6
......@@ -17,16 +17,37 @@ class StyledSeachForm( SearchForm ):
}),
)
# class SelectYourCourses( ModelForm ):
# class Meta:
# models = Course
# widgets = {
# department abbreviation
# course number
# name
class NewTrajectoryForm( ModelForm ):
# def __init__(self, *args, **kwargs):
class Meta:
model = Trajectory
fields = (
fields = ('name', 'degreeType', 'programType',
)
exclude = (
exclude = ('courseReqs', 'created', 'last_modified', 'catalogYear',
'isCompleted',
)
labels = {
}
widgets = {
# name of major(s)
'name' : TextInput(attrs={
'class' : 'form-control',
'placeholder' : 'Government and International Politics',
}),
# name of minor(s)
# are you in the honors college?
# current semester
}
......@@ -77,12 +77,12 @@ class Program(BaseModel):
name = models.CharField(max_length = 150)
# programSlug = models.SlugField(max_length = 50, unique = True)
# courseCollections
courseReqs = models.ManyToManyField('CourseCollection',)
# major or minor or gened
programType = models.CharField(max_length = 25)
# courseCollections
courseReqs = models.ManyToManyField('CourseCollection',)
# is BA, BS, Honors
# all majors must take a gened program, null for minors, geneds
# CHECK VIEWS, MAKE SURE I DIDN'T ALREADY SOMEHOW ACCOUNT FOR THIS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment