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
887f058f
Commit
887f058f
authored
Apr 10, 2017
by
Waheed Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed video link getting blanked.
ECOM-7663
parent
d572f8b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
+7
-1
course_discovery/apps/publisher/forms.py
+4
-0
course_discovery/templates/publisher/course_edit_form.html
+3
-1
No files found.
course_discovery/apps/publisher/forms.py
View file @
887f058f
...
@@ -16,6 +16,7 @@ from course_discovery.apps.ietf_language_tags.models import LanguageTag
...
@@ -16,6 +16,7 @@ from course_discovery.apps.ietf_language_tags.models import LanguageTag
from
course_discovery.apps.publisher.mixins
import
LanguageModelSelect2Multiple
,
check_roles_access
from
course_discovery.apps.publisher.mixins
import
LanguageModelSelect2Multiple
,
check_roles_access
from
course_discovery.apps.publisher.models
import
(
Course
,
CourseRun
,
CourseUserRole
,
OrganizationExtension
,
from
course_discovery.apps.publisher.models
import
(
Course
,
CourseRun
,
CourseUserRole
,
OrganizationExtension
,
OrganizationUserRole
,
PublisherUser
,
Seat
,
User
)
OrganizationUserRole
,
PublisherUser
,
Seat
,
User
)
from
course_discovery.apps.publisher.utils
import
is_internal_user
class
UserModelChoiceField
(
forms
.
ModelChoiceField
):
class
UserModelChoiceField
(
forms
.
ModelChoiceField
):
...
@@ -186,6 +187,9 @@ class CustomCourseForm(CourseForm):
...
@@ -186,6 +187,9 @@ class CustomCourseForm(CourseForm):
super
(
CustomCourseForm
,
self
)
.
__init__
(
*
args
,
**
kwargs
)
super
(
CustomCourseForm
,
self
)
.
__init__
(
*
args
,
**
kwargs
)
if
user
and
not
is_internal_user
(
user
):
self
.
fields
[
'video_link'
]
.
widget
=
forms
.
HiddenInput
()
class
CourseRunForm
(
BaseCourseForm
):
class
CourseRunForm
(
BaseCourseForm
):
""" Course Run Form. """
""" Course Run Form. """
...
...
course_discovery/templates/publisher/course_edit_form.html
View file @
887f058f
...
@@ -8,9 +8,9 @@
...
@@ -8,9 +8,9 @@
{% endblock title %}
{% endblock title %}
{% block stylesheets %}
{% block stylesheets %}
{{ block.super }}
<link
rel=
"stylesheet"
href=
"{% static 'bower_components/tinymce/skins/lightgray/content.min.css' %}"
type=
"text/x-scss"
>
<link
rel=
"stylesheet"
href=
"{% static 'bower_components/tinymce/skins/lightgray/content.min.css' %}"
type=
"text/x-scss"
>
<link
rel=
"stylesheet"
href=
"{% static 'bower_components/tinymce/skins/lightgray/skin.min.css' %}"
type=
"text/x-scss"
>
<link
rel=
"stylesheet"
href=
"{% static 'bower_components/tinymce/skins/lightgray/skin.min.css' %}"
type=
"text/x-scss"
>
{{ block.super }}
{% endblock %}
{% endblock %}
{% block page_content %}
{% block page_content %}
...
@@ -498,6 +498,8 @@
...
@@ -498,6 +498,8 @@
{{ form.video_link }}
{{ form.video_link }}
</div>
</div>
</div>
</div>
{% else %}
{{ form.video_link }}
{% endif %}
{% endif %}
<div
class=
"field-title"
>
{{ form.learner_testimonial.label|upper }}
</div>
<div
class=
"field-title"
>
{{ form.learner_testimonial.label|upper }}
</div>
...
...
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