From ff2ba68d7965ff04b24029bba0527cb05252b3bb Mon Sep 17 00:00:00 2001 From: Greg Price Date: Thu, 16 May 2013 13:37:48 -0400 Subject: [PATCH] Tweak behavior of registration button for marketing site If a user is already registered for a course but the course has not started yet, display a grey button that says "you are registered" and goes nowhere instead of the blue "access courseware" button, which goes to the LMS course about page (which 404s). --- lms/static/sass/_shame.scss | 7 ++++--- lms/templates/courseware/mktg_course_about.html | 6 +++++- lms/templates/mktg_iframe.html | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/lms/static/sass/_shame.scss b/lms/static/sass/_shame.scss index 964b543a31..6fde825ee3 100644 --- a/lms/static/sass/_shame.scss +++ b/lms/static/sass/_shame.scss @@ -79,14 +79,15 @@ .action { - // not registered (default) - &.action-register { + // register or access courseware + &.action-register, &.access-courseware { @extend .btn-primary; } - // already registered + // already registered but course not started &.is-registered { @extend .btn-secondary; + pointer-events: none !important; } // coming soon diff --git a/lms/templates/courseware/mktg_course_about.html b/lms/templates/courseware/mktg_course_about.html index e3cb864b99..168e3e2c0b 100644 --- a/lms/templates/courseware/mktg_course_about.html +++ b/lms/templates/courseware/mktg_course_about.html @@ -45,7 +45,11 @@