Commit 34a613d1 by Muhammad Shoaib

html for the search box

parent e26509ae
...@@ -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');
......
...@@ -51,6 +51,12 @@ ...@@ -51,6 +51,12 @@
return template; return template;
} }
%> %>
<div class="top-header">
<div class='search-attempts'>
<input type="text" id="search_attempt_id" placeholder="e.g johndoe or john.do@gmail.com" />
<span class="search"><i class="fa fa-search"></i></span>
<span><i class="fa fa-refresh"></i></i></span>
</div>
<ul class="pagination"> <ul class="pagination">
<% if (!pagination_info.has_previous){ %> <% if (!pagination_info.has_previous){ %>
<li class="disabled"> <li class="disabled">
...@@ -114,6 +120,8 @@ ...@@ -114,6 +120,8 @@
</li> </li>
<% }%> <% }%>
</ul> </ul>
<div class="clearfix"></div>
</div>
<table class="exam-attempts-table"> <table class="exam-attempts-table">
<thead> <thead>
<tr class="exam-attempt-headings"> <tr class="exam-attempt-headings">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment