Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx-platform
Commits
267e8c97
Commit
267e8c97
authored
Sep 08, 2014
by
Brian Talbot
Committed by
cahrens
Oct 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LMS: adds static cohort group management UI to the Instructor Dashboard
parent
f753a09f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
236 additions
and
18 deletions
+236
-18
lms/static/sass/course/instructor/_instructor_2.scss
+224
-10
lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html
+2
-2
lms/templates/instructor/instructor_dashboard_2/membership.html
+10
-6
No files found.
lms/static/sass/course/instructor/_instructor_2.scss
View file @
267e8c97
...
@@ -34,7 +34,6 @@
...
@@ -34,7 +34,6 @@
}
}
// system feedback - messages
// system feedback - messages
.wrapper-msg
{
.wrapper-msg
{
margin-bottom
:
(
$baseline
*
1
.5
);
margin-bottom
:
(
$baseline
*
1
.5
);
}
}
...
@@ -121,6 +120,8 @@
...
@@ -121,6 +120,8 @@
}
}
}
}
// instructor dashboard 2
// ====================
section
.instructor-dashboard-content-2
{
section
.instructor-dashboard-content-2
{
@extend
.content
;
@extend
.content
;
// position: relative;
// position: relative;
...
@@ -210,15 +211,82 @@ section.instructor-dashboard-content-2 {
...
@@ -210,15 +211,82 @@ section.instructor-dashboard-content-2 {
}
}
}
}
}
}
}
// elements - general
// --------------------
.idash-section
{
// messages
.message
{
margin-bottom
:
$baseline
;
display
:
none
;
border-radius
:
(
$baseline
/
$baseline
);
padding
:
(
$baseline
*
0
.75
)
$baseline
;
&
.is-shown
{
display
:
block
;
}
}
.message-title
{
@extend
%t-title6
;
@extend
%t-weight4
;
margin-bottom
:
(
$baseline
/
4
);
}
.message-copy
{
@extend
%t-copy-sub1
;
}
.message-actions
{
margin-top
:
(
$baseline
/
2
);
.action-primary
{
@include
idashbutton
(
$gray-l4
);
}
}
// type - error
.message-error
{
border-top
:
2px
solid
$error-color
;
background
:
tint
(
$error-color
,
95%
);
.message-title
{
color
:
$error-color
;
}
.message-copy
{
color
:
$base-font-color
;
}
}
// type - confirmation
.message-confirmation
{
border-top
:
2px
solid
$confirm-color
;
background
:
tint
(
$confirm-color
,
95%
);
.message-title
{
color
:
$confirm-color
;
}
.message-copy
{
color
:
$base-font-color
;
}
}
// type - error
.message-warning
{
border-top
:
2px
solid
$warning-color
;
background
:
tint
(
$warning-color
,
95%
);
}
section
.idash-section
{
// grandfathered
display
:
none
;
display
:
none
;
margin-top
:
(
$baseline
*
1
.5
);
margin-top
:
(
$baseline
*
1
.5
);
// background-color: #0f0;
&
.active-section
{
&
.active-section
{
display
:
block
;
display
:
block
;
// background-color: #ff0;
}
}
.basic-data
{
.basic-data
{
...
@@ -231,14 +299,35 @@ section.instructor-dashboard-content-2 {
...
@@ -231,14 +299,35 @@ section.instructor-dashboard-content-2 {
.no-pending-tasks-message
{
.no-pending-tasks-message
{
display
:
none
;
display
:
none
;
p
{
p
{
color
:
#a2a2a2
;
color
:
#a2a2a2
;
font-style
:
italic
;
font-style
:
italic
;
}
}
}
}
.section-title
{
@include
clearfix
();
margin-bottom
:
(
$baseline
/
2
);
.value
{
float
:
left
;
}
.description
{
@extend
%t-title7
;
float
:
right
;
text-transform
:
none
;
letter-spacing
:
0
;
text-align
:
right
;
color
:
$gray
;
}
}
}
}
}
// view - course info
// --------------------
.instructor-dashboard-wrapper-2
section
.idash-section
#course_info
{
.instructor-dashboard-wrapper-2
section
.idash-section
#course_info
{
.course-errors-wrapper
{
.course-errors-wrapper
{
margin-top
:
2em
;
margin-top
:
2em
;
...
@@ -301,6 +390,8 @@ section.instructor-dashboard-content-2 {
...
@@ -301,6 +390,8 @@ section.instructor-dashboard-content-2 {
}
}
}
}
// view - bulk email
// --------------------
.instructor-dashboard-wrapper-2
section
.idash-section
#send_email
{
.instructor-dashboard-wrapper-2
section
.idash-section
#send_email
{
// form fields
// form fields
.list-fields
{
.list-fields
{
...
@@ -325,18 +416,138 @@ section.instructor-dashboard-content-2 {
...
@@ -325,18 +416,138 @@ section.instructor-dashboard-content-2 {
}
}
}
}
// view - membership
// --------------------
.instructor-dashboard-wrapper-2
section
.idash-section
#membership
{
.instructor-dashboard-wrapper-2
section
.idash-section
#membership
{
$half_width
:
$baseline
*
20
;
$half_width
:
$baseline
*
20
;
.membership-section
{
.membership-section
{
margin-bottom
:
$baseline
;
margin-bottom
:
(
$baseline
*
1
.5
)
;
&
:last-child
{
&
:last-child
{
margin-bottom
:
0
;
// last child!
margin-bottom
:
0
;
}
}
}
}
// cohort management
.cohort-management
{
}
.cohort-management-nav
{
margin-bottom
:
$baseline
;
.cohort-select
{
width
:
100%
;
}
}
.cohort-management-group
{
border
:
1px
solid
$gray-l5
;
}
.cohort-management-group-header
{
border-bottom
:
(
$baseline
/
10
)
solid
$gray-l4
;
background
:
$gray-l5
;
padding
:
$baseline
;
.group-header-title
{
margin-bottom
:
(
$baseline
/
2
);
border-bottom
:
1px
solid
$gray-l4
;
padding-bottom
:
(
$baseline
/
2
);
.title-value
,
.group-count
{
display
:
inline-block
;
vertical-align
:
middle
;
}
.title-value
{
@extend
%t-title5
;
@extend
%t-weight4
;
margin-right
:
(
$baseline
/
4
);
}
.group-count
{
@extend
%t-title7
;
@extend
%t-weight4
;
}
}
}
.cohort-management-group-setup
{
@include
clearfix
();
@extend
%t-copy-sub1
;
color
:
$gray-l2
;
.setup-value
{
float
:
left
;
}
.setup-actions
{
float
:
right
;
}
}
.cohort-management-group-add
{
padding
:
$baseline
;
.message-title
{
@extend
%t-title7
;
}
.form-title
{
@extend
%t-title6
;
@extend
%t-weight4
;
margin-bottom
:
(
$baseline
/
4
);
}
.form-introduction
{
@extend
%t-copy-sub1
;
margin-bottom
:
$baseline
;
p
{
color
:
$gray-l1
;
}
}
.form-fields
{
margin-bottom
:
$baseline
;
.label
,
.input
{
display
:
block
;
}
.label
{
@extend
%t-title7
;
@extend
%t-weight4
;
margin-bottom
:
(
$baseline
/
2
);
}
}
.cohort-management-group-add-students
{
min-height
:
(
$baseline
*
10
);
width
:
100%
;
padding
:
(
$baseline
/
2
)
(
$baseline
*
0
.75
);
}
.form-submit
{
@include
idashbutton
(
$blue
);
margin-bottom
:
0
;
}
}
.cohort-management-supplemental
{
@extend
%t-copy-sub1
;
margin-top
:
(
$baseline
/
2
);
.icon
{
margin-right
:
(
$baseline
/
4
);
color
:
$gray-l1
;
}
}
.batch-enrollment
,
.batch-beta-testers
{
.batch-enrollment
,
.batch-beta-testers
{
textarea
{
textarea
{
margin-top
:
0
.2em
;
margin-top
:
0
.2em
;
...
@@ -531,7 +742,8 @@ section.instructor-dashboard-content-2 {
...
@@ -531,7 +742,8 @@ section.instructor-dashboard-content-2 {
}
}
}
}
// view - student admin
// --------------------
.instructor-dashboard-wrapper-2
section
.idash-section
#student_admin
>
{
.instructor-dashboard-wrapper-2
section
.idash-section
#student_admin
>
{
.action-type-container
{
.action-type-container
{
margin-bottom
:
$baseline
*
2
;
margin-bottom
:
$baseline
*
2
;
...
@@ -566,7 +778,8 @@ section.instructor-dashboard-content-2 {
...
@@ -566,7 +778,8 @@ section.instructor-dashboard-content-2 {
}
}
}
}
// view - data download
// --------------------
.instructor-dashboard-wrapper-2
section
.idash-section
#data_download
{
.instructor-dashboard-wrapper-2
section
.idash-section
#data_download
{
input
{
input
{
// display: block;
// display: block;
...
@@ -596,7 +809,8 @@ section.instructor-dashboard-content-2 {
...
@@ -596,7 +809,8 @@ section.instructor-dashboard-content-2 {
}
}
}
}
// view - metrics
// --------------------
.instructor-dashboard-wrapper-2
section
.idash-section
#metrics
{
.instructor-dashboard-wrapper-2
section
.idash-section
#metrics
{
.metrics-container
,
.metrics-header-container
{
.metrics-container
,
.metrics-header-container
{
...
...
lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html
View file @
267e8c97
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
<script
language=
"JavaScript"
type=
"text/javascript"
></script>
<script
language=
"JavaScript"
type=
"text/javascript"
></script>
<section
class=
"container"
>
<section
class=
"container"
>
<div
class=
"instructor-dashboard-wrapper-2"
>
<div
class=
"instructor-dashboard-wrapper-2"
>
<section
class=
"instructor-dashboard-content-2"
id=
"instructor-dashboard-content"
>
<section
class=
"instructor-dashboard-content-2"
id=
"instructor-dashboard-content"
>
<div
class=
"wrap-instructor-info studio-view"
>
<div
class=
"wrap-instructor-info studio-view"
>
%if studio_url:
%if studio_url:
...
@@ -114,5 +114,5 @@
...
@@ -114,5 +114,5 @@
</section>
</section>
% endfor
% endfor
</section>
</section>
</div>
</div>
</section>
</section>
lms/templates/instructor/instructor_dashboard_2/membership.html
View file @
267e8c97
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<
/div
>
<
/div
>
</script>
</script>
<
section
class=
"batch-enrollment membership-section"
>
<
div
class=
"batch-enrollment membership-section"
>
<h2>
${_("Batch Enrollment")}
</h2>
<h2>
${_("Batch Enrollment")}
</h2>
<p>
<p>
<label
for=
"student-ids"
>
<label
for=
"student-ids"
>
...
@@ -66,10 +66,12 @@
...
@@ -66,10 +66,12 @@
</div>
</div>
<div
class=
"request-response"
></div>
<div
class=
"request-response"
></div>
<div
class=
"request-response-error"
></div>
<div
class=
"request-response-error"
></div>
</section>
</div>
<hr
class=
"divider"
/>
%if section_data['access']['instructor']:
%if section_data['access']['instructor']:
<
section
class=
"batch-beta-testers membership-section"
>
<
div
class=
"batch-beta-testers membership-section"
>
<h2>
${_("Batch Beta Tester Addition")}
</h2>
<h2>
${_("Batch Beta Tester Addition")}
</h2>
<p>
<p>
<label
for=
"student-ids-for-beta"
>
<label
for=
"student-ids-for-beta"
>
...
@@ -109,10 +111,12 @@
...
@@ -109,10 +111,12 @@
<div
class=
"request-response"
></div>
<div
class=
"request-response"
></div>
<div
class=
"request-response-error"
></div>
<div
class=
"request-response-error"
></div>
</section>
</div>
<hr
class=
"divider"
/>
%endif
%endif
<
section
class=
"member-lists-management membership-section"
>
<
div
class=
"member-lists-management membership-section"
>
## Translators: an "Administration List" is a list, such as Course Staff, that users can be added to.
## Translators: an "Administration List" is a list, such as Course Staff, that users can be added to.
<h2>
${_("Administration List Management")}
</h2>
<h2>
${_("Administration List Management")}
</h2>
...
@@ -213,7 +217,7 @@
...
@@ -213,7 +217,7 @@
></div>
></div>
%endif
%endif
</
section
>
</
div
>
%if course.is_cohorted:
%if course.is_cohorted:
<hr
class=
"divider"
/>
<hr
class=
"divider"
/>
...
...
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