|
|
|
@ -7,7 +7,6 @@ |
|
|
|
{% block content %} |
|
|
|
{% block content %} |
|
|
|
{% if view_data|length == 0 %} |
|
|
|
{% if view_data|length == 0 %} |
|
|
|
<form method="post" action=""> |
|
|
|
<form method="post" action=""> |
|
|
|
<label for="query">Search for movie</label> |
|
|
|
|
|
|
|
<input name="query" id="query"> |
|
|
|
<input name="query" id="query"> |
|
|
|
<input type="submit" value="Search"> |
|
|
|
<input type="submit" value="Search"> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
@ -16,6 +15,11 @@ |
|
|
|
<h2>Query Results</h2> |
|
|
|
<h2>Query Results</h2> |
|
|
|
{% for r in view_data %} |
|
|
|
{% for r in view_data %} |
|
|
|
<div class="search_result"> |
|
|
|
<div class="search_result"> |
|
|
|
|
|
|
|
{% if r.poster_path != None and r.poster_path != '' %} |
|
|
|
|
|
|
|
<img class="result_image" src="{{ '/pvdb/tmdb/images' + r.poster_path }}" /> |
|
|
|
|
|
|
|
{% else %} |
|
|
|
|
|
|
|
<img class="result_image" src="{{ url_for('static', filename='no_poster_w154.jpg') }}" /> |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
<h3><a href="{{ r.tmdb_link }}">{{ r.title }}</a></h3> |
|
|
|
<h3><a href="{{ r.tmdb_link }}">{{ r.title }}</a></h3> |
|
|
|
<ul> |
|
|
|
<ul> |
|
|
|
<li>Release Date: {{ r.release_date }}</li> |
|
|
|
<li>Release Date: {{ r.release_date }}</li> |
|
|
|
|