From 18b4b0b03f4260ac53860564ea138dc2dfc4abe6 Mon Sep 17 00:00:00 2001 From: Frances Botsford Date: Mon, 9 Sep 2013 19:24:58 -0400 Subject: [PATCH] modal functionality for edit name on vcerts --- lms/static/js/verify_student/photocapture.js | 4 +- lms/static/sass/views/_verification.scss | 17 +++++++ .../verify_student/_modal_editname.html | 50 +++++++++++-------- .../verify_student/photo_verification.html | 27 +++++----- 4 files changed, 63 insertions(+), 35 deletions(-) diff --git a/lms/static/js/verify_student/photocapture.js b/lms/static/js/verify_student/photocapture.js index a214cf06c3..2401fde2c1 100644 --- a/lms/static/js/verify_student/photocapture.js +++ b/lms/static/js/verify_student/photocapture.js @@ -70,6 +70,8 @@ function doSnapshotButton(captureButton, resetButton, approveButton) { function submitNameChange(event) { event.preventDefault(); + $("#lean_overlay").fadeOut(200); + $("#edit-name").css({ 'display' : 'none' }); var full_name = $('input[name="name"]').val(); var xhr = $.post( "/change_name", @@ -84,7 +86,7 @@ function submitNameChange(event) { .fail(function(jqXhr,text_status, error_thrown) { $('.message-copy').html(jqXhr.responseText); }); - + } function initSnapshotHandler(names, hasHtml5CameraSupport) { diff --git a/lms/static/sass/views/_verification.scss b/lms/static/sass/views/_verification.scss index adfb9aaa60..3622410652 100644 --- a/lms/static/sass/views/_verification.scss +++ b/lms/static/sass/views/_verification.scss @@ -1622,6 +1622,23 @@ color: #fff; } + .modal { + + fieldset { + margin-top: $baseline; + } + + .close-modal { + color: $m-blue-d3; + + &:hover { + color: $m-blue-d1; + border: none; + } + } + + } + .nav-wizard { .help-inline { diff --git a/lms/templates/verify_student/_modal_editname.html b/lms/templates/verify_student/_modal_editname.html index dbe8551854..1e5efadc44 100644 --- a/lms/templates/verify_student/_modal_editname.html +++ b/lms/templates/verify_student/_modal_editname.html @@ -1,26 +1,34 @@ <%! from django.utils.translation import ugettext as _ %> diff --git a/lms/templates/verify_student/photo_verification.html b/lms/templates/verify_student/photo_verification.html index a54ab6a2b0..8118d87e45 100644 --- a/lms/templates/verify_student/photo_verification.html +++ b/lms/templates/verify_student/photo_verification.html @@ -249,19 +249,6 @@
    -
  1. -

    ${_("Check Your Name")}

    - -
    -

    ${_("Make sure your full name on your edX account ({full_name}) matches your ID. We will also use this as the name on your certificate.").format(full_name="" + user_full_name + "")}

    -
    - - -
  2. ${_("Review the Photos You've Taken")}

    @@ -315,6 +302,20 @@
+
  • +

    ${_("Check Your Name")}

    + +
    +

    ${_("Make sure your full name on your edX account ({full_name}) matches your ID. We will also use this as the name on your certificate.").format(full_name="" + user_full_name + "")}

    +
    + + +
  • +
  • ${_("Check Your Contribution Level")}