diff options
Diffstat (limited to 'views/index.hbs')
| -rw-r--r-- | views/index.hbs | 27 |
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' |
