aboutsummaryrefslogtreecommitdiffstats
path: root/templates/search.html.j2
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2023-05-05 15:58:07 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2023-05-05 15:58:07 +0100
commit8a058ac45e6ef5a4c7cd7141332b7951bc01f49c (patch)
tree054ebf8ceb2f5f55cb4617e6a4abded57825d464 /templates/search.html.j2
parent5dd5ed8757c36a91e5031a3a55ea8a4291714691 (diff)
downloadUKGenderPayGap-8a058ac45e6ef5a4c7cd7141332b7951bc01f49c.tar.gz
UKGenderPayGap-8a058ac45e6ef5a4c7cd7141332b7951bc01f49c.zip
Finished search bar, started adding <div>s for chart content
Diffstat (limited to 'templates/search.html.j2')
-rw-r--r--templates/search.html.j216
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/search.html.j2 b/templates/search.html.j2
new file mode 100644
index 0000000..4de432c
--- /dev/null
+++ b/templates/search.html.j2
@@ -0,0 +1,16 @@
+{% extends "template.html.j2" %}
+{% block content %}
+ <div id="search">
+ {% if companies == [] %}
+ <a>There were no results for that search. Please refine your search.</a>
+ {% else %}
+ <ul>
+ {% for name, id_ in companies %}
+ <li>
+ <a href="{{ '/company/%s' % id_ }}">{{ name }}</a>
+ </li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ </div>
+{% endblock %} \ No newline at end of file