From 76f6ee18772d905033d2ff65218f9ca8c3dd2588 Mon Sep 17 00:00:00 2001 From: Brian Talbot Date: Thu, 20 Dec 2012 13:00:08 -0500 Subject: [PATCH] test center - reorg of HTML - wip --- lms/templates/test_center_register.html | 132 ++++++++++++++---------- 1 file changed, 78 insertions(+), 54 deletions(-) diff --git a/lms/templates/test_center_register.html b/lms/templates/test_center_register.html index f1b071d121..8d5f7cb206 100644 --- a/lms/templates/test_center_register.html +++ b/lms/templates/test_center_register.html @@ -35,13 +35,17 @@ +<% +exam_info = course.testcenter_info +%> +
-
+

% if course.has_ended(): @@ -57,66 +61,86 @@

- <% - exam_info = course.testcenter_info - %> % if exam_info is not None:

Exam Series Code: ${exam_info.get('Exam_Series_Code')}

First Eligible Appointment Date: ${exam_info.get('First_Eligible_Appointment_Date')}

Last Eligible Appointment Date: ${exam_info.get('Last_Eligible_Appointment_Date')}

% endif + + + <% + registrations = get_testcenter_registrations_for_user_and_course(user, course.id) + %> + + % if len(registrations) > 0: + <% + registration = registrations[0] + %> + +
Already Registered
+

Here is the current state of your registration, for debugging purposes:

+ +
  • id: ${registration.id}
  • +
  • testcenter_user_id: ${registration.testcenter_user_id}
  • +
  • course_id: ${registration.course_id}
  • +
  • accommodation codes: ${registration.accommodation_code}
  • +
  • accommodation request: ${registration.accommodation_request}
  • +
  • created_at: ${registration.created_at}
  • +
  • updated_at: ${registration.updated_at}
  • +
  • user_updated_at: ${registration.user_updated_at}
  • +
  • upload_status: ${registration.upload_status}
  • +
  • upload_error_message: ${registration.upload_error_message}
  • +
    + + + + <% + regstatus = "registration pending acknowledgement by Pearson" + + if registration.upload_status == 'Accepted': + regstatus = "registration approved by Pearson" + elif registration.upload_status == 'Error': + regstatus = "registration rejected by Pearson: %s" % registration.upload_error_message + elif len(registration.accommodation_request) > 0 and registration.accommodation_code == '': + regstatus = "pending approval of accommodation request" + %> +

    Current status: ${regstatus}

    + +

    The demographic information provided below was used to register + for the exam listed above. Changes to this information + may be submitted below.

    +
    + + % else: +

    The demographic information must be provided below in order to register + for the exam listed above.

    + % endif
    - - - <% - registrations = get_testcenter_registrations_for_user_and_course(user, course.id) - %> - - % if len(registrations) > 0: - <% - registration = registrations[0] - %> - -
    Already Registered
    -

    Here is the current state of your registration, for debugging purposes:

    - -
  • id: ${registration.id}
  • -
  • testcenter_user_id: ${registration.testcenter_user_id}
  • -
  • course_id: ${registration.course_id}
  • -
  • accommodation codes: ${registration.accommodation_code}
  • -
  • accommodation request: ${registration.accommodation_request}
  • -
  • created_at: ${registration.created_at}
  • -
  • updated_at: ${registration.updated_at}
  • -
  • user_updated_at: ${registration.user_updated_at}
  • -
  • upload_status: ${registration.upload_status}
  • -
  • upload_error_message: ${registration.upload_error_message}
  • -
    - - - - <% - regstatus = "registration pending acknowledgement by Pearson" - - if registration.upload_status == 'Accepted': - regstatus = "registration approved by Pearson" - elif registration.upload_status == 'Error': - regstatus = "registration rejected by Pearson: %s" % registration.upload_error_message - elif len(registration.accommodation_request) > 0 and registration.accommodation_code == '': - regstatus = "pending approval of accommodation request" - %> -

    Current status: ${regstatus}

    - -

    The demographic information provided below was used to register - for the exam listed above. Changes to this information - may be submitted below.

    -
    - % else: -

    The demographic information must be provided below in order to register - for the exam listed above.

    - % endif +
    +
    +
    +

    ${get_course_about_section(course, 'university')} ${course.number} ${course.title}

    +

    Register for a Pearson VUE Proctored Exam

    +
    + + + % if course.has_ended(): + Course Completed: ${course.end_date_text} + % elif course.has_started(): + Course Started: ${course.start_date_text} + % else: # hasn't started yet + Course Starts: ${course.start_date_text} + % endif + +
    + +
    + +
    +
    % if message: