from django.forms import CharField
from django.forms import ValidationError
-from ajax_select.fields import AutoCompleteField
+from ajax_select.fields import AutoCompleteField, AutoCompleteSelectWidget
from ajax_select.fields import AutoCompleteSelectField
from ajax_select_cascade.fields import AutoCompleteDependentSelectField
name = AutoCompleteSelectField('professor_object_by_name', help_text='',
label="Professor's name",
# allows creating a new Professor on the fly
- required=False)
+ required=False,
+ widget=AutoCompleteSelectWidget('professor_object_by_name', attrs={'class': 'small-6 columns'}))
email = AutoCompleteSelectField('professor_object_by_email', help_text='',
label="Professor's email address",
# allows creating a new Professor on the fly
# https://github.com/sunlightlabs/django-honeypot
HONEYPOT_FIELD_NAME = "instruction_url" # see that "_url"? bots gotta want that.
HONEYPOT_VALUE = ""
-HONEYPOT_LABEL = "Do not fill in this field:"
+HONEYPOT_LABEL = "Do not fill in this field (we need to make sure you're not a robot)"
HONEYPOT_ERROR = "You did not follow directions."
########## END HONEYPOT CONFIGURATION
<script src="{{ STATIC_URL }}js/course.js"></script>
<script src="{{ STATIC_URL }}js/add-course.js"></script>
{{ course_form.media }}
+<link href="{{ STATIC_URL }}css/add_course.css" type="text/css" media="all" rel="stylesheet" />
<section id="add-course-form">
<form method="POST" action="{% url 'home' %}">