531 lines
20 KiB
HTML
531 lines
20 KiB
HTML
<%inherit file="base.html" />
|
||
<%block name="title">Studio Alerts</%block>
|
||
<%block name="bodyclass">is-signedin course uxdesign alerts</%block>
|
||
|
||
<%block name="jsextra">
|
||
<script type="text/javascript">
|
||
// notifications - demo
|
||
$(document).ready(function() {
|
||
|
||
$('.hide-notification').click(function(e) {
|
||
(e).preventDefault();
|
||
$('.wrapper-notification').removeClass('is-hiding is-shown');
|
||
$(this.hash).addClass('is-hiding');
|
||
});
|
||
|
||
$('.show-notification').click(function(e) {
|
||
(e).preventDefault();
|
||
$('.wrapper-notification').removeClass('is-shown is-hiding');
|
||
$(this.hash).addClass('is-shown');
|
||
});
|
||
|
||
$('.show-notification-fleeting').click(function(e) {
|
||
(e).preventDefault();
|
||
$('.wrapper-notification').removeClass('is-fleeting');
|
||
$(this.hash).addClass('is-fleeting');
|
||
});
|
||
|
||
$('.hide-alert').click(function(e) {
|
||
(e).preventDefault();
|
||
$('.wrapper-alert').removeClass('is-hiding');
|
||
$(this.hash).addClass('is-hiding');
|
||
});
|
||
|
||
$('.show-alert').click(function(e) {
|
||
(e).preventDefault();
|
||
$('.wrapper-alert').removeClass('is-shown');
|
||
$(this.hash).addClass('is-shown');
|
||
});
|
||
|
||
$('.hide-prompt').click(function(e){
|
||
(e).preventDefault();
|
||
$body.removeClass('prompt-is-shown');
|
||
});
|
||
|
||
$('.show-prompt').click(function(e) {
|
||
(e).preventDefault();
|
||
$body.toggleClass('prompt-is-shown');
|
||
$('.wrapper-prompt').removeClass('is-shown');
|
||
$(this.hash).addClass('is-shown');
|
||
});
|
||
});
|
||
</script>
|
||
</%block>
|
||
|
||
<%block name="content">
|
||
<div class="edit-subsection-publish-settings">
|
||
<div class="settings">
|
||
<h3>Section Release Date</h3>
|
||
<div class="picker datepair">
|
||
<input class="start-date date" type="text" name="start_date" value="" placeholder="MM/DD/YYYY" class="date" size='15' autocomplete="off"/>
|
||
<input class="start-time time" type="text" name="start_time" value="" placeholder="HH:MM" class="time" size='10' autocomplete="off"/>
|
||
<div class="description">
|
||
<p>On the date set above, this section – <strong class="section-name"></strong> – will be released to students. Any units marked private will only be visible to admins.</p>
|
||
</div>
|
||
</div>
|
||
<a href="#" class="save-button">Save</a><a href="#" class="cancel-button">Cancel</a>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="wrapper-mast wrapper">
|
||
<header class="mast has-actions has-subtitle">
|
||
<div class="title">
|
||
<span class="title-sub">UX Design</span>
|
||
<h1 class="title-1">Alerts & Notifications</h1>
|
||
</div>
|
||
</header>
|
||
</div>
|
||
|
||
<div class="wrapper-content wrapper">
|
||
<section class="content">
|
||
<article class="content-primary" role="main">
|
||
<section>
|
||
<header>
|
||
<h2 class="title-2">Alerts</h2>
|
||
<span class="tip">persistant, static messages to the user</span>
|
||
</header>
|
||
|
||
<p>In Studio, alerts are 1) general warnings/notes (e.g. drafts, published content, next steps) about the current view a user is interacting with or 2) notes about the status (e.g. saved confirmations, errors, next system steps) of any previous state that need to communicated to the user when arriving at the current view.</p>
|
||
|
||
<h3 class="title-3">Different Static Examples of Alerts</h3>
|
||
<p>Note: alerts will probably never been shown based on click or page action and will primarily be loaded along with a pageload and initial display</p>
|
||
|
||
<ul>
|
||
<li><a href="#alert-draft" class="show-alert">Show Draft</a></li>
|
||
<li><a href="#alert-version" class="show-alert">Show Version</a></li>
|
||
<li><a href="#alert-saved" class="show-alert">Show Previous View/Action</a></li>
|
||
<li><a href="#alert-close" class="show-alert">Show Alert with Close Option</a></li>
|
||
<li><a href="#alert-removed" class="show-alert">Show Previous View/Action Removed</a></li>
|
||
<li><a href="#alert-system-error" class="show-alert">Show System Error</a></li>
|
||
<li><a href="#alert-user-error" class="show-alert">Show User Error</a></li>
|
||
<li><a href="#alert-announcement2" class="show-alert">Show Announcement</a></li>
|
||
<li><a href="#alert-announcement1" class="show-alert">Show Announcement with Actions</a></li>
|
||
<li><a href="#alert-activation" class="show-alert">Show Activiation</a></li>
|
||
</ul>
|
||
</section>
|
||
|
||
<section>
|
||
<header>
|
||
<h2 class="title-2">Notifications</h2>
|
||
<span class="tip">contextual, feedback-based, and temporal messages to the user</span>
|
||
</header>
|
||
|
||
<p>In Studio, notifications are meant to inform the user of 1) any system status (e.g. saving, processing/validating) occurring based on any action they have taken or 2) any decisions (e.g. saving/discarding) a user must make to confirm.</p>
|
||
|
||
<h3 class="title-3">Different Static Examples of Notifications</h3>
|
||
|
||
<ul>
|
||
<li>
|
||
<a href="#notification-change" class="show-notification">Show Change Warning</a>
|
||
<a href="#notification-change" class="hide-notification">Hide Change Warning</a>
|
||
</li>
|
||
<li>
|
||
<a href="#notification-version" class="show-notification">Show New Version Warning</a>
|
||
<a href="#notification-version" class="hide-notification">Hide New Version Warning</a>
|
||
</li>
|
||
<li>
|
||
<a href="#notification-dangerous" class="show-notification">Show Editing Warning</a>
|
||
<a href="#notification-dangerous" class="hide-notification">Hide Editing Warning</a>
|
||
</li>
|
||
<li>
|
||
<a href="#notification-confirmation" class="show-notification-fleeting">Show Confirmation (Fleeting Notification)</a>
|
||
</li>
|
||
<li>
|
||
<a href="#notification-saving" class="show-notification">Show Saving</a>
|
||
<a href="#notification-saving" class="hide-notification">Hide Saving</a>
|
||
</li>
|
||
<li>
|
||
<a href="#notification-help" class="show-notification">Show Help</a>
|
||
<a href="#notification-help" class="hide-notification">Hide Help</a>
|
||
</li>
|
||
</ul>
|
||
</section>
|
||
|
||
<section>
|
||
<header>
|
||
<h2 class="title-2">Prompts</h2>
|
||
<span class="tip">presents a user with a choice, based on their previous interaction, that must be decided before they can proceed</span>
|
||
</header>
|
||
|
||
<p>In Studio, prompts are dialogs that are presented above all other page components and present a user with a choice, based on their previous interaction, that must be decided before they can proceed (or return to the previous interaction step).</p>
|
||
|
||
<h3 class="title-3">Different Static Examples of Prompts</h3>
|
||
|
||
<ul>
|
||
<li>
|
||
<a href="#prompt-confirm" class="show-prompt">Show Confirm Prompt</a>
|
||
</li>
|
||
<li>
|
||
<a href="#prompt-warning" class="show-prompt">Show Warning Prompt</a>
|
||
</li>
|
||
<li>
|
||
<a href="#prompt-error" class="show-prompt">Show Error Prompt</a>
|
||
</li>
|
||
</ul>
|
||
</section>
|
||
</article>
|
||
</section>
|
||
</div>
|
||
</%block>
|
||
|
||
<%block name="view_alerts">
|
||
<!-- alert: you're editing a draft -->
|
||
<div class="wrapper wrapper-alert wrapper-alert-warning" id="alert-draft">
|
||
<div class="alert warning has-actions">
|
||
<i class="ss-icon ss-symbolicons-block icon icon-warning">⚠</i>
|
||
|
||
<div class="copy">
|
||
<h2 class="title title-3">You are editing a draft</h2>
|
||
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.</p>
|
||
</div>
|
||
|
||
<nav class="nav-actions">
|
||
<h3 class="sr">Alert Actions</h3>
|
||
<ul>
|
||
<li class="nav-item">
|
||
<a href="#" class="button save-button action-primary">Save Draft</a>
|
||
</li>
|
||
<li class="nav-item">
|
||
<a href="#" class="button cancel-button action-secondary">Disgard Draft</a>
|
||
</li>
|
||
</ul>
|
||
</nav>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- alert: newer version -->
|
||
<div class="wrapper wrapper-alert wrapper-alert-warning" id="alert-version">
|
||
<div class="alert warning has-actions">
|
||
<i class="ss-icon ss-symbolicons-block icon icon-warning">⚠</i>
|
||
|
||
<div class="copy">
|
||
<h2 class="title title-3">A Newer Version of This Exists</h2>
|
||
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.</p>
|
||
</div>
|
||
|
||
<nav class="nav-actions">
|
||
<h3 class="sr">Alert Actions</h3>
|
||
<ul>
|
||
<li class="nav-item">
|
||
<a href="#" class="button save-button action-primary">Go to Newer Version</a>
|
||
</li>
|
||
<li class="nav-item">
|
||
<a href="#" class="button cancel-button action-secondary">Continue Editing</a>
|
||
</li>
|
||
</ul>
|
||
</nav>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- alert: save confirmed -->
|
||
<div class="wrapper wrapper-alert wrapper-alert-confirmation" id="alert-saved">
|
||
<div class="alert confirmation">
|
||
<i class="ss-icon ss-symbolicons-standard icon icon-confirmation">✓</i>
|
||
|
||
<div class="copy">
|
||
<h2 class="title title-3">Your changes have been saved</h2>
|
||
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. <a rel="page" href="#test">Please see below</a></p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- alert: save confirmed with close -->
|
||
<div class="wrapper wrapper-alert wrapper-alert-confirmation" id="alert-close">
|
||
<div class="alert confirmation">
|
||
<i class="ss-icon ss-symbolicons-standard icon icon-confirmation">✓</i>
|
||
|
||
<div class="copy">
|
||
<h2 class="title title-3">Your changes have been saved</h2>
|
||
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. <a rel="page" href="#test">Please see below</a></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: delete confirmed -->
|
||
<div class="wrapper wrapper-alert wrapper-alert-confirmation" id="alert-removed">
|
||
<div class="alert confirmation">
|
||
<i class="ss-icon ss-symbolicons-standard icon icon-confirmation">✓</i>
|
||
|
||
<div class="copy">
|
||
<h2 class="title title-3">X Has been removed</h2>
|
||
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- alert: system error -->
|
||
<div class="wrapper wrapper-alert wrapper-alert-error" id="alert-system-error">
|
||
<div class="alert error">
|
||
<i class="ss-icon ss-symbolicons-block icon icon-error">⚠</i>
|
||
|
||
<div class="copy">
|
||
<h2 class="title title-3">We're sorry, there was a error with Studio</h2>
|
||
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- alert: user error -->
|
||
<div class="wrapper wrapper-alert wrapper-alert-error" id="alert-user-error">
|
||
<div class="alert error has-actions">
|
||
<i class="ss-icon ss-symbolicons-block icon icon-error">⚠</i>
|
||
|
||
<div class="copy">
|
||
<h2 class="title title-3">There was an error in your submission</h2>
|
||
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. <a rel="page" href="#test">Please see below</a></p>
|
||
</div>
|
||
|
||
<nav class="nav-actions">
|
||
<h3 class="sr">Alert Actions</h3>
|
||
<ul>
|
||
<li class="nav-item">
|
||
<a href="#" class="button cancel-button action-primary">Cancel Your Submission</a>
|
||
</li>
|
||
</ul>
|
||
</nav>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- alert: announcement w/ actions -->
|
||
<div class="wrapper wrapper-alert wrapper-alert-announcement" id="alert-announcement1">
|
||
<div class="alert announcement has-actions">
|
||
<i class="ss-icon ss-symbolicons-block icon icon-announcement">📢</i>
|
||
|
||
<div class="copy">
|
||
<h2 class="title title-3">Studio will be unavailable this weekend</h2>
|
||
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.</p>
|
||
</div>
|
||
|
||
<nav class="nav-actions">
|
||
<h3 class="sr">Alert Actions</h3>
|
||
<ul>
|
||
<li class="nav-item">
|
||
<a href="#" rel="external" class="action-primary">Contact edX Staff</a>
|
||
</li>
|
||
<li class="nav-item">
|
||
<a href="#" class="action-secondary">Manage Your edX Notifications</a>
|
||
</li>
|
||
</ul>
|
||
</nav>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- alert: announcement -->
|
||
<div class="wrapper wrapper-alert wrapper-alert-announcement" id="alert-announcement2">
|
||
<div class="alert announcement">
|
||
<i class="ss-icon ss-symbolicons-block icon icon-announcement">📢</i>
|
||
|
||
<div class="copy">
|
||
<h2 class="title title-3">Studio will be unavailable this weekend</h2>
|
||
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- alert: step required -->
|
||
<div class="wrapper wrapper-alert wrapper-alert-step-required" id="alert-activation">
|
||
<div class="alert step-required has-actions">
|
||
<i class="ss-icon ss-symbolicons-block icon icon-step-required"></i>
|
||
|
||
<div class="copy">
|
||
<h2 class="title title-3">Your Studio account has been created, but needs to be activated</h2>
|
||
<p>Donec sed odio dui. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Cras mattis consectetur purus sit amet fermentum. Curabitur blandit tempus porttitor.</p>
|
||
</div>
|
||
|
||
<nav class="nav-actions">
|
||
<h3 class="sr">Alert Actions</h3>
|
||
<ul>
|
||
<li class="nav-item">
|
||
<a href="#" class="action-primary">Re-send Activation Message</a>
|
||
</li>
|
||
<li class="nav-item">
|
||
<a href="#" rel="external" class="action-secondary">Contact edX Support</a>
|
||
</li>
|
||
</ul>
|
||
</nav>
|
||
</div>
|
||
</div>
|
||
</%block>
|
||
|
||
<%block name="view_notifications">
|
||
<!-- notification: change has been made and a save is needed -->
|
||
<div class="wrapper wrapper-notification wrapper-notification-change" id="notification-change">
|
||
<div class="notification change has-actions">
|
||
<i class="ss-icon ss-symbolicons-block icon icon-change">📝</i>
|
||
|
||
<div class="copy">
|
||
<h2 class="title title-3">You've Made Some Changes</h2>
|
||
<p>Your changes will not take effect until you <strong>save your progress</strong>.</p>
|
||
</div>
|
||
|
||
<nav class="nav-actions">
|
||
<h3 class="sr">Notification Actions</h3>
|
||
<ul>
|
||
<li class="nav-item">
|
||
<a href="#" class="action-primary">Save Changes</a>
|
||
</li>
|
||
<li class="nav-item">
|
||
<a href="#" class="action-secondary">Don't Save</a>
|
||
</li>
|
||
</ul>
|
||
</nav>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- notification: newer version exists -->
|
||
<div class="wrapper wrapper-notification wrapper-notification-warning" id="notification-version">
|
||
<div class="notification warning has-actions">
|
||
<i class="ss-icon ss-symbolicons-block icon icon-warning">⚠</i>
|
||
|
||
<div class="copy">
|
||
<h2 class="title title-3">A Newer Version of This Exists</h2>
|
||
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.</p>
|
||
</div>
|
||
|
||
<nav class="nav-actions">
|
||
<h3 class="sr">Notification Actions</h3>
|
||
<ul>
|
||
<li class="nav-item">
|
||
<a href="#" class="button save-button action-primary">Go to Newer Version</a>
|
||
</li>
|
||
<li class="nav-item">
|
||
<a href="#" class="button cancel-button action-secondary">Continue Editing</a>
|
||
</li>
|
||
</ul>
|
||
</nav>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- notification: warning about editing something dangerous -->
|
||
<div class="wrapper wrapper-notification wrapper-notification-warning" id="notification-dangerous">
|
||
<div class="notification warning has-actions">
|
||
<i class="ss-icon ss-symbolicons-block icon icon-warning">⚠</i>
|
||
|
||
<div class="copy">
|
||
<h2 class="title title-3">Are You Sure You Want to Edit That?</h2>
|
||
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa.</p>
|
||
</div>
|
||
|
||
<nav class="nav-actions">
|
||
<h3 class="sr">Notification Actions</h3>
|
||
<ul>
|
||
<li class="nav-item">
|
||
<a href="#" class="action-primary">Yes, I want to Edit X</a>
|
||
</li>
|
||
<li class="nav-item">
|
||
<a href="#" class="action-secondary">No, I do not</a>
|
||
</li>
|
||
</ul>
|
||
</nav>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- notification: status - saving -->
|
||
<div class="wrapper wrapper-notification wrapper-notification-status wrapper-notification-saving" id="notification-saving">
|
||
<div class="notification saving">
|
||
<i class="ss-icon ss-symbolicons-block icon icon-saving">⚙</i>
|
||
|
||
<div class="copy">
|
||
<h2 class="title title-3">Saving …</h2>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- notification: status- confirmed -->
|
||
<div class="wrapper wrapper-notification wrapper-notification-confirmation" id="notification-confirmation">
|
||
<div class="notification confirmation">
|
||
<i class="ss-icon ss-symbolicons-standard icon icon-confirmation">✓</i>
|
||
|
||
<div class="copy">
|
||
<h2 class="title title-3"><a href="#">Your Section</a> Has Been Created</h2>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- notification: help - DYK -->
|
||
<div class="wrapper wrapper-notification wrapper-notification-help" id="notification-help">
|
||
<div class="notification help">
|
||
<i class="ss-icon ss-symbolicons-block icon icon-help">❓</i>
|
||
|
||
<div class="copy">
|
||
<h2 class="title title-3">Fun Fact:</h2>
|
||
<p>Using the checkmark will allow you make a subsection gradable as an assignment, which counts towards a student's total grade</p>
|
||
</div>
|
||
|
||
<a href="#" rel="view" class="action action-notification-close">
|
||
<i class="ss-icon ss-symbolicons-block icon icon-close">␡</i>
|
||
<span class="label">close notification</span>
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</%block>
|
||
|
||
<%block name="view_prompts">
|
||
<!-- prompt - confirm deletion -->
|
||
<div class="wrapper wrapper-prompt wrapper-prompt-confirm" id="prompt-confirm">
|
||
<div class="prompt confirm">
|
||
<div class="copy">
|
||
<h2 class="title title-3">Delete "Introduction & Overview"?</h2>
|
||
<p>Deleting a section cannot be undone and its contents cannot be recovered.</p>
|
||
</div>
|
||
|
||
<nav class="nav-actions">
|
||
<h3 class="sr">Prompt Actions</h3>
|
||
<ul>
|
||
<li class="nav-item">
|
||
<a href="#" class="action-primary action-proceed">Yes, delete this section</a>
|
||
</li>
|
||
<li class="nav-item">
|
||
<a href="#" class="action-secondary action-cancel">Cancel</a>
|
||
</li>
|
||
</ul>
|
||
</nav>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- prompt - warning -->
|
||
<div class="wrapper wrapper-prompt wrapper-prompt-warning" id="prompt-warning">
|
||
<div class="prompt warning">
|
||
<div class="copy">
|
||
<h2 class="title title-3">Use Advanced Problem Editor?</h2>
|
||
<p>If you proceed, you cannot edit this problem using the simple problem editor.</p>
|
||
</div>
|
||
|
||
<nav class="nav-actions">
|
||
<h3 class="sr">Prompt Actions</h3>
|
||
<ul>
|
||
<li class="nav-item">
|
||
<a href="#" class="action-primary action-proceed">Continue to Advanced Editor</a>
|
||
</li>
|
||
<li class="nav-item">
|
||
<a href="#" class="action-secondary action-cancel">Cancel</a>
|
||
</li>
|
||
</ul>
|
||
</nav>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- prompt - error -->
|
||
<div class="wrapper wrapper-prompt wrapper-prompt-error" id="prompt-error">
|
||
<div class="prompt error">
|
||
<div class="copy">
|
||
<h2 class="title title-3">There Were Errors in Your Submission</h2>
|
||
<p>Please correct the errors noted on the page and try again.</p>
|
||
</div>
|
||
|
||
<nav class="nav-actions">
|
||
<h3 class="sr">Prompt Actions</h3>
|
||
<ul>
|
||
<li class="nav-item">
|
||
<a href="#" class="action-primary action-proceed">Correct errors & try again</a>
|
||
</li>
|
||
</ul>
|
||
</nav>
|
||
</div>
|
||
</div>
|
||
</%block> |