diff options
| author | HumairAK <humair88@hotmail.com> | 2016-07-25 09:32:34 +0000 |
|---|---|---|
| committer | HumairAK <humair88@hotmail.com> | 2016-07-25 09:32:34 +0000 |
| commit | c7bec051d61d66925d68be8661aaf52b011dedac (patch) | |
| tree | f96695e584177a825f89c982adb005a079e78515 /views/user_solutions.hbs | |
| parent | 16b2dab8c2a384ccb95fca048414f33daf3925a8 (diff) | |
added admin confirmation and alert messages for submissions
Diffstat (limited to 'views/user_solutions.hbs')
| -rw-r--r-- | views/user_solutions.hbs | 15 |
1 files changed, 11 insertions, 4 deletions
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}}"> |
