Commit cecb3b60 by Waheed Ahmed

Removed parent course fields, grey border and headings from new run form.

ECOM-7703
parent 1508047c
......@@ -353,15 +353,14 @@ class CreateCourseRunViewTests(TestCase):
self.user = UserFactory()
self.course_run = factories.CourseRunFactory()
self.course = self.course_run.course
factories.CourseStateFactory(course=self.course)
factories.CourseUserRoleFactory.create(course=self.course, role=PublisherUserRole.CourseTeam, user=self.user)
self.organization_extension = factories.OrganizationExtensionFactory()
self.course.organizations.add(self.organization_extension.organization)
self.user.groups.add(self.organization_extension.group)
self.course_run_dict = model_to_dict(self.course_run)
self.course_run_dict.update(
{'number': self.course.number, 'team_admin': self.user.id, 'is_self_paced': True}
)
self.course_run_dict.update({'is_self_paced': True})
self._pop_valuse_from_dict(
self.course_run_dict,
[
......@@ -415,11 +414,10 @@ class CreateCourseRunViewTests(TestCase):
""" Verify that without providing required data course run cannot be
created.
"""
post_data = model_to_dict(self.course)
post_data.update(self.course_run_dict)
post_data = self.course_run_dict
post_data.update(factory.build(dict, FACTORY_CLASS=factories.SeatFactory))
self._pop_valuse_from_dict(
post_data, ['id', 'upgrade_deadline', 'image', 'team_admin', 'start']
post_data, ['upgrade_deadline', 'start']
)
response = self.client.post(
......@@ -455,20 +453,14 @@ class CreateCourseRunViewTests(TestCase):
self.assertEqual(self.course.course_team_admin, self.user)
updated_course_number = '{number}.2'.format(number=self.course.number)
new_price = 450
post_data = self.course_run_dict
seat = factories.SeatFactory(course_run=self.course_run, type=Seat.HONOR, price=0)
post_data.update(**model_to_dict(seat))
post_data.update(
{
'title': self.course.title,
'number': updated_course_number,
'type': Seat.VERIFIED,
'price': new_price,
'team_admin': new_user.id,
'organization': self.organization_extension.organization.id,
'contacted_partner_manager': False
'price': new_price
}
)
self._pop_valuse_from_dict(post_data, ['id', 'course', 'course_run', 'lms_course_id'])
......@@ -495,11 +487,6 @@ class CreateCourseRunViewTests(TestCase):
self.assertEqual(new_seat.price, new_price)
self.assertNotEqual(new_seat.course_run, self.course_run)
self.course = new_seat.course_run.course
# Verify that number and team admin is updated for parent course
self.assertEqual(self.course.number, updated_course_number)
self.assertEqual(new_seat.course_run.course.course_team_admin, new_user)
# Verify that and email is sent for studio instance request to project coordinator.
self.assertEqual(len(mail.outbox), 1)
self.assertEqual([self.course.project_coordinator.email], mail.outbox[0].to)
......
......@@ -454,7 +454,6 @@ class CourseDetailView(mixins.LoginRequiredMixin, mixins.PublisherPermissionMixi
class CreateCourseRunView(mixins.LoginRequiredMixin, CreateView):
""" Create Course Run View."""
model = CourseRun
course_form = CustomCourseForm
run_form = CustomCourseRunForm
seat_form = CustomSeatForm
template_name = 'publisher/add_courserun_form.html'
......@@ -470,61 +469,23 @@ class CreateCourseRunView(mixins.LoginRequiredMixin, CreateView):
def get_context_data(self, **kwargs):
parent_course = self.get_parent_course()
organization = parent_course.organizations.first()
course_form = self.course_form(
instance=parent_course,
user=self.request.user,
organization=organization,
initial={
'organization': organization,
'team_admin': parent_course.course_team_admin,
'contacted_partner_manager': False
}
)
user_role = CourseUserRole.objects.get(course=parent_course, role=PublisherUserRole.CourseTeam)
context = {
'parent_course': parent_course,
'course_form': course_form,
'run_form': self.run_form(initial={'contacted_partner_manager': False}),
'seat_form': self.seat_form,
'is_team_admin_hidden': user_role.user and 'team_admin' not in course_form.errors
'seat_form': self.seat_form
}
return context
def post(self, request, *args, **kwargs):
user = request.user
parent_course = self.get_parent_course()
organization = parent_course.organizations.first()
course_form = self.course_form(
request.POST,
user=user,
instance=self.get_parent_course(),
organization=organization,
initial={
'organization': organization,
'team_admin': parent_course.course_team_admin,
'contacted_partner_manager': False
}
)
run_form = self.run_form(request.POST, initial={'contacted_partner_manager': False})
seat_form = self.seat_form(request.POST)
if course_form.is_valid() and run_form.is_valid() and seat_form.is_valid():
if run_form.is_valid() and seat_form.is_valid():
try:
with transaction.atomic():
course = course_form.save()
team_admin = course_form.cleaned_data['team_admin']
if parent_course.course_team_admin != team_admin:
course_admin_role = get_object_or_404(
CourseUserRole, course=parent_course, role=PublisherUserRole.CourseTeam
)
course_admin_role.user = team_admin
course_admin_role.save()
course_run = run_form.save(course=course, changed_by=user)
course_run = run_form.save(course=parent_course, changed_by=user)
seat_form.save(course_run=course_run, changed_by=user)
# Initialize workflow for Course-run.
......@@ -532,11 +493,11 @@ class CreateCourseRunView(mixins.LoginRequiredMixin, CreateView):
# pylint: disable=no-member
success_msg = _('Course run created successfully for course "{course_title}".').format(
course_title=course.title
course_title=parent_course.title
)
messages.success(request, success_msg)
emails.send_email_for_course_creation(course, course_run)
emails.send_email_for_course_creation(parent_course, course_run)
return HttpResponseRedirect(reverse(self.success_url, kwargs={'pk': course_run.id}))
except Exception as error: # pylint: disable=broad-except
# pylint: disable=no-member
......@@ -547,13 +508,10 @@ class CreateCourseRunView(mixins.LoginRequiredMixin, CreateView):
messages.error(request, _('Please fill all required fields.'))
context = self.get_context_data()
user_role = CourseUserRole.objects.get(course=parent_course, role=PublisherUserRole.CourseTeam)
context.update(
{
'course_form': course_form,
'run_form': run_form,
'seat_form': seat_form,
'is_team_admin_hidden': user_role.user and 'team_admin' not in course_form.errors
'seat_form': seat_form
}
)
......
......@@ -7,14 +7,14 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-17 13:15+0500\n"
"POT-Creation-Date: 2017-04-18 14:17+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: \n"
#: apps/api/filters.py
#, python-brace-format
......@@ -554,8 +554,7 @@ msgstr ""
msgid "Organization Name"
msgstr ""
#: apps/publisher/forms.py templates/publisher/add_courserun_form.html
#: templates/publisher/course_detail.html
#: apps/publisher/forms.py templates/publisher/course_detail.html
#: templates/publisher/course_revision_history.html
msgid "Course Title"
msgstr ""
......@@ -1007,7 +1006,6 @@ msgid "Name"
msgstr ""
#: templates/publisher/_add_instructor_popup.html
#: templates/publisher/add_courserun_form.html
msgid "required"
msgstr ""
......@@ -1194,10 +1192,6 @@ msgid ""
msgstr ""
#: templates/publisher/add_courserun_form.html
msgid "Studio instance information"
msgstr ""
#: templates/publisher/add_courserun_form.html
msgid ""
"\n"
" The information in this section is required to create a course studio instance. You must fill all required information but are welcome to come back and enter the rest of the information when you are ready to announce the course, or you can do it all at once if you are ready to do so.\n"
......@@ -1206,266 +1200,235 @@ msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "COURSE TITLE"
#: templates/publisher/course_run/edit_run_form.html
msgid "COURSE START DATE"
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Best Practices"
#: templates/publisher/course_run/edit_run_form.html
msgid "Start on a Tuesday, Wednesday, or Thursday."
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Examples"
#: templates/publisher/course_run/edit_run_form.html
msgid "Avoid major U.S. holidays."
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Maximum 70 characters. Recommended 50 or fewer characters."
#: templates/publisher/course_run/edit_run_form.html
msgid ""
"Specify a month, day, and year. If you are unsure of the exact date, specify"
" a day that is close to the estimated start date. For example, if your "
"course will start near the end of March, specify March 31."
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "An effective course title:"
msgid "PACING TYPE"
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Clearly indicates the course subject matter."
#: templates/publisher/course_run/edit_run_form.html
msgid ""
"Instructor-paced courses include individual assignments that have specific "
"due dates before the course end date."
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Follows search engine optimization (SEO) guidelines."
#: templates/publisher/course_run/edit_run_form.html
msgid ""
"Self-paced courses do not have individual assignments that have specific due"
" dates before the course end date. All assignments are due on the course end"
" date."
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Targets a global audience."
#: templates/publisher/course_run/edit_run_form.html
msgid "COURSE END DATE"
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
#: templates/publisher/course_run/edit_run_form.html
msgid ""
"If the course is part of a sequence, include both sequence and course "
"information as \\"
"Specify a month, day, and year. If you are unsure of the exact date, specify"
" a day that is close to the estimated end date. For example, if your course "
"will end near the end of March, specify March 31."
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Single Courses"
#: templates/publisher/course_run/edit_run_form.html
msgid "CERTIFICATE TYPE AND PRICE"
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "English Grammar and Essay Writing"
#: templates/publisher/course_run/edit_run_form.html
msgid ""
"If the course offers a verified or professional education certificate, "
"select the certificate type and enter the price for the certificate."
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Sequence Courses:"
msgid "Create New Course Run"
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Statistics: Inference"
#: templates/publisher/course_run/edit_run_form.html
msgid "Edit Course Run"
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Statistics: Probability"
msgstr ""
#: templates/publisher/add_courserun_form.html
msgid "Institution Course Admin"
msgstr ""
#: templates/publisher/add_courserun_form.html
msgid "Change"
#: templates/publisher/courses.html
msgid "Create New Course"
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_run/edit_run_form.html
msgid "COURSE START DATE"
#, python-format
msgid ""
"To add or edit information about this course run, make changes on this page "
"and then select %(strong_start)sUpdate Course Run%(strong_end)s. All "
"required fields must be complete before this course run can be sent for "
"review."
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_run/edit_run_form.html
msgid "Start on a Tuesday, Wednesday, or Thursday."
#, python-format
msgid ""
"%(strong_start)sNote:%(strong_end)s If you edit course information after edX"
" marketing has reviewed the course, you have to send the course to edX "
"marketing for review again."
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_run/edit_run_form.html
msgid "Avoid major U.S. holidays."
#, python-format
msgid ""
"To create a parent course, enter the following information about the course "
"and select %(strong_start)sCreate New Course%(strong_end)s."
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_run/edit_run_form.html
msgid ""
"Specify a month, day, and year. If you are unsure of the exact date, specify"
" a day that is close to the estimated start date. For example, if your "
"course will start near the end of March, specify March 31."
msgid "All of the following information is required."
msgstr ""
#: templates/publisher/add_courserun_form.html
msgid "PACING TYPE"
#: templates/publisher/add_update_course_form.html
msgid "About Page Information"
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_run/edit_run_form.html
msgid ""
"Instructor-paced courses include individual assignments that have specific "
"due dates before the course end date."
msgid "Studio Instance"
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_run/edit_run_form.html
msgid ""
"Self-paced courses do not have individual assignments that have specific due"
" dates before the course end date. All assignments are due on the course end"
" date."
#: templates/publisher/course_edit_form.html
msgid "COURSE TITLE"
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "COURSE NUMBER"
msgid "Best Practices"
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Maximum 10 characters. Characters can be letters, numbers, or periods."
msgid "Examples"
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid ""
"If a course consists of several modules, the course number can have an "
"ending such as .1x or .2x."
msgid "Maximum 70 characters. Recommended 50 or fewer characters."
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "CS002x"
msgid "An effective course title:"
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "BIO1.1x; BIO1.2x etc."
msgid "Clearly indicates the course subject matter."
msgstr ""
#: templates/publisher/add_courserun_form.html
msgid "About page information"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Follows search engine optimization (SEO) guidelines."
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_run/edit_run_form.html
msgid "COURSE END DATE"
#: templates/publisher/course_edit_form.html
msgid "Targets a global audience."
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_run/edit_run_form.html
#: templates/publisher/course_edit_form.html
msgid ""
"Specify a month, day, and year. If you are unsure of the exact date, specify"
" a day that is close to the estimated end date. For example, if your course "
"will end near the end of March, specify March 31."
"If the course is part of a sequence, include both sequence and course "
"information as \\"
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_run/edit_run_form.html
msgid "CERTIFICATE TYPE AND PRICE"
#: templates/publisher/course_edit_form.html
msgid "Single Courses"
msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_run/edit_run_form.html
msgid ""
"If the course offers a verified or professional education certificate, "
"select the certificate type and enter the price for the certificate."
msgstr ""
#: templates/publisher/add_courserun_form.html
msgid "Create New Course Run"
#: templates/publisher/course_edit_form.html
msgid "English Grammar and Essay Writing"
msgstr ""
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_run/edit_run_form.html
msgid "Edit Course Run"
#: templates/publisher/course_edit_form.html
msgid "Sequence Courses:"
msgstr ""
#: templates/publisher/add_update_course_form.html
#: templates/publisher/courses.html
msgid "Create New Course"
#: templates/publisher/course_edit_form.html
msgid "Statistics: Inference"
msgstr ""
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_run/edit_run_form.html
#, python-format
msgid ""
"To add or edit information about this course run, make changes on this page "
"and then select %(strong_start)sUpdate Course Run%(strong_end)s. All "
"required fields must be complete before this course run can be sent for "
"review."
#: templates/publisher/course_edit_form.html
msgid "Statistics: Probability"
msgstr ""
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_run/edit_run_form.html
#, python-format
msgid ""
"%(strong_start)sNote:%(strong_end)s If you edit course information after edX"
" marketing has reviewed the course, you have to send the course to edX "
"marketing for review again."
msgid "COURSE PACING"
msgstr ""
#: templates/publisher/add_update_course_form.html
#, python-format
msgid ""
"To create a parent course, enter the following information about the course "
"and select %(strong_start)sCreate New Course%(strong_end)s."
#: templates/publisher/course_edit_form.html
msgid "COURSE NUMBER"
msgstr ""
#: templates/publisher/add_update_course_form.html
msgid "All of the following information is required."
#: templates/publisher/course_edit_form.html
msgid "Maximum 10 characters. Characters can be letters, numbers, or periods."
msgstr ""
#: templates/publisher/add_update_course_form.html
msgid "About Page Information"
#: templates/publisher/course_edit_form.html
msgid ""
"If a course consists of several modules, the course number can have an "
"ending such as .1x or .2x."
msgstr ""
#: templates/publisher/add_update_course_form.html
msgid "Studio Instance"
#: templates/publisher/course_edit_form.html
msgid "CS002x"
msgstr ""
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_run/edit_run_form.html
msgid "COURSE PACING"
#: templates/publisher/course_edit_form.html
msgid "BIO1.1x; BIO1.2x etc."
msgstr ""
#: templates/publisher/add_update_course_form.html
......
......@@ -7,14 +7,14 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-17 13:15+0500\n"
"POT-Creation-Date: 2017-04-18 14:17+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: \n"
#: static/js/catalogs-change-form.js
msgid "Preview"
......
......@@ -7,14 +7,14 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-17 13:15+0500\n"
"POT-Creation-Date: 2017-04-18 14:17+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: apps/api/filters.py
......@@ -679,8 +679,7 @@ msgstr "Rémövé Ìmägé Ⱡ'σяєм ιρѕυм ∂σłσя ѕ#"
msgid "Organization Name"
msgstr "Örgänïzätïön Nämé Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмє#"
#: apps/publisher/forms.py templates/publisher/add_courserun_form.html
#: templates/publisher/course_detail.html
#: apps/publisher/forms.py templates/publisher/course_detail.html
#: templates/publisher/course_revision_history.html
msgid "Course Title"
msgstr "Çöürsé Tïtlé Ⱡ'σяєм ιρѕυм ∂σłσя ѕ#"
......@@ -1166,7 +1165,6 @@ msgid "Name"
msgstr "Nämé Ⱡ'σяєм ι#"
#: templates/publisher/_add_instructor_popup.html
#: templates/publisher/add_courserun_form.html
msgid "required"
msgstr "réqüïréd Ⱡ'σяєм ιρѕυм ∂#"
......@@ -1368,10 +1366,6 @@ msgstr ""
" Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя α∂ιριѕι¢ιηg єłιт, ѕє∂ ∂σ єιυѕмσ∂ тємρσя ιη¢ι∂ι∂υηт υт łαвσяє єт ∂σłσяє мαgηα αłιqυα. υт єηιм α∂ мιηιм νєηιαм, qυιѕ ησѕтяυ∂ єχєя¢ιтαтιση υłłαм¢σ łαвσяιѕ ηιѕι υт αłιqυιρ єχ єα ¢σммσ∂σ ¢σηѕєqυαт. ∂υιѕ αυтє ιяυяє ∂σłσя ιη яєρяєнєη∂єяιт ιη νσłυρтαтє νєłιт єѕѕє ¢ιłłυм ∂σłσяє єυ ƒυgιαт ηυłłα ρα#"
#: templates/publisher/add_courserun_form.html
msgid "Studio instance information"
msgstr "Stüdïö ïnstänçé ïnförmätïön Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє#"
#: templates/publisher/add_courserun_form.html
msgid ""
"\n"
" The information in this section is required to create a course studio instance. You must fill all required information but are welcome to come back and enter the rest of the information when you are ready to announce the course, or you can do it all at once if you are ready to do so.\n"
......@@ -1383,109 +1377,6 @@ msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "COURSE TITLE"
msgstr "ÇÖÛRSÉ TÌTLÉ Ⱡ'σяєм ιρѕυм ∂σłσя ѕ#"
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Best Practices"
msgstr "Bést Präçtïçés Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт#"
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Examples"
msgstr "Éxämplés Ⱡ'σяєм ιρѕυм ∂#"
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Maximum 70 characters. Recommended 50 or fewer characters."
msgstr ""
"Mäxïmüm 70 çhäräçtérs. Réçömméndéd 50 ör féwér çhäräçtérs. Ⱡ'σяєм ιρѕυм "
"∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя α#"
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "An effective course title:"
msgstr "Àn éfféçtïvé çöürsé tïtlé: Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕ#"
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Clearly indicates the course subject matter."
msgstr ""
"Çléärlý ïndïçätés thé çöürsé süßjéçt mättér. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, "
"¢σηѕє¢тєтυя #"
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Follows search engine optimization (SEO) guidelines."
msgstr ""
"Föllöws séärçh éngïné öptïmïzätïön (SÉÖ) güïdélïnés. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт "
"αмєт, ¢σηѕє¢тєтυя α#"
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Targets a global audience."
msgstr "Tärgéts ä glößäl äüdïénçé. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕ#"
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid ""
"If the course is part of a sequence, include both sequence and course "
"information as \\"
msgstr ""
"Ìf thé çöürsé ïs pärt öf ä séqüénçé, ïnçlüdé ßöth séqüénçé änd çöürsé "
"ïnförmätïön äs \\ Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢#"
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Single Courses"
msgstr "Sïnglé Çöürsés Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт#"
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "English Grammar and Essay Writing"
msgstr ""
"Énglïsh Grämmär änd Éssäý Wrïtïng Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тє#"
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Sequence Courses:"
msgstr "Séqüénçé Çöürsés: Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмє#"
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Statistics: Inference"
msgstr "Stätïstïçs: Ìnférénçé Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, #"
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Statistics: Probability"
msgstr "Stätïstïçs: Prößäßïlïtý Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σ#"
#: templates/publisher/add_courserun_form.html
msgid "Institution Course Admin"
msgstr "Ìnstïtütïön Çöürsé Àdmïn Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢ση#"
#: templates/publisher/add_courserun_form.html
msgid "Change"
msgstr "Çhängé Ⱡ'σяєм ιρѕυ#"
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_run/edit_run_form.html
msgid "COURSE START DATE"
msgstr "ÇÖÛRSÉ STÀRT DÀTÉ Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмє#"
......@@ -1554,46 +1445,6 @@ msgstr ""
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "COURSE NUMBER"
msgstr "ÇÖÛRSÉ NÛMBÉR Ⱡ'σяєм ιρѕυм ∂σłσя ѕι#"
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Maximum 10 characters. Characters can be letters, numbers, or periods."
msgstr ""
"Mäxïmüm 10 çhäräçtérs. Çhäräçtérs çän ßé léttérs, nümßérs, ör pérïöds. "
"Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя #"
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid ""
"If a course consists of several modules, the course number can have an "
"ending such as .1x or .2x."
msgstr ""
"Ìf ä çöürsé çönsïsts öf sévéräl mödülés, thé çöürsé nümßér çän hävé än "
"éndïng süçh äs .1x ör .2x. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, #"
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "CS002x"
msgstr "ÇS002x Ⱡ'σяєм ιρѕυ#"
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "BIO1.1x; BIO1.2x etc."
msgstr "BÌÖ1.1x; BÌÖ1.2x étç. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, #"
#: templates/publisher/add_courserun_form.html
msgid "About page information"
msgstr "Àßöüt pägé ïnförmätïön Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢#"
#: templates/publisher/add_courserun_form.html
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_run/edit_run_form.html
msgid "COURSE END DATE"
msgstr "ÇÖÛRSÉ ÉND DÀTÉ Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт α#"
......@@ -1712,11 +1563,123 @@ msgid "Studio Instance"
msgstr "Stüdïö Ìnstänçé Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт α#"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "COURSE TITLE"
msgstr "ÇÖÛRSÉ TÌTLÉ Ⱡ'σяєм ιρѕυм ∂σłσя ѕ#"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Best Practices"
msgstr "Bést Präçtïçés Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт#"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Examples"
msgstr "Éxämplés Ⱡ'σяєм ιρѕυм ∂#"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Maximum 70 characters. Recommended 50 or fewer characters."
msgstr ""
"Mäxïmüm 70 çhäräçtérs. Réçömméndéd 50 ör féwér çhäräçtérs. Ⱡ'σяєм ιρѕυм "
"∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя α#"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "An effective course title:"
msgstr "Àn éfféçtïvé çöürsé tïtlé: Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕ#"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Clearly indicates the course subject matter."
msgstr ""
"Çléärlý ïndïçätés thé çöürsé süßjéçt mättér. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, "
"¢σηѕє¢тєтυя #"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Follows search engine optimization (SEO) guidelines."
msgstr ""
"Föllöws séärçh éngïné öptïmïzätïön (SÉÖ) güïdélïnés. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт "
"αмєт, ¢σηѕє¢тєтυя α#"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Targets a global audience."
msgstr "Tärgéts ä glößäl äüdïénçé. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕ#"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid ""
"If the course is part of a sequence, include both sequence and course "
"information as \\"
msgstr ""
"Ìf thé çöürsé ïs pärt öf ä séqüénçé, ïnçlüdé ßöth séqüénçé änd çöürsé "
"ïnförmätïön äs \\ Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢#"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Single Courses"
msgstr "Sïnglé Çöürsés Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт#"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "English Grammar and Essay Writing"
msgstr ""
"Énglïsh Grämmär änd Éssäý Wrïtïng Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тє#"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Sequence Courses:"
msgstr "Séqüénçé Çöürsés: Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмє#"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Statistics: Inference"
msgstr "Stätïstïçs: Ìnférénçé Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, #"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Statistics: Probability"
msgstr "Stätïstïçs: Prößäßïlïtý Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σ#"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_run/edit_run_form.html
msgid "COURSE PACING"
msgstr "ÇÖÛRSÉ PÀÇÌNG Ⱡ'σяєм ιρѕυм ∂σłσя ѕι#"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "COURSE NUMBER"
msgstr "ÇÖÛRSÉ NÛMBÉR Ⱡ'σяєм ιρѕυм ∂σłσя ѕι#"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "Maximum 10 characters. Characters can be letters, numbers, or periods."
msgstr ""
"Mäxïmüm 10 çhäräçtérs. Çhäräçtérs çän ßé léttérs, nümßérs, ör pérïöds. "
"Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя #"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid ""
"If a course consists of several modules, the course number can have an "
"ending such as .1x or .2x."
msgstr ""
"Ìf ä çöürsé çönsïsts öf sévéräl mödülés, thé çöürsé nümßér çän hävé än "
"éndïng süçh äs .1x ör .2x. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, #"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "CS002x"
msgstr "ÇS002x Ⱡ'σяєм ιρѕυ#"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_edit_form.html
msgid "BIO1.1x; BIO1.2x etc."
msgstr "BÌÖ1.1x; BÌÖ1.2x étç. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, #"
#: templates/publisher/add_update_course_form.html
#: templates/publisher/course_run/edit_run_form.html
msgid "STUDIO INSTANCE"
msgstr "STÛDÌÖ ÌNSTÀNÇÉ Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт α#"
......
......@@ -7,14 +7,14 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-17 13:15+0500\n"
"POT-Creation-Date: 2017-04-18 14:17+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: static/js/catalogs-change-form.js
......
......@@ -23,10 +23,8 @@
{% include 'alert_messages.html' %}
<form class="form" method="post" enctype="multipart/form-data">{% csrf_token %}
<div class="layout-full layout publisher-layout">
<h2 class="layout-title">{% trans "Studio instance information" %}</h2>
<div class="card course-form">
<div class="layout-full layout">
<div class="course-form">
<div class="course-information">
<div class="copy-base">
<p>
......@@ -36,76 +34,6 @@
</p>
</div>
<fieldset class="form-group grid-container grid-manual">
<div class="field-title">{% trans "COURSE TITLE" %}</div>
<div class="row">
<div class="col col-6 help-text">
<div class="row">
<ul class="tabs">
<li class="course-tabs active" data-tab="tab-practices">
{% trans "Best Practices" %}
</li>
<li class="course-tabs" data-tab="tab-example">
{% trans "Examples" %}
</li>
</ul>
</div>
<div id="tab-practices" class="content active">
<p>{% trans "Maximum 70 characters. Recommended 50 or fewer characters." %}</p>
<p>{% trans "An effective course title:" %}</p>
<ul>
<li>{% trans "Clearly indicates the course subject matter." %}</li>
<li>{% trans "Follows search engine optimization (SEO) guidelines." %}</li>
<li>{% trans "Targets a global audience." %}</li>
</ul>
<p>{% trans "If the course is part of a sequence, include both sequence and course information as \"Sequence: Course\"." %}</p>
</div>
<div id="tab-example" class="content">
<p></p>
<strong>{% trans "Single Courses" %}</strong>
<ul>
<li>{% trans "English Grammar and Essay Writing" %}</li>
</ul>
<strong>{% trans "Sequence Courses:" %}</strong>
<ul>
<li>{% trans "Statistics: Inference" %}</li>
<li>{% trans "Statistics: Probability" %}</li>
</ul>
</div>
</div>
<div class="col col-6">
<label class="field-label ">
<label class="field-label">
{% trans "Course Title" %}
</label>
</label>
<span class="field-readonly">{{ parent_course.title }}</span>
<div class="hidden">{{ course_form.title }}</div>
<div class="hidden">{{ course_form.organization }}</div>
<div class="field-admin margin-top20">
<label class="field-label">
{% trans "Institution Course Admin" %}
{% if course_form.team_admin.field.required %}
<span class="required">* {% trans "required" %}</span>
{% endif %}
</label>
<div id="field-team-admin" {% if is_team_admin_hidden %}class="hidden"{% endif %}>
{{ course_form.team_admin }}
</div>
</div>
{% if parent_course.course_team_admin %}
<div class="field-admin-name margin-top20 {% if course_form.team_admin.errors %}hidden{% endif %}">
<span class="field-readonly">{{ parent_course.course_team_admin.full_name }}</span>
<input id="team-admin-id" type="hidden" value="{{ parent_course.course_team_admin.id }}">
<div>
<a id="change-admin" href="#">{% trans "Change" %}</a>
</div>
</div>
{% endif %}
</div>
</div>
<div class="field-title">{% trans "COURSE START DATE" %}</div>
<div class="row">
<div class="col col-6 help-text">
......@@ -138,49 +66,13 @@
<div class="checkbox-inline">{{ run_form.pacing_type }}</div>
</div>
</div>
<div class="field-title">{% trans "COURSE NUMBER" %}</div>
<div class="row">
<div class="col col-6 help-text">
<div class="row">
<ul class="tabs">
<li class="course-tabs active" data-tab="tab-practices">
{% trans "Best Practices" %}
</li>
<li class="course-tabs" data-tab="tab-example">
{% trans "Examples" %}
</li>
</ul>
</div>
<div id="tab-practices" class="content active">
<ul>
<li>{% trans "Maximum 10 characters. Characters can be letters, numbers, or periods." %}</li>
<li>{% trans "If a course consists of several modules, the course number can have an ending such as .1x or .2x." %}</li>
</ul>
</div>
<div id="tab-example" class="content">
<ul>
<li>{% trans "CS002x" %}</li>
<li>{% trans "BIO1.1x; BIO1.2x etc." %}</li>
</ul>
</div>
</div>
<div class="col col-6">
<label class="field-label ">{{ course_form.number.label_tag }} <span class="required">*</span></label>
{% if edit_mode %}{{ course_form.number.value }}{% endif %}
{{ course_form.number }}
</div>
</div>
</fieldset>
</div>
</div>
</div>
<div class="layout-full layout publisher-layout">
<h2 class="layout-title">{% trans "About page information" %}</h2>
<div class="card course-form">
<div class="layout-full layout">
<div class="course-form">
<div class="course-information">
<fieldset class="form-group grid-container grid-manual">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment