aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorWaref Haque <warefhaque@Warefs-MacBook-Pro.local>2016-07-26 04:13:04 +0000
committerWaref Haque <warefhaque@Warefs-MacBook-Pro.local>2016-07-26 04:13:04 +0000
commit91a62e2808bdb17f787a5b234599c838d4fd5220 (patch)
tree0cb8d3d44d9cbde0e0f9e793ff69df38433df3b2 /views
parent5e73fe37c32faf821d3d16f0251007e366cb090b (diff)
search bar validation
Diffstat (limited to 'views')
-rw-r--r--views/index.hbs28
1 files changed, 27 insertions, 1 deletions
diff --git a/views/index.hbs b/views/index.hbs
index c3cbeab..6dffef9 100644
--- a/views/index.hbs
+++ b/views/index.hbs
@@ -1,4 +1,6 @@
<header>
+
+
<div class="header-content">
<form action="/search/courses" method="get" id="search-field">
@@ -7,7 +9,31 @@
<hr> <!-- Divider -->
<div class="search col-md-8 col-lg-8 col-md-offset-2">
<!-- Search-bar, Drop-down and Prompt -->
- <div class="input-group">
+
+ {{# if success }}
+ <section class="alert alert-success">
+ <!-- Change those to banners later -->
+ <h2>Signup Successful!</h2>
+ </section>
+ {{ else }}
+ {{# if errors }}
+ <section class="alert alert-danger">
+ <ul>
+ {{# each errors }}
+ <li>{{ this.msg }}</li>
+ {{/each}}
+ </ul>
+ </section>
+ {{/if}}
+ {{/if}}
+ {{#if flashMsg}}
+ <section class="alert alert-danger">
+ {{flashMsg}}
+ </section>
+ {{/if}}
+
+
+ <div class="input-group">
<!-- Search Category Drop-Down -->
<div class="input-group-btn">
<button type="button"