summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorCruiseDevice2020-04-26 22:21:41 +0530
committerCruiseDevice2020-04-26 22:21:41 +0530
commite261686554ad339449ba9fec6c2391faaefc0eff (patch)
treeaf0b9a23ab349ff4db69d852a6d7a0a40308b1e0 /yaksh/templates
parent058724fb4b78774d8caeb2c0fbf53257ab00def7 (diff)
downloadonline_test-e261686554ad339449ba9fec6c2391faaefc0eff.tar.gz
online_test-e261686554ad339449ba9fec6c2391faaefc0eff.tar.bz2
online_test-e261686554ad339449ba9fec6c2391faaefc0eff.zip
Add search bar in forum to search posts
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/course_forum.html28
1 files changed, 21 insertions, 7 deletions
diff --git a/yaksh/templates/yaksh/course_forum.html b/yaksh/templates/yaksh/course_forum.html
index bf098d3..dea4d8f 100644
--- a/yaksh/templates/yaksh/course_forum.html
+++ b/yaksh/templates/yaksh/course_forum.html
@@ -9,13 +9,27 @@
<h2><center>{{course.name}}</center></h2>
<center>Discussion Forum</center>
</div>
- {% if moderator %}
- <a href="{% url 'yaksh:course_detail' course.id %}" class="btn btn-primary">Back to Course</a>
- {% else %}
- <a href="{% url 'yaksh:course_modules' course.id %}" class="btn btn-primary">Back to Course</a>
- {% endif %}
- <div class="pull-right">
- <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#newPostModal">New Post</button>
+ <div class="d-flex p-2 bd-highlight">
+ <div class="col-md-4">
+ {% if moderator %}
+ <a href="{% url 'yaksh:course_detail' course.id %}" class="btn btn-primary">Back to Course</a>
+ {% else %}
+ <a href="{% url 'yaksh:course_modules' course.id %}" class="btn btn-primary">Back to Course</a>
+ {% endif %}
+ </div>
+ <div class="col-md-4">
+ <form class="my-2 my-lg-0" action="" method="GET">
+ <div class="input-group">
+ <input type="search" placeholder="Search" name="search" class="form-control">
+ <span class="input-group-append">
+ <button class="btn btn-outline-info" type="submit"><i class="fa fa-search"></i>&nbsp;Search</button>
+ </span>
+ </div>
+ </form>
+ </div>
+ <div class="col-md-4">
+ <button type="button" class="btn btn-primary pull-right" data-toggle="modal" data-target="#newPostModal">New Post</button>
+ </div>
</div>
<!-- Modal -->
<div id="newPostModal" class="modal fade" role="dialog">