aboutsummaryrefslogtreecommitdiff
path: root/views/add_solutions.hbs
diff options
context:
space:
mode:
Diffstat (limited to 'views/add_solutions.hbs')
-rw-r--r--views/add_solutions.hbs7
1 files changed, 6 insertions, 1 deletions
diff --git a/views/add_solutions.hbs b/views/add_solutions.hbs
index 2865a88..fe90408 100644
--- a/views/add_solutions.hbs
+++ b/views/add_solutions.hbs
@@ -3,10 +3,15 @@
<div class="row" id="solutions-main">
<div class="col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3">
+ {{# if messages.error }}
+ <section class="alert alert-danger custom-Alert">
+ <h4>{{ messages.error }}</h4>
+ </section>
+ {{/if}}
<h3><i class="fa fa-wpforms" aria-hidden="true"></i> Add Solution </h3>
<form action="/user/submit_solution/{{examID}}/{{qID}}" method="post">
<div class="form-group">
- <input type="text" class="form-control" placeholder="Enter Solution" name="solution">
+ <textarea class="form-control" placeholder="Enter solution here..." rows="5" name="solution"></textarea>
</div>
<input type="hidden" name="_csrf" value="{{ csrfToken }}">
<button class="btn btn-primary">Submit</button>