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
e08954b2
Commit
e08954b2
authored
Jan 27, 2017
by
tasawernawaz
Committed by
Tasawer Nawaz
Jan 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add instructor module on course run edit page ECOM-6950
parent
b19ee392
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
course_discovery/apps/publisher/views.py
+1
-0
course_discovery/static/sass/publisher/course_form.scss
+1
-0
course_discovery/static/sass/publisher/publisher.scss
+1
-1
course_discovery/templates/publisher/add_update_course_form.html
+1
-1
No files found.
course_discovery/apps/publisher/views.py
View file @
e08954b2
...
...
@@ -458,6 +458,7 @@ class CourseRunEditView(mixins.LoginRequiredMixin, mixins.PublisherPermissionMix
'organization_name'
:
organization
.
name
,
'organization'
:
organization
,
'publisher_hide_features_for_pilot'
:
waffle
.
switch_is_active
(
'publisher_hide_features_for_pilot'
),
'publisher_add_instructor_feature'
:
waffle
.
switch_is_active
(
'publisher_add_instructor_feature'
),
'is_internal_user'
:
mixins
.
check_roles_access
(
self
.
request
.
user
),
'edit_mode'
:
True
,
}
...
...
course_discovery/static/sass/publisher/course_form.scss
View file @
e08954b2
...
...
@@ -45,6 +45,7 @@
#add-new-instructor
{
@include
padding
(
20px
,
10px
,
20px
,
10px
);
@include
float
(
left
);
background
:
white
;
border
:
2px
dashed
gray
;
}
...
...
course_discovery/static/sass/publisher/publisher.scss
View file @
e08954b2
...
...
@@ -867,7 +867,7 @@ select {
@include
float
(
left
);
font-size
:
smaller
;
width
:
125px
;
padding-bottom
:
15
px
;
height
:
130
px
;
img
{
width
:
80px
;
height
:
80px
;
...
...
course_discovery/templates/publisher/add_update_course_form.html
View file @
e08954b2
...
...
@@ -361,10 +361,10 @@
<div
class=
"col col-6 instructor-select"
>
<label
class=
"field-label "
>
{{ run_form.staff.label_tag }}
</label>
{{ run_form.staff }}
<div
class=
"selected-instructor"
>
{% if publisher_add_instructor_feature %}
<button
type=
"button"
id=
"add-new-instructor"
>
{% trans "Add New" %}
<br>
{% trans "Instructor" %}
</button>
{% endif %}
<div
class=
"selected-instructor"
>
</div>
</div>
</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