Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
course-discovery
Commits
526bda7e
Commit
526bda7e
authored
May 22, 2017
by
Waheed Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added success msg for course on new run page.
ECOM-7814
parent
336f2768
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
1 deletions
+29
-1
course_discovery/apps/publisher/views.py
+9
-1
course_discovery/conf/locale/en/LC_MESSAGES/django.po
+7
-0
course_discovery/conf/locale/eo/LC_MESSAGES/django.po
+9
-0
course_discovery/static/sass/publisher/publisher.scss
+4
-0
No files found.
course_discovery/apps/publisher/views.py
View file @
526bda7e
...
@@ -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
,
_
(
...
...
course_discovery/conf/locale/en/LC_MESSAGES/django.po
View file @
526bda7e
...
@@ -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 "
...
...
course_discovery/conf/locale/eo/LC_MESSAGES/django.po
View file @
526bda7e
...
@@ -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 "
...
...
course_discovery/static/sass/publisher/publisher.scss
View file @
526bda7e
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment