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..18204e2d0cfbfbd5d1114a775aa17840db55a2f3 100644 --- a/project/templates/loan/master.html +++ b/project/templates/loan/master.html @@ -2,5 +2,58 @@ {% 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> + <!-- Maybe this can link to a modal that shows more information about the borrower??? --> + <p><a href="#">Brian Wood</a></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> + <tr> + <td> + <p>Frozen</p> + </td> + <td> + <!-- Maybe this can link to a modal that shows more information about the borrower??? --> + <p><a href="#">Grandma Bills</a></p> + </td> + <td> + <p>Sun, April 20, 2014</p> + </td> + <td> + <p>Sun, May 4, 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