Skip to content
Snippets Groups Projects
Commit 00b11aa0 authored by Nathan Bills's avatar Nathan Bills
Browse files

Merge pull request #7 from ndbills/develop

Pulling develop into master
parents 72827c83 07b5c481
No related branches found
No related tags found
No related merge requests found
{% extends "usernav.html" %}
{% block content %}
<div class="col-sm-12">
<h3>My Libraries</h3>
<table class="table table-striped table-hover">
<thead>
<tr>
<td>Library</td>
<td>Summary</td>
<td>Movie Count</td>
<td>Options</td>
</tr>
</thead>
<tbody>
{% for library in libraries %}
<tr class='clickable' data-name='{{ library.name }}'>
<td>
<a href="#">{{ library.name }}</a>
</td>
<td>
{{ library.summary }}
</td>
<td>
{{ library.collection|length }}
</td>
<td>
<button class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-pencil"></span> Edit
</button>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}
{% block javascript %}
<script>
$(function(){
var libraryPath = '{{ url_for('library', name='__lib__') }}';
$('.clickable').on('click',function(){
var libname = $(this).data('name');
window.document.location = libraryPath.replace('__lib__',libname);
})
})(jQuery);
</script>
{% endblock %}
\ No newline at end of file
{% extends "usernav.html" %}
{% 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
{% extends "index.html" %}
{% block content %}
<!-- Login -->
<div class="col-sm-12">
<div class="col-xs-6 col-md-6">
{% if error %}
<div class="alert alert-danger">
{{ error }}
</div>
{% endif %}
<div class="col-sm-offset-3 col-sm-12">
<h3>Login</h3>
</div>
<form class="form-horizontal" role="form" method="post" action="{{ url_for('login') }}">
<div class="form-group">
<label for="userEmail" class="col-sm-3 control-label">Email</label>
<div class="col-xs-9 col-md-6">
<input type="email" class="form-control" id="userEmail" name="email" placeholder="Email address">
</div>
</div>
<div class="form-group">
<label for="userPassword" class="col-sm-3 control-label">Password</label>
<div class="col-xs-9 col-md-6">
<input type="password" class="form-control" id="userPassword" name="password" placeholder="Password">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-3 col-sm-10">
<button type="submit" class="btn btn-default">Login</button>
</div>
</div>
</form>
</div>
</div>
{% endblock %}
\ No newline at end of file
{% extends "index.html" %}
{% block content %}
<!-- Sign-up -->
<div class="col-sm-12">
<div class="col-xs-6 col-md-6">
{% if error %}
<div class="alert alert-danger">
{{ error }}
</div>
{% endif %}
<div class="col-sm-offset-3 col-sm-12">
<h3>Sign-up</h3>
</div>
<form class="form-horizontal" role="form" method="post" action="{{ url_for('signup') }}">
<div class="form-group">
<label for="userEmail" class="col-sm-3 control-label">Email</label>
<div class="col-xs-9 col-md-6">
<input type="email" class="form-control" id="userEmail" name="email" placeholder="Email address">
</div>
</div>
<div class="form-group">
<label for="userPassword" class="col-sm-3 control-label">Password</label>
<div class="col-xs-9 col-md-6">
<input type="password" class="form-control" id="userPassword" name="password" placeholder="Password">
</div>
</div>
<div class="form-group">
<label for="userPasswordConfirm" class="col-sm-3 control-label">Confirm Password</label>
<div class="col-xs-9 col-md-6">
<input type="password" class="form-control" id="userPasswordConfirm" name="passwordConfirm" placeholder="Password">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-3 col-sm-9">
<button type="submit" class="btn btn-default">Sign up</button>
</div>
</div>
</form>
</div>
</div>
{% endblock %}
\ No newline at end of file
{% extends "usernav.html" %}
{% block content %}
<div class="col-sm-12">
<h3>My Movies</h3>
<table class="table table-striped table-hover">
<thead>
<tr>
<td>Movie</td>
<td>Summary</td>
<td>Rating</td>
<td>Options</td>
</tr>
</thead>
<tbody>
<tr>
<td>
<!--<img data-src="holder.js/165x200/sky" alt="movie title">-->
<img src="http://1.bp.blogspot.com/__cfySUj2yhk/TKE8n5fJo4I/AAAAAAAAAnY/Vwf39Hilx2Y/s1600/Bourne_Identity.jpg" style="max-width: 200px;" alt="The Bourne Identity">
<p>The Bourne Identity</p>
</td>
<td>
<p>A man is picked up by a fishing boat, bullet-riddled and without memory, then races to elude assassins and recover from amnesia.</p>
</td>
<td>
<p>7.9/10</p>
</td>
<td>
<button class="btn btn-info btn-sm">
<span class="glyphicon glyphicon-hand-right"></span> Lend
</button>
<button class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-pencil"></span> Edit
</button>
</td>
</tr>
<tr>
<td>
<img src="http://www.eeriedigest.com/wordpress/wp-content/uploads/2011/08/bourne-supremacy.jpg" style="max-width: 200px;" alt="The Bourne Supremacy">
<p>The Bourne Supremacy</p>
</td>
<td>
<p>When Jason Bourne is framed for a CIA operation gone awry, he is forced to resume his former life as a trained assassin to survive.</p>
</td>
<td>
<p>7.8/10</p>
</td>
<td>
<button class="btn btn-info btn-sm">
<span class="glyphicon glyphicon-hand-right"></span> Lend
</button>
<button class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-pencil"></span> Edit
</button>
</td>
</tr>
</tbody>
</table>
</div>
{% endblock %}
\ No newline at end of file
{% extends "usernav.html" %}
{% block content %}
<div class="col-sm-12">
<div class="row">
<div class="col-xs-12 col-sm-3 col-md-2">
<img data-src="holder.js/100%x200/sky" alt="movie title">
<button type="button" class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-pencil"></span> Edit
</button>
<button type="button" class="btn btn-warning btn-sm">
<span class="glyphicon glyphicon-remove"></span> Remove
</button>
</div>
<div class="col-xs-12 col-sm-3 col-md-2">
<ul class="list-unstyled">
<li>Movie Title</li>
<li>Director(s)</li>
<li>Actors (truncated)</li>
<li>Producers</li>
<li>Composer</li>
</ul>
</div>
<div class="col-xs-12 col-sm-6 col-md-8">
<h2>Summary</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eget metus vitae mi interdum tristique. Integer malesuada quam tincidunt, gravida nisi vehicula, auctor mi. Morbi fermentum, neque quis adipiscing placerat, odio nunc consequat ligula, vel sagittis nisl orci id risus. Aliquam hendrerit, elit a molestie suscipit, eros tortor scelerisque odio, sit amet cursus ligula lorem et turpis. Pellentesque ante metus, suscipit id blandit eget, vehicula quis tortor. Aliquam a pharetra enim. Morbi in purus sit amet nulla egestas consectetur. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla diam nulla, iaculis lobortis varius at, auctor malesuada enim. Donec a nisl eget ligula rhoncus fermentum.</p>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-md-12">
<h3>Movie Reviews</h3>
<p>Coming Soon!</p>
</div>
</div>
</div>
{% endblock %}
\ No newline at end of file
{% extends "index.html" %}
{% 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>
<li><a href="{{ url_for('movies') }}">Movies</a></li>
<li><a href="{{ url_for('loaned') }}">Loaned Out</a></li>
<li><a href="{{ url_for('logout') }}">Logout</a></li>
</ul>
{% endblock %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment