Commit 526bda7e by Waheed Ahmed

Added success msg for course on new run page.

ECOM-7814
parent 336f2768
...@@ -270,7 +270,15 @@ class CreateCourseView(mixins.LoginRequiredMixin, mixins.PublisherUserRequiredMi ...@@ -270,7 +270,15 @@ class CreateCourseView(mixins.LoginRequiredMixin, mixins.PublisherUserRequiredMi
# Initialize workflow for Course. # Initialize workflow for Course.
CourseState.objects.create(course=course, owner_role=PublisherUserRole.CourseTeam) CourseState.objects.create(course=course, owner_role=PublisherUserRole.CourseTeam)
if not add_new_run: if add_new_run:
# pylint: disable=no-member
messages.success(
request, _(
"{course_title} has been created successfully. Enter information on this page to "
"create a course run for this course."
).format(course_title=course.title)
)
else:
# pylint: disable=no-member # pylint: disable=no-member
messages.success( messages.success(
request, _( request, _(
......
...@@ -873,6 +873,13 @@ msgid "project coordinator" ...@@ -873,6 +873,13 @@ msgid "project coordinator"
msgstr "" msgstr ""
#: apps/publisher/views.py #: apps/publisher/views.py
#, python-brace-format
msgid ""
"{course_title} has been created successfully. Enter information on this page"
" to create a course run for this course."
msgstr ""
#: apps/publisher/views.py
msgid "" msgid ""
"You have successfully created a course. You can edit the course information " "You have successfully created a course. You can edit the course information "
"or enter information for the course About page at any time. An edX project " "or enter information for the course About page at any time. An edX project "
......
...@@ -1021,6 +1021,15 @@ msgid "project coordinator" ...@@ -1021,6 +1021,15 @@ msgid "project coordinator"
msgstr "pröjéçt çöördïnätör Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт,#" msgstr "pröjéçt çöördïnätör Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт,#"
#: apps/publisher/views.py #: apps/publisher/views.py
#, python-brace-format
msgid ""
"{course_title} has been created successfully. Enter information on this page"
" to create a course run for this course."
msgstr ""
"{course_title} häs ßéén çréätéd süççéssfüllý. Éntér ïnförmätïön ön thïs pägé"
" tö çréäté ä çöürsé rün för thïs çöürsé. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт #"
#: apps/publisher/views.py
msgid "" msgid ""
"You have successfully created a course. You can edit the course information " "You have successfully created a course. You can edit the course information "
"or enter information for the course About page at any time. An edX project " "or enter information for the course About page at any time. An edX project "
......
...@@ -128,6 +128,10 @@ ...@@ -128,6 +128,10 @@
.alert-messages .alert { .alert-messages .alert {
margin-bottom: 20px; margin-bottom: 20px;
.alert-message-with-action {
width: 100%;
}
} }
.publisher-layout { .publisher-layout {
......
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