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
62514d85
Commit
62514d85
authored
Mar 06, 2013
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
studio - alerts: loosely wired advanced settings with new notification and alert messages
parent
9a7b6c7e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
4 deletions
+38
-4
cms/static/js/views/settings/advanced_view.js
+3
-3
cms/static/sass/_alerts.scss
+1
-1
cms/templates/settings_advanced.html
+34
-0
No files found.
cms/static/js/views/settings/advanced_view.js
View file @
62514d85
...
...
@@ -114,13 +114,13 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({
},
showMessage
:
function
(
type
)
{
this
.
$el
.
find
(
".message-status
"
).
removeClass
(
"is-shown"
);
$
(
".wrapper-alert
"
).
removeClass
(
"is-shown"
);
if
(
type
)
{
if
(
type
===
this
.
error_saving
)
{
this
.
$el
.
find
(
".message-status.
error"
).
addClass
(
"is-shown"
);
$
(
".wrapper-alert-
error"
).
addClass
(
"is-shown"
);
}
else
if
(
type
===
this
.
successful_changes
)
{
this
.
$el
.
find
(
".message-status.confirm
"
).
addClass
(
"is-shown"
);
$
(
".wrapper-alert-confirmation
"
).
addClass
(
"is-shown"
);
this
.
hideSaveCancelButtons
();
}
}
...
...
cms/static/sass/_alerts.scss
View file @
62514d85
...
...
@@ -234,7 +234,7 @@
bottom
:
0
;
z-index
:
1000
;
width
:
100%
;
border-
top
:
4px
solid
$black
;
border-
width
:
2px
;
padding
:
$baseline
(
$baseline
*
2
);
&
.wrapper-notification-warning
{
...
...
cms/templates/settings_advanced.html
View file @
62514d85
...
...
@@ -102,7 +102,9 @@ editor.render();
</aside>
</section>
</div>
</
%
block>
<
%
block
name=
"view_notifications"
>
<!-- notification: change has been made and a save is needed -->
<div
class=
"wrapper wrapper-notification wrapper-notification-warning"
>
<div
class=
"notification warning has-actions"
>
...
...
@@ -126,4 +128,35 @@ editor.render();
</nav>
</div>
</div>
</
%
block>
<
%
block
name=
"view_alerts"
>
<!-- alert: save confirmed with close -->
<div
class=
"wrapper wrapper-alert wrapper-alert-confirmation"
>
<div
class=
"alert confirmation"
>
<i
class=
"ss-icon ss-symbolicons-standard icon icon-confirmation"
>
✓
</i>
<div
class=
"copy"
>
<h2
class=
"title title-3"
>
Your policy changes have been saved.
</h2>
<p>
Please note that validation of your policy key and value pairs is not currently in place yet. If you are having difficulties, please review your policy pairs.
</p>
</div>
<a
href=
"#"
rel=
"view"
class=
"action action-alert-close"
>
<i
class=
"ss-icon ss-symbolicons-block icon icon-close"
>
␡
</i>
<span
class=
"label"
>
close alert
</span>
</a>
</div>
</div>
<!-- alert: error -->
<div
class=
"wrapper wrapper-alert wrapper-alert-error"
>
<div
class=
"alert error"
>
<i
class=
"ss-icon ss-symbolicons-block icon icon-error"
>
⚠
</i>
<div
class=
"copy"
>
<h2
class=
"title title-3"
>
There was an error saving your information
</h2>
<p>
Please see the error below and correct it to ensure there are no problems in rendering your course.
</p>
</div>
</div>
</div>
</
%
block>
\ No newline at end of file
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