# first argument is ajax channel name, defined in models as LookupChannel.
name = AutoCompleteSelectField('professor_object_by_name', help_text='',
- label="Professor's name",
+ label=mark_safe('Professor\'s name <span class="required-field">(required)</span>'),
# allows creating a new Professor on the fly
- required=False,
+ required=True,
widget=AutoCompleteSelectWidget('professor_object_by_name', attrs={'class': 'small-6 columns'}))
email = AutoCompleteSelectField('professor_object_by_email', help_text='',
label="Professor's email address",
{% if course.instructor_name %}
<span id="course-header-instructor">{{ course.instructor_name }}</span>
{% else %}
- <span id="course-header-instructor">{{ course.instructor.name }}</span>
+ <span id="course-header-instructor">
+ {% for prof in course.professor.all %}
+ {{ prof.name }}{% if not forloop.last %},{% endif %}
+ {% endfor %}
+ </span>
{% endif %}
</div>
</div>