Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel W Bond
advisor
Commits
c763e3e9
Commit
c763e3e9
authored
Feb 09, 2014
by
Daniel W Bond
Browse files
moved a smidge around with the forms
parent
8d64cb6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
advisor/trajectories/forms.py
View file @
c763e3e9
...
...
@@ -6,6 +6,7 @@ from trajectories.models import Trajectory
from
haystack.forms
import
SearchForm
# searching
class
StyledSeachForm
(
SearchForm
):
q
=
forms
.
CharField
(
required
=
False
,
...
...
@@ -17,21 +18,9 @@ class StyledSeachForm( SearchForm ):
}),
)
# class SelectYourCourses( ModelForm ):
# needs to connect with a Student's completedCourses field
# class Meta:
# models = Course
# widgets = {
# department abbreviation
# course number
# name
# }
# build a trajectory
# create a new trajectory
class
NewTrajectoryForm
(
ModelForm
):
# def __init__(self, *args, **kwargs):
...
...
@@ -60,9 +49,6 @@ class NewTrajectoryForm( ModelForm ):
}),
}
# class CreateTrajectoryForm ( ModelForm ):
# def __init__(self, *args, **kwargs):
# the user selects the courses they are allowed to take but
# this needs to be presented in a dramatically different way than
# just some silly dropdown
...
...
@@ -91,7 +77,7 @@ class NewTrajectoryForm( ModelForm ):
}),
}
class
StudentInfoForm
(
ModelForm
):
class
Student
Edit
InfoForm
(
ModelForm
):
# def __init__(self, *args, **kwargs):
class
Meta
:
...
...
@@ -122,3 +108,19 @@ class StudentInfoForm( ModelForm ):
'placeholder'
:
'What year are you?'
}),
}
# class SelectYourCourses( ModelForm ):
# needs to connect with a Student's completedCourses field
# class Meta:
# models = Course
# widgets = {
# department abbreviation
# course number
# name
# }
advisor/trajectories/templates/create.html
deleted
100644 → 0
View file @
8d64cb6b
{% extends 'layouts/base.html' %}
{% block title %}
GMU Advisor | Create
{% endblock %}
{% block content %}
<div
class=
"page-header"
id=
"banner"
>
<div
class=
"row"
>
<div
class=
"col-md-12 text-center"
>
<h2>
Daniel's Trajectory for Computer Science, BS, and History, BA
</h2>
<p
class=
"lead"
>
Semester Four
</p>
<!-- Eventually need to give the graduation dates!
Can't believe I hadn't thought of that! -->
</div>
</div>
</div>
<div
class=
"row well"
>
<div
class=
"col-md-12"
>
<h4>
See your previous semesters
</h4>
<!-- accordian for previously semesters' trajectories -->
{% for trajectory in previousTrajectories %}
<div
class=
"col-md-12"
>
{% for course in trajectory %}
<div
class=
"col-md-4"
>
Your courses
</div>
{% endfor %}
</div>
{% endfor %}
</div>
</div>
<div
class=
"row well"
>
<h4>
<div
class=
"col-md-3"
>
<p>
Semesters ahead
</p>
</div>
<div
class=
"col-md-3"
>
<p>
Credits selected this semester
</p>
</div>
<div
class=
"col-md-3"
>
<p>
Credits remaining for program
</p>
</div>
</h4>
</div>
<div
class=
"row well"
>
<div
class=
"col-md-12"
>
<form
class=
"form-horizontal"
role=
"form"
>
These are the classes you'd be eligible to take this semester. Select the classes you want and hit Submit to continue.
<div
id=
section-collapse"
class=
"collapse in"
>
<h4>
Majors
</h4>
<div
class=
"form-group"
>
{% for program in programs %}
<div
class=
"col-md-4"
>
</div>
{% endfor %}
</div>
</div>
<div
id=
section-collapse"
class=
"collapse in"
>
<h4>
Minors
</h4>
<div
class=
"form-group"
>
{% for minor in minors %}
<div
class=
"col-md-4"
>
</div>
{% endfor %}
</div>
</div>
<div
id=
section-collapse"
class=
"collapse in"
>
<h4>
Gen Eds
</h4>
<!-- automatically takes into account BA/BS issues-
has both- maybe popover? -->
<div
class=
"form-group"
>
{% for genEdCollection in genEdCollections %}
<div
class=
"col-md-12"
>
<!-- information about the gened then loads in an accordian -->
{% for courses in genEdCollection %}
<div
class=
"col-md-4"
>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
</div>
<!-- some javascript to count the number of credits selected-->
<div
class=
"alert alert-danger alert-dismissable"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
aria-hidden=
"true"
>
×
</button>
Selecting more than 18 credits will require approval of the Dean
</div>
<div
class=
"alert alert-info alert-dismissable"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
aria-hidden=
"true"
>
×
</button>
Full time is considered 12-15 credits.
</div>
<div
class=
"form-group"
>
<div
class=
"col-sm-offset-11 col-sm-1"
>
<button
type=
"submit"
class=
"btn btn-primary"
value=
"Submit"
>
Submit
</button>
</div>
</form>
</div>
</div>
{% endblock %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment