aboutsummaryrefslogtreecommitdiff
path: root/views/add_solutions.hbs
diff options
context:
space:
mode:
authornanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-27 09:58:01 +0000
committernanalelfe <nargiza.nosirova@mail.utoronto.ca>2016-07-27 09:58:01 +0000
commite0c52738c6495490ce6c5f8fff0d9ad14a6a944f (patch)
tree61ef58698d17d2aeb4d5f457acf8d4b08e39ff01 /views/add_solutions.hbs
parent197e17a7bcbb5459897b7f334a790706c064c31c (diff)
Fixed so that cannot submit empty solution. Changed to textarea to type in solution.
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>