aboutsummaryrefslogtreecommitdiff
path: root/views/index.hbs
diff options
context:
space:
mode:
authorNana Nosirova <nargiza.nosirova@mail.utoronto.ca>2018-07-17 02:44:31 +0000
committerGitHub <noreply@github.com>2018-07-17 02:44:31 +0000
commit77168116122c0c5e37405fddaee785efca414f6e (patch)
tree32a4bcfc6b591e25ca86bb55fafc8f5e75c2a118 /views/index.hbs
parentc9f4e0e9df821c305b9606bd9575d3092384205b (diff)
parent60a53ac331e33cab3173a6803dcf11de3ff47ae6 (diff)
Merge pull request #3 from kdam0/feat/SR-26qa
Feat/SR-26
Diffstat (limited to 'views/index.hbs')
-rw-r--r--views/index.hbs27
1 files changed, 19 insertions, 8 deletions
diff --git a/views/index.hbs b/views/index.hbs
index b77d5d6..4d5f3f7 100644
--- a/views/index.hbs
+++ b/views/index.hbs
@@ -3,7 +3,7 @@
<div class="header-content">
- <form action="/search/courses" method="get" id="search-field">
+ <form action="/" method="get" id="search-field">
<section class="header-content-inner">
<p><strong>The solutions to all your problems</strong></p>
<hr> <!-- Divider -->
@@ -59,13 +59,24 @@
</ul>
</div>
- <!-- Search bar -->
- <input type="text"
- id = "user-input"
- class="form-control"
- aria-label="..."
- name="search"
- placeholder="Enter course name">
+ <!-- Search bar courses (shown by default) -->
+ <div id="custom-autocomplete">
+ <input type="text"
+ id = "user-input-course"
+ class="form-control typeahead"
+ aria-label="..."
+ name="search"
+ placeholder="Enter course code eg. CSC148">
+ </div>
+ <!-- Search bar users (hidden by default) -->
+ <input type="text"
+ id = "user-input-users"
+ class="form-control"
+ aria-label="..."
+ name="search"
+ placeholder="Enter user info"
+ style="display:none">
+
<!-- Prompt Search -->
<span class="input-group-btn">
<button id = 'go-button'