diff --git a/project/controllers/loan.py b/project/controllers/loan.py index 9912213bf885e49ece5b0f7c526d38a7f1a6e903..52ab879febe58a114386fbddcc955cd7390784a0 100644 --- a/project/controllers/loan.py +++ b/project/controllers/loan.py @@ -6,4 +6,4 @@ from flask.ext.wtf import Form, TextField, validators @app.route('/loaned') @security('user') def loaned(user=None): - return render_template('loan/master.html') \ No newline at end of file + return render_template('loan/master.html', user=user) \ No newline at end of file diff --git a/project/templates/loan/master.html b/project/templates/loan/master.html index 31c08e6f1cdeeb0e6fccbd79f9d206b9ba340680..d0318605d0cd1a586f59619749941840ea21fc44 100644 --- a/project/templates/loan/master.html +++ b/project/templates/loan/master.html @@ -2,5 +2,37 @@ {% block content %} <div class="col-sm-12"> <h3>Movies Loaned Out</h3> + <table class="table table-striped table-hover"> + <thead> + <tr> + <td>Movie</td> + <td>Borrower</td> + <td>Date Borrowed</td> + <td>Due Date</td> + <td>Options</td> + </tr> + </thead> + <tbody> + <tr> + <td> + <p>The Bourne Identity</p> + </td> + <td> + <p>Brian Wood</p> + </td> + <td> + <p>Thur, April 17, 2014/p> + </td> + <td> + <p>Thur, May 1, 2014</p> + </td> + <td> + <button class="btn btn-default btn-sm"> + <span class="glyphicon glyphicon-hand-down"></span> Return + </button> + </td> + </tr> + </tbody> + </table> </div> {% endblock %} \ No newline at end of file diff --git a/project/templates/usernav.html b/project/templates/usernav.html index 56e88bbe5101bbb1ef786c18a7deb2454b91569d..b875e665e3537b8b35ca4c01e21d8492313ce3ba 100644 --- a/project/templates/usernav.html +++ b/project/templates/usernav.html @@ -1,6 +1,6 @@ {% extends "index.html" %} -{% block usernav if user %} +{% block usernav %} <p class="navbar-text">Hello, {{ user.email }}</p> <ul class="nav navbar-nav navbar-right"> <li><a href="{{ url_for('libraries') }}">Libraries</a></li>