From 2b6bfc4f2bef064b0cf9a2f81fe53ce98f998f7c Mon Sep 17 00:00:00 2001
From: Brian Talbot
Date: Mon, 3 Dec 2012 10:47:56 -0500
Subject: [PATCH] grading - added in gradable by type menu to sub section
editing
---
cms/static/sass/_subsection.scss | 107 +++++++++++++++++++++++++++++
cms/templates/edit_subsection.html | 58 ++++++++++++++++
2 files changed, 165 insertions(+)
diff --git a/cms/static/sass/_subsection.scss b/cms/static/sass/_subsection.scss
index 0d7d518ffd..25273c1ad9 100644
--- a/cms/static/sass/_subsection.scss
+++ b/cms/static/sass/_subsection.scss
@@ -180,3 +180,110 @@
}
}
}
+
+.gradable {
+
+ label {
+ display: inline-block;
+ vertical-align: top;
+ }
+
+ .gradable-status {
+ position: relative;
+ top: -4px;
+ display: inline-block;
+ margin-left: 10px;
+ width: 65%;
+
+ .status-label {
+ margin: 0;
+ padding: 0;
+ background: transparent;
+ color: $darkGrey;
+ border: none;
+ font-size: 12px;
+ font-weight: bold;
+ line-height: 16px;
+ }
+
+ .menu-toggle {
+ z-index: 100;
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 20px;
+ background: transparent;
+
+ &:hover, &.is-active {
+ color: $blue;
+ }
+ }
+
+ .menu {
+ z-index: 10;
+ position: absolute;
+ top: -12px;
+ left: -7px;
+ width: 100%;
+ margin: 0;
+ padding: 8px 12px;
+ opacity: 0.0;
+ background: $white;
+ border: 1px solid $mediumGrey;
+ font-size: 12px;
+ @include border-radius(4px);
+ @include box-shadow(0 1px 2px rgba(0, 0, 0, .2));
+ @include transition(opacity .15s);
+
+
+ li {
+ margin-bottom: 3px;
+ padding-bottom: 3px;
+ border-bottom: 1px solid $lightGrey;
+
+ &:last-child {
+ margin-bottom: 0;
+ padding-bottom: 0;
+ border: none;
+
+ a {
+ color: $darkGrey;
+ }
+ }
+ }
+
+ a {
+
+ &.is-selected {
+ font-weight: bold;
+ }
+ }
+ }
+
+ // dropdown state
+ &.is-active {
+
+ .menu {
+ opacity: 1.0;
+ }
+
+ .menu-toggle {
+ z-index: 10000;
+ }
+ }
+
+ // set state
+ &.is-set {
+
+ .menu-toggle {
+ color: $blue;
+ }
+
+ .status-label {
+ display: block;
+ color: $blue;
+ }
+ }
+ }
+ }
\ No newline at end of file
diff --git a/cms/templates/edit_subsection.html b/cms/templates/edit_subsection.html
index e1dd91c162..243df7e57c 100644
--- a/cms/templates/edit_subsection.html
+++ b/cms/templates/edit_subsection.html
@@ -84,6 +84,28 @@
Sync to ${parent_item.display_name}.
% endif
+
+
+
+
+
+
Not Graded
+
+
+
+
+
+
+