diff options
author | adityacp | 2020-01-03 11:33:10 +0530 |
---|---|---|
committer | adityacp | 2020-01-03 11:33:10 +0530 |
commit | 0a74cf7b9f60cb5acafd5654d0543bbbbf26574f (patch) | |
tree | b9647e7561dc4a0eed588cc7d07987814e847151 /yaksh | |
parent | 664fa46ba041ebdc5912a3bf125056bbc52b1f95 (diff) | |
download | online_test-0a74cf7b9f60cb5acafd5654d0543bbbbf26574f.tar.gz online_test-0a74cf7b9f60cb5acafd5654d0543bbbbf26574f.tar.bz2 online_test-0a74cf7b9f60cb5acafd5654d0543bbbbf26574f.zip |
Add fontawesome icons in questions page and change add question button position
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/templates/yaksh/ajax_question_filter.html | 5 | ||||
-rw-r--r-- | yaksh/templates/yaksh/showquestions.html | 15 |
2 files changed, 14 insertions, 6 deletions
diff --git a/yaksh/templates/yaksh/ajax_question_filter.html b/yaksh/templates/yaksh/ajax_question_filter.html index 7dba6df..18f14ff 100644 --- a/yaksh/templates/yaksh/ajax_question_filter.html +++ b/yaksh/templates/yaksh/ajax_question_filter.html @@ -15,6 +15,11 @@ }); }); </script> + <br> + <a class="btn btn-lg btn-success" href="{% url 'yaksh:add_question' %}"> + <i class="fa fa-plus-circle"></i> Add Question + </a> + <br><br> {% if questions %} {% include "yaksh/paginator.html" %} diff --git a/yaksh/templates/yaksh/showquestions.html b/yaksh/templates/yaksh/showquestions.html index c9a7690..4216d94 100644 --- a/yaksh/templates/yaksh/showquestions.html +++ b/yaksh/templates/yaksh/showquestions.html @@ -49,7 +49,8 @@ <form action="" method="post" enctype="multipart/form-data"> {% csrf_token %} <div class="form-group col-md-6"> - <a class="btn btn-lg btn-primary" href="{% url 'yaksh:download_yaml_template' %}">Download Template</a> + <a class="btn btn-lg btn-primary" href="{% url 'yaksh:download_yaml_template' %}"> + <i class="fa fa-download"></i> Download Template</a> <br><br> <h4> Or </h4> <br> @@ -61,7 +62,7 @@ </label> </div> </div> - <button class="btn btn-lg btn-success" type="submit" name="upload" value="upload">Upload File</button> + <button class="btn btn-lg btn-success" type="submit" name="upload" value="upload"><i class="fa fa-upload"></i> Upload File</button> </div> <script> $('#id_file').on('change',function(){ @@ -145,6 +146,9 @@ </div> </div> <div id="filtered-questions"> + <br> + <a class="btn btn-lg btn-success" href="{% url 'yaksh:add_question' %}"> + <i class="fa fa-plus-circle"></i> Add Question</a> {% if questions %} <div> <br> @@ -183,13 +187,12 @@ </div> <br> <center> - <a class="btn btn-lg btn-primary" href="{% url 'yaksh:add_question' %}">Add Question</a> - {% if questions %} - <button class="btn btn-lg btn-primary" type="submit" name='download' value='download'>Download Selected</button> + <button class="btn btn-lg btn-primary" type="submit" name='download' value='download'><i class="fa fa-download"></i> Download Selected</button> <button class="btn btn-lg btn-primary" type="submit" name="test" value="test">Test Selected</button> {% endif %} - <button class="btn btn-lg btn-danger" type="submit" onClick="return confirm_delete(frm);" name='delete' value='delete'>Delete Selected</button> + <button class="btn btn-lg btn-danger" type="submit" onClick="return confirm_delete(frm);" name='delete' value='delete'> + <i class="fa fa-trash"></i> Delete Selected</button> </center> </form> </div> |