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
34a613d1
Commit
34a613d1
authored
Jul 15, 2015
by
Muhammad Shoaib
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
html for the search box
parent
e26509ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
60 deletions
+72
-60
edx_proctoring/static/proctoring/js/views/proctored_exam_attempt_view.js
+5
-1
edx_proctoring/static/proctoring/templates/student-proctored-exam-attempts.underscore
+67
-59
No files found.
edx_proctoring/static/proctoring/js/views/proctored_exam_attempt_view.js
View file @
34a613d1
...
@@ -27,9 +27,13 @@ var edx = edx || {};
...
@@ -27,9 +27,13 @@ var edx = edx || {};
},
},
events
:
{
events
:
{
"click .remove-attempt"
:
"onRemoveAttempt"
,
"click .remove-attempt"
:
"onRemoveAttempt"
,
'click li > a.target-link'
:
'getPaginatedAttempts'
'click li > a.target-link'
:
'getPaginatedAttempts'
,
'click .search-attempts > span.search'
:
'searchAttempts'
},
},
searchAttempts
:
function
(
event
){
alert
(
'search'
);
},
getPaginatedAttempts
:
function
(
event
)
{
getPaginatedAttempts
:
function
(
event
)
{
var
target
=
$
(
event
.
currentTarget
);
var
target
=
$
(
event
.
currentTarget
);
var
url
=
target
.
data
(
'target-url'
);
var
url
=
target
.
data
(
'target-url'
);
...
...
edx_proctoring/static/proctoring/templates/student-proctored-exam-attempts.underscore
View file @
34a613d1
...
@@ -51,69 +51,77 @@
...
@@ -51,69 +51,77 @@
return template;
return template;
}
}
%>
%>
<ul class="pagination">
<div class="top-header">
<% if (!pagination_info.has_previous){ %>
<div class='search-attempts'>
<li class="disabled">
<input type="text" id="search_attempt_id" placeholder="e.g johndoe or john.do@gmail.com" />
<a aria-label="Previous">
<span class="search"><i class="fa fa-search"></i></span>
<span aria-hidden="true">«</span>
<span><i class="fa fa-refresh"></i></i></span>
</a>
</div>
</li>
<ul class="pagination">
<% } else { %>
<% if (!pagination_info.has_previous){ %>
<li>
<li class="disabled">
<a class="target-link " data-target-url="
<a aria-label="Previous">
<%- interpolate(
<span aria-hidden="true">«</span>
'%(attempt_url)s?page=%(count)s ',
</a>
{
</li>
attempt_url: attempt_url,
<% } else { %>
count: pagination_info.current_page - 1
<li>
},
<a class="target-link " data-target-url="
<%- interpolate(
'%(attempt_url)s?page=%(count)s ',
{
attempt_url: attempt_url,
count: pagination_info.current_page - 1
},
true
) %> "
href="#" aria-label="Previous">
<span aria-hidden="true">«</span>
</a>
</li>
<% }%>
<% for(var n = 1; n <= pagination_info.total_pages; n++) { %>
<li>
<a class="target-link <% if (pagination_info.current_page == n){ %> active <% } %>"
data-target-url="
<%- interpolate(
'%(attempt_url)s?page=%(count)s ',
{
attempt_url: attempt_url,
count: n
},
true
) %>
"
href="#"><%= n %>
</a>
</li>
<% } %>
<% if (!pagination_info.has_next){ %>
<li class="disabled">
<a aria-label="Next">
<span aria-hidden="true">»</span>
</a>
</li>
<% } else { %>
<li>
<a class="target-link" href="#" aria-label="Next" data-target-url="
<%- interpolate(
'%(attempt_url)s?page=%(count)s ',
{
attempt_url: attempt_url,
count: pagination_info.current_page + 1
},
true
true
) %> "
) %> "
href="#" aria-label="Previous"
>
>
<span aria-hidden="true">&l
aquo;</span>
<span aria-hidden="true">&r
aquo;</span>
</a>
</a>
</li>
<% }%>
<% for(var n = 1; n <= pagination_info.total_pages; n++) { %>
<li>
<a class="target-link <% if (pagination_info.current_page == n){ %> active <% } %>"
data-target-url="
<%- interpolate(
'%(attempt_url)s?page=%(count)s ',
{
attempt_url: attempt_url,
count: n
},
true
) %>
"
href="#"><%= n %>
</a>
</li>
</li>
<% } %>
<% }%>
<% if (!pagination_info.has_next){ %>
</ul>
<li class="disabled">
<div class="clearfix"></div>
<a aria-label="Next">
</div>
<span aria-hidden="true">»</span>
</a>
</li>
<% } else { %>
<li>
<a class="target-link" href="#" aria-label="Next" data-target-url="
<%- interpolate(
'%(attempt_url)s?page=%(count)s ',
{
attempt_url: attempt_url,
count: pagination_info.current_page + 1
},
true
) %> "
>
<span aria-hidden="true">»</span>
</a>
</li>
<% }%>
</ul>
<table class="exam-attempts-table">
<table class="exam-attempts-table">
<thead>
<thead>
<tr class="exam-attempt-headings">
<tr class="exam-attempt-headings">
...
...
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