summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhardythe12014-08-25 17:13:14 +0530
committerhardythe12014-08-25 17:13:14 +0530
commit694b28b33fd82c381c2bac3cc7207f611d17e039 (patch)
tree795b70a524835faa810c258028cd2c51b5474220
parentb58275a1257e5f6e5e161b507b7a1fd9ca8055d1 (diff)
downloadPython-TBC-Interface-694b28b33fd82c381c2bac3cc7207f611d17e039.tar.gz
Python-TBC-Interface-694b28b33fd82c381c2bac3cc7207f611d17e039.tar.bz2
Python-TBC-Interface-694b28b33fd82c381c2bac3cc7207f611d17e039.zip
adding table
-rw-r--r--tbc/templates/tbc/completed_books.html19
1 files changed, 14 insertions, 5 deletions
diff --git a/tbc/templates/tbc/completed_books.html b/tbc/templates/tbc/completed_books.html
index 1acec9e..dead5d2 100644
--- a/tbc/templates/tbc/completed_books.html
+++ b/tbc/templates/tbc/completed_books.html
@@ -33,11 +33,20 @@ function submitCategory()
</select>
</form>
</center>
- <ol>
- {% for book in completed_books %}
- <li><a href="{% url 'tbc:BookDetails' book.id %}">{{ book.title }} by {{ book.author }}</a></li>
- {% endfor %}
- </ol>
+ <table class="table table-bordered table-hover">
+ <th>Sr #</th>
+ <th>Book</th>
+ <tr>
+ <td>
+ {{ forloop.counter }}
+ </td>
+ <td>
+ {% for book in completed_books %}
+ <li><a href="{% url 'tbc:BookDetails' book.id %}">{{ book.title }} by {{ book.author }}</a></li>
+ {% endfor %}
+ </td>
+ </tr>
+ </table>
<hr>