Skip to content
Snippets Groups Projects
Commit e4802de6 authored by Nathan Bills's avatar Nathan Bills Committed by Brian Wood
Browse files

UPdating the library and movie views and controllers. They are templated with static data.

parent cb96a226
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*-
from project import app
from flask import render_template, request
from flask.ext.wtf import Form, TextField, validators
@app.route('/libraries')
def libraries():
return render_template('library/master.html')
@app.route('/libraries/<libraryName>')
def library(libraryName):
return render_template('library/library.html')
@app.route('/libraries/<libraryName>/<int:movieLibraryIndex>')
def libraryItem(libraryName, movieLibraryIndex):
return render_template('library/libraryItem.html')
......@@ -10,8 +10,4 @@ def movies():
@app.route('/movies/<movieId>')
def movie_item(movieId):
return render_template('movies/movieItem.html')
@app.route('/movies/<collectionId>/<movieId>')
def movie_collection(collectionId, movieId):
return render_template('movies/movieCollection.html')
\ No newline at end of file
return render_template('movies/movie.html')
{% extends "index.html" %}
{% block content %}
<h3>Action 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>
{% endblock %}
\ No newline at end of file
......@@ -3,9 +3,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">
<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">
......
{% extends "index.html" %}
{% block content %}
<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>
<tr>
<td>
<a href="#">Action Movies</a>
</td>
<td>
<p>This is a list of some of my favorite action movies</p>
</td>
<td>
<p>2</p>
</td>
<td>
<button class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-pencil"></span> Edit
</button>
</td>
</tr>
<tr>
<td>
<a href="#">Comedy</a>
</td>
<td>
<p>This is a list of some of my favorite comedy shows and funny movies</p>
</td>
<td>
<p>3</p>
</td>
<td>
<button class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-pencil"></span> Edit
</button>
</td>
</tr>
<tr>
<td>
<a href="#">Family</a>
</td>
<td>
<p>Classic movies that the whole family can watch</p>
</td>
<td>
<p>3</p>
</td>
<td>
<button class="btn btn-default btn-sm">
<span class="glyphicon glyphicon-pencil"></span> Edit
</button>
</td>
</tr>
</tbody>
</table>
{% endblock %}
\ No newline at end of file
{% extends "index.html" %}
{% block content %}
<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>
{% endblock %}
\ No newline at end of file
{% extends "index.html" %}
{% block content %}
<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>
{% 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