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
5119257f
Commit
5119257f
authored
Dec 20, 2012
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test center - fixed dashboard link font issue and started cleaning up markup in reg form - wip
parent
d5bd2313
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
153 additions
and
167 deletions
+153
-167
lms/static/sass/application.scss
+1
-0
lms/static/sass/multicourse/_dashboard.scss
+4
-0
lms/templates/test_center_register.html
+148
-167
No files found.
lms/static/sass/application.scss
View file @
5119257f
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
@import
'multicourse/home'
;
@import
'multicourse/home'
;
@import
'multicourse/dashboard'
;
@import
'multicourse/dashboard'
;
@import
'multicourse/testcenter-register'
;
@import
'multicourse/courses'
;
@import
'multicourse/courses'
;
@import
'multicourse/course_about'
;
@import
'multicourse/course_about'
;
@import
'multicourse/jobs'
;
@import
'multicourse/jobs'
;
...
...
lms/static/sass/multicourse/_dashboard.scss
View file @
5119257f
...
@@ -418,6 +418,10 @@
...
@@ -418,6 +418,10 @@
font-size
:
13px
;
font-size
:
13px
;
margin
:
0
;
margin
:
0
;
a
{
font-family
:
$sans-serif
;
}
.grade-value
{
.grade-value
{
font-size
:
1
.2rem
;
font-size
:
1
.2rem
;
font-weight
:
bold
;
font-weight
:
bold
;
...
...
lms/templates/test_center_register.html
View file @
5119257f
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
block
name=
"title"
><title>
Sign Up for Pearson VUE Test Center Proctoring
</title></
%
block>
<
%
block
name=
"title"
><title>
Pearson VUE Test Center Proctoring - Sign Up
</title></
%
block>
<
%
block
name=
"js_extra"
>
<
%
block
name=
"js_extra"
>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
...
@@ -35,45 +35,37 @@
...
@@ -35,45 +35,37 @@
</script>
</script>
</
%
block>
</
%
block>
<section
id=
"testcenter-register"
class=
""
>
<section
class=
"testcenter-register container"
>
<div
class=
"inner-wrapper"
>
<!-- display stuff about the exam and the course for which the user is registering.
<div
id=
"register"
>
If the user has already registered in the past for a test center, then also display
<header>
their ID. -->
<h2></h2>
<hr>
<section
class=
"info"
>
</header>
<hgroup>
<p
class=
"date-block"
>
<!-- display stuff about the exam and the course for which the user is registering.
% if course.has_ended():
If the user has already registered in the past for a test center, then also display
Course Completed - ${course.end_date_text}
their ID. -->
% elif course.has_started():
Course Started - ${course.start_date_text}
<section
class=
"info"
>
% else: # hasn't started yet
<hgroup>
Course Starts - ${course.start_date_text}
<p
class=
"date-block"
>
% endif
% if course.has_ended():
</p>
Course Completed - ${course.end_date_text}
<h2
class=
"university"
>
${get_course_about_section(course, 'university')}
</h2>
% elif course.has_started():
<h3>
${course.number} ${course.title}
</h3>
Course Started - ${course.start_date_text}
</hgroup>
% else: # hasn't started yet
Course Starts - ${course.start_date_text}
<!-- TODO: need to add logic to select which of the following to display. Like certs? -->
% endif
<
%
</p>
exam_info =
course.testcenter_info
<h2
class=
"university"
>
${get_course_about_section(course, 'university')}
</h2>
%
>
<h3>
${course.number} ${course.title}
</h3>
% if exam_info is not None:
</hgroup>
<p>
Exam Series Code: ${exam_info.get('Exam_Series_Code')}
</p>
<p>
First Eligible Appointment Date: ${exam_info.get('First_Eligible_Appointment_Date')}
</p>
<!-- TODO: need to add logic to select which of the following to display. Like certs? -->
<p>
Last Eligible Appointment Date: ${exam_info.get('Last_Eligible_Appointment_Date')}
</p>
<
%
% endif
exam_info =
course.testcenter_info
</section>
%
>
% if exam_info is not None:
<p>
Exam Series Code: ${exam_info.get('Exam_Series_Code')}
</p>
<p>
First Eligible Appointment Date: ${exam_info.get('First_Eligible_Appointment_Date')}
</p>
<p>
Last Eligible Appointment Date: ${exam_info.get('Last_Eligible_Appointment_Date')}
</p>
% endif
</section>
<!-- check to see if the user has already registering, or
<!-- check to see if the user has already registering, or
is registering for the first time -->
is registering for the first time -->
...
@@ -86,40 +78,41 @@
...
@@ -86,40 +78,41 @@
registration =
registrations[0]
registration =
registrations[0]
%
>
%
>
<section><div>
Already Registered
</div>
<section><div>
Already Registered
</div>
<p>
Here is the current state of your registration, for debugging purposes:
</p>
<p>
Here is the current state of your registration, for debugging purposes:
</p>
<l>
<l>
<li>
id: ${registration.id}
</li>
<li>
id: ${registration.id}
</li>
<li>
testcenter_user_id: ${registration.testcenter_user_id}
</li>
<li>
testcenter_user_id: ${registration.testcenter_user_id}
</li>
<li>
course_id: ${registration.course_id}
</li>
<li>
course_id: ${registration.course_id}
</li>
<li>
accommodation codes: ${registration.accommodation_code}
</li>
<li>
accommodation codes: ${registration.accommodation_code}
</li>
<li>
accommodation request: ${registration.accommodation_request}
</li>
<li>
accommodation request: ${registration.accommodation_request}
</li>
<li>
created_at: ${registration.created_at}
</li>
<li>
created_at: ${registration.created_at}
</li>
<li>
updated_at: ${registration.updated_at}
</li>
<li>
updated_at: ${registration.updated_at}
</li>
<li>
user_updated_at: ${registration.user_updated_at}
</li>
<li>
user_updated_at: ${registration.user_updated_at}
</li>
<li>
upload_status: ${registration.upload_status}
</li>
<li>
upload_status: ${registration.upload_status}
</li>
<li>
upload_error_message: ${registration.upload_error_message}
</li>
<li>
upload_error_message: ${registration.upload_error_message}
</li>
</l>
</l>
<!-- determine status of registration
doing here for now, but will move into model or view -->
<
%
regstatus =
"registration pending acknowledgement by Pearson"
<!-- determine status of registration
if
registration
.
upload_status =
=
'
Accepted
'
:
doing here for now, but will move into model or view -->
regstatus =
"registration approved by Pearson"
<
%
elif
registration
.
upload_status =
=
'
Error
'
:
regstatus =
"registration pending acknowledgement by Pearson"
regstatus =
"registration rejected by Pearson: %s"
%
registration
.
upload_error_message
elif
len
(
registration
.
accommodation_request
)
>
0 and registration.accommodation_code == '':
if
registration
.
upload_status =
=
'
Accepted
'
:
regstatus = "pending approval of accommodation request"
regstatus =
"registration approved by Pearson"
%>
elif
registration
.
upload_status =
=
'
Error
'
:
<p>
Current status: ${regstatus}
</p>
regstatus =
"registration rejected by Pearson: %s"
%
registration
.
upload_error_message
elif
len
(
registration
.
accommodation_request
)
>
0 and registration.accommodation_code == '':
<p>
The demographic information provided below was used to register
regstatus = "pending approval of accommodation request"
for the exam listed above. Changes to this information
%>
may be submitted below.
</p>
<p>
Current status: ${regstatus}
</p>
</section>
<p>
The demographic information provided below was used to register
for the exam listed above. Changes to this information
may be submitted below.
</p>
</section>
% else:
% else:
<p>
The demographic information must be provided below in order to register
<p>
The demographic information must be provided below in order to register
for the exam listed above.
</p>
for the exam listed above.
</p>
...
@@ -127,106 +120,94 @@
...
@@ -127,106 +120,94 @@
<!-- provide mechanism for error messages to appear -->
<!-- provide mechanism for error messages to appear -->
% if message:
% if message:
<section
class=
"
"
>
<div
id=
"register_error"
name=
"register_error
"
>
<p>
${message}
</p>
<p>
${message}
</p>
</section>
</div>
% endif
% endif
<form
id=
"test_register_form"
class=
"test_register_form"
method=
"post"
data-remote=
"true"
action=
"/create_test_registration"
>
<form
id=
"testcenter-register-form"
method=
"post"
data-remote=
"true"
action=
"/create_test_registration"
>
<div
class=
"notice"
></div>
<!-- TODO: why are both of these here? -->
<div
id=
"register_error"
class=
"modal-form-error"
name=
"register_error"
></div>
<div
id=
"register_error"
name=
"register_error"
></div>
<!-- include these as pass-throughs -->
<input
id=
"id_email"
type=
"hidden"
name=
"email"
maxlength=
"75"
value=
"${user.email}"
/>
<input
id=
"id_username"
type=
"hidden"
name=
"username"
maxlength=
"75"
value=
"${user.username}"
/>
<input
id=
"id_course_id"
type=
"hidden"
name=
"course_id"
maxlength=
"75"
value=
"${course.id}"
/>
<div
class=
"input-group"
>
<label
data-field=
"salutation"
>
Salutation
</label>
<input
name=
"salutation"
type=
"text"
value=
"${testcenteruser.salutation}"
placeholder=
"e.g. Dr."
>
<br>
<label
data-field=
"first_name"
>
First Name*
</label>
<input
name=
"first_name"
type=
"text"
value=
"${testcenteruser.first_name}"
maxlength=
"30"
placeholder=
"e.g. Jane"
>
<br>
<label
data-field=
"middle_name"
>
Middle Name
</label>
<input
name=
"middle_name"
type=
"text"
value=
"${testcenteruser.middle_name}"
placeholder=
"e.g. Michael"
>
<br>
<label
data-field=
"last_name"
>
Last Name*
</label>
<input
name=
"last_name"
type=
"text"
value=
"${testcenteruser.last_name}"
placeholder=
"e.g. Smith"
>
<br>
<label
data-field=
"suffix"
>
Suffix
</label>
<input
name=
"suffix"
type=
"text"
value=
"${testcenteruser.suffix}"
placeholder=
"e.g. Jr."
>
<br>
</div>
<div
class=
"input-group"
>
<label
data-field=
"address_1"
>
Address1*
</label>
<input
name=
"address_1"
type=
"text"
value=
"${testcenteruser.address_1}"
placeholder=
"123 Main St."
>
<br>
<label
data-field=
"address_2"
>
Address2
</label>
<input
name=
"address_2"
type=
"text"
value=
"${testcenteruser.address_2}"
placeholder=
"Apartment 2B."
>
<br>
<label
data-field=
"address_3"
>
Address3
</label>
<input
name=
"address_3"
type=
"text"
value=
"${testcenteruser.address_3}"
placeholder=
"Attention: John Smith"
>
<br>
<label
data-field=
"city"
>
City
</label>
<input
name=
"city"
type=
"text"
value=
"${testcenteruser.city}"
placeholder=
"Our Fair City"
>
<label
data-field=
"state"
>
State/Province
</label>
<input
name=
"state"
type=
"text"
value=
"${testcenteruser.state}"
placeholder=
"MA"
>
<br>
<label
data-field=
"postal_code"
>
Postal Code
</label>
<input
name=
"postal_code"
type=
"text"
value=
"${testcenteruser.postal_code}"
placeholder=
"02138"
>
<label
data-field=
"country"
>
Country Code*
</label>
<input
name=
"country"
type=
"text"
value=
"${testcenteruser.country}"
placeholder=
"USA"
>
</div>
<div
class=
"input-group"
>
<label
data-field=
"phone"
>
Phone*
</label>
<input
name=
"phone"
type=
"text"
value=
"${testcenteruser.phone}"
placeholder=
"1-23-456-7890"
>
<label
data-field=
"phone"
>
Extension
</label>
<input
name=
"extension"
type=
"text"
value=
"${testcenteruser.extension}"
placeholder=
"x123"
>
<label
data-field=
"phone_country_code"
>
Phone Country Code*
</label>
<input
name=
"phone_country_code"
type=
"text"
value=
"${testcenteruser.phone_country_code}"
placeholder=
"ABC"
>
<br>
<label
data-field=
"fax"
>
Fax
</label>
<input
name=
"fax"
type=
"text"
value=
"${testcenteruser.fax}"
placeholder=
"1-23-456-7891"
>
<label
data-field=
"fax_country_code"
>
Fax Country Code*
</label>
<input
name=
"fax_country_code"
type=
"text"
value=
"${testcenteruser.fax_country_code}"
placeholder=
"ABC"
>
<br>
<label
data-field=
"company_name"
>
Company
</label>
<input
name=
"company_name"
type=
"text"
value=
"${testcenteruser.company_name}"
placeholder=
"Acme Corporation"
>
</div>
<div><p>
The following is included here just so it can be input within the form. But it
is not part of the demographics, and it is not something that can be changed once input.
</p>
</div>
<div
class=
"input-group"
>
<label
data-field=
"accommodations"
>
Accommodations Requested
</label>
<textarea
name=
"accommodations"
></textarea>
</div>
% if len(registrations) > 0:
<div
class=
"submit"
>
<input
name=
"submit"
type=
"submit"
value=
"Update demographics"
>
</div>
% else:
<div
class=
"submit"
>
<input
name=
"submit"
type=
"submit"
value=
"Register for Test"
>
</div>
% endif
</form>
<!-- include these as pass-throughs -->
<input
id=
"id_email"
type=
"hidden"
name=
"email"
maxlength=
"75"
value=
"${user.email}"
/>
<input
id=
"id_username"
type=
"hidden"
name=
"username"
maxlength=
"75"
value=
"${user.username}"
/>
<input
id=
"id_course_id"
type=
"hidden"
name=
"course_id"
maxlength=
"75"
value=
"${course.id}"
/>
<div
class=
"input-group"
>
<label
data-field=
"salutation"
>
Salutation
</label>
<input
name=
"salutation"
type=
"text"
value=
"${testcenteruser.salutation}"
placeholder=
"e.g. Dr."
>
<br>
<label
data-field=
"first_name"
>
First Name*
</label>
<input
name=
"first_name"
type=
"text"
value=
"${testcenteruser.first_name}"
maxlength=
"30"
placeholder=
"e.g. Jane"
>
<br>
<label
data-field=
"middle_name"
>
Middle Name
</label>
<input
name=
"middle_name"
type=
"text"
value=
"${testcenteruser.middle_name}"
placeholder=
"e.g. Michael"
>
<br>
<label
data-field=
"last_name"
>
Last Name*
</label>
<input
name=
"last_name"
type=
"text"
value=
"${testcenteruser.last_name}"
placeholder=
"e.g. Smith"
>
<br>
<label
data-field=
"suffix"
>
Suffix
</label>
<input
name=
"suffix"
type=
"text"
value=
"${testcenteruser.suffix}"
placeholder=
"e.g. Jr."
>
<br>
</div>
<div
class=
"input-group"
>
<label
data-field=
"address_1"
>
Address1*
</label>
<input
name=
"address_1"
type=
"text"
value=
"${testcenteruser.address_1}"
placeholder=
"123 Main St."
>
<br>
<label
data-field=
"address_2"
>
Address2
</label>
<input
name=
"address_2"
type=
"text"
value=
"${testcenteruser.address_2}"
placeholder=
"Apartment 2B."
>
<br>
<label
data-field=
"address_3"
>
Address3
</label>
<input
name=
"address_3"
type=
"text"
value=
"${testcenteruser.address_3}"
placeholder=
"Attention: John Smith"
>
<br>
<label
data-field=
"city"
>
City
</label>
<input
name=
"city"
type=
"text"
value=
"${testcenteruser.city}"
placeholder=
"Our Fair City"
>
<label
data-field=
"state"
>
State/Province
</label>
<input
name=
"state"
type=
"text"
value=
"${testcenteruser.state}"
placeholder=
"MA"
>
<br>
<label
data-field=
"postal_code"
>
Postal Code
</label>
<input
name=
"postal_code"
type=
"text"
value=
"${testcenteruser.postal_code}"
placeholder=
"02138"
>
<label
data-field=
"country"
>
Country Code*
</label>
<input
name=
"country"
type=
"text"
value=
"${testcenteruser.country}"
placeholder=
"USA"
>
</div>
</div>
<!--
<div class="close-modal">
<div
class=
"input-group"
>
<div class="inner">
<label
data-field=
"phone"
>
Phone*
</label>
<p>✕</p>
<input
name=
"phone"
type=
"text"
value=
"${testcenteruser.phone}"
placeholder=
"1-23-456-7890"
>
</div>
<label
data-field=
"phone"
>
Extension
</label>
</div> -->
<input
name=
"extension"
type=
"text"
value=
"${testcenteruser.extension}"
placeholder=
"x123"
>
<label
data-field=
"phone_country_code"
>
Phone Country Code*
</label>
<input
name=
"phone_country_code"
type=
"text"
value=
"${testcenteruser.phone_country_code}"
placeholder=
"ABC"
>
<br>
<label
data-field=
"fax"
>
Fax
</label>
<input
name=
"fax"
type=
"text"
value=
"${testcenteruser.fax}"
placeholder=
"1-23-456-7891"
>
<label
data-field=
"fax_country_code"
>
Fax Country Code*
</label>
<input
name=
"fax_country_code"
type=
"text"
value=
"${testcenteruser.fax_country_code}"
placeholder=
"ABC"
>
<br>
<label
data-field=
"company_name"
>
Company
</label>
<input
name=
"company_name"
type=
"text"
value=
"${testcenteruser.company_name}"
placeholder=
"Acme Corporation"
>
</div>
<div>
<p>
The following is included here just so it can be input within the form. But it is not part of the demographics, and it is not something that can be changed once input.
</p>
<div
class=
"input-group"
>
<label
data-field=
"accommodations"
>
Accommodations Requested
</label>
<textarea
name=
"accommodations"
></textarea>
</div>
% if len(registrations) > 0:
<div
class=
"submit"
>
<input
name=
"submit"
type=
"submit"
value=
"Update demographics"
>
</div>
</div>
% else:
<div
class=
"submit"
>
<input
name=
"submit"
type=
"submit"
value=
"Register for Test"
>
</div>
% endif
</form>
</section>
</section>
...
...
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