-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.html
41 lines (36 loc) · 1.1 KB
/
search.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{% extends "bootstrap/base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% import "bootstrap/fixes.html" as fixes %}
{% import "bootstrap/utils.html" as util %}
{% block title %}This is an example page{% endblock %}
{% block navbar %}
<nav class="navbar navbar-light bg-light">
<a class="navbar-brand" href="#">4111</a>
</nav>
{% endblock %}
{% block content %}
{{ wtf.quick_form(form) }}
{% if results is not none %}
<p>results:</p>
{% if (results|length) == 0 %}
<p>sad. no resutls</p>
{% else %}
<p>click on result to add it! </p>
<table class="table">
<tbody>
{% for result in results %}
<tr>
<th scope="row">
{% if type_field == 'movie' %}
<a href="/add_movie/{{ result['id'] }}">{{ result["title"] }}</a>
{% else %}
<a href="/add_show/{{ result['id'] }}">{{ result["original_name"] }}</a>
{% endif %}
</th>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endif %}
{% endblock %}