{% extends "dash.html" %} {% set active_page = "books" %} {% block head %} {% endblock %} {% block content %}

Welcome {{ current_user.username }}. Find the book list below:

{% for book in books %} {% if current_user.is_admin() or current_user.id == book.addedby.id %} {% else %} {% endif %} {% endfor %}
Book Title Author ISBN Price Added by Edit Delete
{{ book.title }} {{ book.author }} {{ book.isbn }} Rs {{ book.price }} {{ book.addedby.username }}Edit Delete- -
{% endblock %}