Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-proctoring
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
OpenEdx
edx-proctoring
Commits
6850b2bc
Commit
6850b2bc
authored
Jun 30, 2015
by
Muhammad Shoaib
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PHX-42 added the html for the entrance exam and internationalize the html file.
parent
120755b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
4 deletions
+24
-4
edx_proctoring/api.py
+2
-0
edx_proctoring/templates/proctoring/seq_timed_exam_entrance.html
+22
-4
No files found.
edx_proctoring/api.py
View file @
6850b2bc
...
...
@@ -252,7 +252,9 @@ def get_student_view(user_id, course_id, content_id, context):
if
student_view_template
:
template
=
loader
.
get_template
(
student_view_template
)
django_context
=
Context
(
context
)
total_time
=
str
(
timedelta
(
seconds
=
60
*
context
[
'default_time_limit_mins'
]))
django_context
.
update
({
'total_time'
:
total_time
,
'exam_id'
:
exam_id
,
'enter_exam_endpoint'
:
reverse
(
'edx_proctoring.proctored_exam.attempt'
),
})
...
...
edx_proctoring/templates/proctoring/seq_timed_exam_entrance.html
View file @
6850b2bc
{% load i18n %}
<div
class=
"sequence"
data-exam-id=
"{{exam_id}}"
>
<div
class=
"gated-sequence"
>
This is a timed exam. Would you like to
<a
class=
'start-timed-exam'
data-ajax-url=
"{{enter_exam_endpoint}}"
>
enter
</a>
it?
</div>
<h3>
{% blocktrans %}
{{ display_name }} is a Timed Exam ( {{total_time}} )
{% endblocktrans %}
</h3>
<p>
{% trans "This exam has a time limit associated with it." %}
<strong>
{% trans "In order to successfully pass this exam you will have to answer the following questions and problems in the time allotted." %}
</strong>
Once you proceed, you'll start both the exam and the total time {{total_time}} gives to you.
</p>
<div
class=
"gated-sequence"
>
{% blocktrans %}
I'm ready! Start this timed exam.
<a
class=
'start-timed-exam'
data-ajax-url=
"{{enter_exam_endpoint}}"
>
<i
class=
"fa fa-arrow-circle-right"
></i>
</a>
{% endblocktrans %}
</div>
</div>
<script
type=
"text/javascript"
>
...
...
@@ -13,7 +31,7 @@
$
.
post
(
action_url
,
{
"exam_id"
:
exam_id
,
"exam_id"
:
exam_id
},
function
(
data
)
{
// reload the page, because we've unlocked it
...
...
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