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
Nathan R Lapierre
advisor
Commits
5a3c85e6
Commit
5a3c85e6
authored
Feb 02, 2014
by
Daniel W Bond
Browse files
new now nominally has forms
parent
97459123
Changes
2
Hide whitespace changes
Inline
Side-by-side
advisor/trajectories/forms.py
View file @
5a3c85e6
...
...
@@ -43,8 +43,8 @@ class NewTrajectoryForm( ModelForm ):
'isCompleted'
,
'programType'
,
'degreeType'
,
)
labels
=
{
'name'
:
'
Select your Majors
'
#
'name' : '
Select your
Minor'
'name'
:
'
Program(s)
'
'name'
:
'Minor
(s)
'
}
widgets
=
{
# I know you can't actually have it assigned twice...
...
...
advisor/trajectories/templates/new.html
View file @
5a3c85e6
...
...
@@ -25,10 +25,14 @@ start visualizing your way to completing your degree.</h4></p>
<fieldset>
<legend>
Select your program(s).
</legend>
<div
class=
"form-group"
>
<label
for
"
Program
"
class=
"col-sm-2"
>
Program
</label>
<div
class=
"form-group{% if new_trajectory_form.name.errors %} has-error {% endif %}"
>
<label
for
"{{
new_trajectory_form.name.id_for_label
}}"
class=
"col-sm-2"
>
{{new_trajectory_form.name.id_for_label}}
</label>
<div
class=
"col-sm-5"
>
<input
type=
"text"
class=
"form-control"
id=
"Program"
placeholder=
"Government and International Politics"
>
{{new_trajectory_form.name}}
{% for error in new_trajectory_form.name.errors %}
<span
class=
"help-block"
>
{{ error }}
</span>
{% endfor %}
<!-- autocompletion would be awesome -->
</div>
<div
class=
"col-sm-1"
>
...
...
@@ -36,17 +40,26 @@ start visualizing your way to completing your degree.</h4></p>
</div>
</div>
<!-- Javascript for adding an additional field -->
<legend>
Select your minor(s).
</legend>
<div
class=
"form-group"
>
<label
for
"
Minor
"
class=
"col-sm-2"
>
Minor
</label>
<div
class=
"form-group{% if new_trajectory_form.name.errors %} has-error {% endif %}"
>
<label
for
"{{
new_trajectory_form.name.id_for_label
}}"
class=
"col-sm-2"
>
{{new_trajectory_form.name.id_for_label}}
</label>
<div
class=
"col-sm-5"
>
<input
type=
"text"
class=
"form-control"
id=
"Minors"
placeholder=
"Software Engineering"
>
{{new_trajectory_form.name}}
{% for error in new_trajectory_form.name.errors %}
<span
class=
"help-block"
>
{{ error }}
</span>
{% endfor %}
<!-- autocompletion would be awesome -->
</div>
<div
class=
"col-sm-1"
>
<div
class=
"col-sm-1"
>
<button
type=
"button"
class=
"btn btn-primary"
>
+
</button>
</div>
</div>
<!-- Javascript for adding an additional field -->
<div
class=
"form-group"
>
<div
class=
"col-sm-offset-11 col-sm-1"
>
<button
type=
"submit"
class=
"btn btn-primary"
value=
"Submit"
>
Submit
</button>
...
...
@@ -57,5 +70,5 @@ start visualizing your way to completing your degree.</h4></p>
</form>
</div>
</div>
<p>
*Not intended as a replacement for formal academic advising through your department.
</p>
<p>
<small>
*Not intended as a replacement for formal academic advising through your department.
</
small></
p>
{% 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