From d8a6010d0f4b272eadf57b89faf1817228c28d24 Mon Sep 17 00:00:00 2001 From: Brian Talbot Date: Wed, 6 Feb 2013 15:13:44 -0500 Subject: [PATCH] studio - manual policy editor: added in example messages for confirm, error, warning --- cms/static/sass/_settings.scss | 37 ++++++++++++++++++++++++++++++++++ cms/templates/settings.html | 12 +++++++++++ 2 files changed, 49 insertions(+) diff --git a/cms/static/sass/_settings.scss b/cms/static/sass/_settings.scss index 9bded45a4f..3353938450 100644 --- a/cms/static/sass/_settings.scss +++ b/cms/static/sass/_settings.scss @@ -551,6 +551,43 @@ .settings-advanced { + // messages - should be synced up with global messages in the future + .message { + display: block; + font-size: 14px; + } + + .message-status { + display: none; + @include border-top-radius(2px); + @include box-sizing(border-box); + border-bottom: 2px solid $yellow; + margin: 0 0 20px 0; + padding: 10px 20px; + font-weight: 500; + background: $paleYellow; + + .text { + display: inline-block; + } + + &.error { + border-color: shade($red, 50%); + background: tint($red, 20%); + color: $white; + } + + &.confirm { + border-color: shade($green, 50%); + background: tint($green, 20%); + color: $white; + } + + &.is-shown { + display: block; + } + } + .course-advanced-policy-list { .row { diff --git a/cms/templates/settings.html b/cms/templates/settings.html index b2ac3aa772..dd8a22d00d 100644 --- a/cms/templates/settings.html +++ b/cms/templates/settings.html @@ -735,6 +735,18 @@ from contentstore import utils

Advanced Settings

+
+ Your policy changes have been saved. +
+ +
+ There was an error saving your information. Please see below. +
+ +
+ Your changes were saved, but they may affect settings elsewhere +
+

Manual Policy Definition