aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorHumairAK <humair88@hotmail.com>2016-07-25 09:32:34 +0000
committerHumairAK <humair88@hotmail.com>2016-07-25 09:32:34 +0000
commitc7bec051d61d66925d68be8661aaf52b011dedac (patch)
treef96695e584177a825f89c982adb005a079e78515 /views
parent16b2dab8c2a384ccb95fca048414f33daf3925a8 (diff)
added admin confirmation and alert messages for submissions
Diffstat (limited to 'views')
-rw-r--r--views/admin.hbs12
-rw-r--r--views/user_solutions.hbs15
2 files changed, 23 insertions, 4 deletions
diff --git a/views/admin.hbs b/views/admin.hbs
index b821dc3..12c2ba9 100644
--- a/views/admin.hbs
+++ b/views/admin.hbs
@@ -3,6 +3,18 @@
<div class="row">
<!-- Admin control Panel --->
<div class="col-xs-12 col-sm-12 col-md-8 col-md-offset-2 col-xs-offset-0 col-sm-offset-0 toppad cpnl-details">
+ {{# if messages.success }}
+ <section class="alert alert-success custom-Alert">
+ <!-- Change those to banners later -->
+ <h4>{{ messages.success }}</h4>
+ </section>
+ {{ else }}
+ {{# if messages.error }}
+ <section class="alert alert-danger custom-Alert">
+ <h4>{{ messages.error }}</h4>
+ </section>
+ {{/if}}
+ {{/if}}
<!-- Admin Control Panel Menu -->
<nav class="navbar navbar-custom">
diff --git a/views/user_solutions.hbs b/views/user_solutions.hbs
index db17aa6..fac0301 100644
--- a/views/user_solutions.hbs
+++ b/views/user_solutions.hbs
@@ -1,13 +1,20 @@
<main id="solutions-main">
<div class='search solutions-container container'>
<div>
-
- {{# if messages.error }}
- <section class="alert alert-danger custom-Alert">
- <h5>{{ messages.error }}</h5>
+ {{# if messages.success }}
+ <section class="alert alert-success custom-Alert">
+ <!-- Change those to banners later -->
+ <h4>{{ messages.success }}</h4>
</section>
+ {{ else }}
+ {{# if messages.error }}
+ <section class="alert alert-danger custom-Alert">
+ <h4>{{ messages.error }}</h4>
+ </section>
+ {{/if}}
{{/if}}
+
<!-- Add Solution button and path -->
<div class="row top-sol">
<a href="/user/add_solution/{{examID}}/{{qID}}">