self.assert_course_creation_failed('There is already a course defined with this name.')
self.assert_course_creation_failed('There is already a course defined with the same organization, course number, and course run. Please change either organization or course number to be unique.')
self.course_data['display_name']='Robot Super Course Two'
self.course_data['run']='2013_Summer'
self.assert_course_creation_failed('There is already a course defined with the same organization and course number.')
self.assert_course_creation_failed('There is already a course defined with the same organization and course number. Please change at least one field to be unique.')
returnJsonResponse({'ErrMsg':'There is already a course defined with this name.'})
returnJsonResponse(
{
'ErrMsg':_('There is already a course defined with the same organization, course number, and course run. Please change either organization or course number to be unique.'),
'OrgErrMsg':_('Please change either the organization or course number so that it is unique.'),
'CourseErrMsg':_('Please change either the organization or course number so that it is unique.'),
<inputclass="new-course-name"id="new-course-name"type="text"name="new-course-name"aria-required="true"placeholder="${_('e.g. Introduction to Computer Science')}"/>
<spanclass="tip tip-stacked">${_("The public display name for your course.")}</span>
</li>
<liclass="field field-inline text required"id="field-organization">
<inputclass="new-course-org"id="new-course-org"type="text"name="new-course-org"aria-required="true"placeholder="${_('e.g. MITX or IMF')}"/>
<spanclass="tip tip-stacked">${_("The name of the organization sponsoring the course")} - <strong>${_("Note: No spaces or special characters are allowed. This cannot be changed.")}</strong></span>
</li>
<liclass="field field-inline text required"id="field-course-number">
<spanclass="tip tip-stacked">${_("The unique number that identifies your course within your organization")} - <strong>${_("Note: No spaces or special characters are allowed. This cannot be changed.")}</strong></span>
</li>
<liclass="field field-inline text required"id="field-course-run">
<spanclass="tip tip-stacked">${_("The term in which your course will run")} - <strong>${_("Note: No spaces or special characters are allowed. This cannot be changed.")}</strong></span>