diff options
| author | HumairAK <humair88@hotmail.com> | 2016-07-27 00:49:21 +0000 |
|---|---|---|
| committer | HumairAK <humair88@hotmail.com> | 2016-07-27 00:49:21 +0000 |
| commit | 7e30cb0b87d8ead0b4746238c533630f252619ef (patch) | |
| tree | a19851ef823fa4c48aea9d267a1cb3c8adbcac84 /views | |
| parent | 20220f9c3cf0cf8e1efbe850aba4a99f23d9a0cb (diff) | |
fixed csrf and redirect issues with follow exam
Diffstat (limited to 'views')
| -rw-r--r-- | views/questions.hbs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/views/questions.hbs b/views/questions.hbs index e5bf21d..1d62a2b 100644 --- a/views/questions.hbs +++ b/views/questions.hbs @@ -1,9 +1,14 @@ <main id = 'solutions-main'> <div class = 'search container' id = 'solutions-div'> - <!-- EXAM DETAILS --> + <!-- EXAM DETAILS --> + {{# if messages.error }} + <section class="alert alert-danger custom-Alert"> + <h4>{{ messages.error }}</h4> + </section> + {{/if}} - <form action="/user/follow_exam/{{../examInfo.id}}" method = 'post'> + <form action="/user/follow_exam/{{examInfo.id}}" method = 'post'> <input type="hidden" name="_csrf" value="{{ csrfToken }}"> <button class="col-xs-4 col-sm-2 col-md-2 col-lg-2 col-xs-offset-4 col-sm-offset-5 col-md-offset-2 |
