Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MyMovieLibrary
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
MyMovieLibrary
Commits
07b5c481
Commit
07b5c481
authored
11 years ago
by
Nathan Bills
Browse files
Options
Downloads
Patches
Plain Diff
Built the loan page and updated other things.
parent
460f4ef0
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
project/controllers/loan.py
+1
-1
1 addition, 1 deletion
project/controllers/loan.py
project/templates/loan/master.html
+32
-0
32 additions, 0 deletions
project/templates/loan/master.html
project/templates/usernav.html
+1
-1
1 addition, 1 deletion
project/templates/usernav.html
with
34 additions
and
2 deletions
project/controllers/loan.py
+
1
−
1
View file @
07b5c481
...
@@ -6,4 +6,4 @@ from flask.ext.wtf import Form, TextField, validators
...
@@ -6,4 +6,4 @@ from flask.ext.wtf import Form, TextField, validators
@app.route
(
'
/loaned
'
)
@app.route
(
'
/loaned
'
)
@security
(
'
user
'
)
@security
(
'
user
'
)
def
loaned
(
user
=
None
):
def
loaned
(
user
=
None
):
return
render_template
(
'
loan/master.html
'
)
return
render_template
(
'
loan/master.html
'
,
user
=
user
)
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
project/templates/loan/master.html
+
32
−
0
View file @
07b5c481
...
@@ -2,5 +2,37 @@
...
@@ -2,5 +2,37 @@
{% block content %}
{% block content %}
<div
class=
"col-sm-12"
>
<div
class=
"col-sm-12"
>
<h3>
Movies Loaned Out
</h3>
<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>
</div>
{% endblock %}
{% endblock %}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
project/templates/usernav.html
+
1
−
1
View file @
07b5c481
{% extends "index.html" %}
{% extends "index.html" %}
{% block usernav
if user
%}
{% block usernav %}
<p
class=
"navbar-text"
>
Hello, {{ user.email }}
</p>
<p
class=
"navbar-text"
>
Hello, {{ user.email }}
</p>
<ul
class=
"nav navbar-nav navbar-right"
>
<ul
class=
"nav navbar-nav navbar-right"
>
<li><a
href=
"{{ url_for('libraries') }}"
>
Libraries
</a></li>
<li><a
href=
"{{ url_for('libraries') }}"
>
Libraries
</a></li>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment