aboutsummaryrefslogtreecommitdiff
path: root/views/index.hbs
diff options
context:
space:
mode:
Diffstat (limited to 'views/index.hbs')
-rw-r--r--views/index.hbs33
1 files changed, 32 insertions, 1 deletions
diff --git a/views/index.hbs b/views/index.hbs
index c3cbeab..214695b 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,36 @@
<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 messages.error }}
+ <section class="alert alert-danger custom-Alert">
+ <h4>{{ messages.error }}</h4>
+ </section>
+ {{/if}}
+
+ {{# 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"