Commit e08954b2 by tasawernawaz Committed by Tasawer Nawaz

Add instructor module on course run edit page ECOM-6950

parent b19ee392
......@@ -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,
}
......
......@@ -45,6 +45,7 @@
#add-new-instructor {
@include padding(20px, 10px, 20px, 10px);
@include float(left);
background: white;
border: 2px dashed gray;
}
......
......@@ -867,7 +867,7 @@ select {
@include float(left);
font-size: smaller;
width: 125px;
padding-bottom: 15px;
height: 130px;
img {
width: 80px;
height: 80px;
......
......@@ -361,10 +361,10 @@
<div class="col col-6 instructor-select">
<label class="field-label ">{{ run_form.staff.label_tag }}</label>
{{ run_form.staff }}
{% if publisher_add_instructor_feature %}
<button type="button" id="add-new-instructor">{% trans "Add New" %}<br>{% trans "Instructor" %}</button>
{% endif %}
<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>
</div>
</div>
......
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