From aaf1c40d86d8382040ff08ea3ad7b54809a624ff Mon Sep 17 00:00:00 2001 From: navanchauhan Date: Sun, 22 May 2022 11:40:12 -0600 Subject: added flask templates --- templates/base.html | 39 +++++++++++++++++++++++++++++++++++++++ templates/index.html | 12 ++++++++++++ templates/same_titles.html | 15 +++++++++++++++ templates/show_results.html | 24 ++++++++++++++++++++++++ 4 files changed, 90 insertions(+) create mode 100644 templates/base.html create mode 100644 templates/index.html create mode 100644 templates/same_titles.html create mode 100644 templates/show_results.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..3a77b53 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,39 @@ + + + + + {% block title %} {% endblock %} - FlixRec + + + + + + + +
+
+ {% block content %} {% endblock %} +
+ \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..402675e --- /dev/null +++ b/templates/index.html @@ -0,0 +1,12 @@ +{% extends 'base.html' %} + +{% block content %} +

{% block title %} Home {% endblock %}

+
+
+

Enter Movie Title:

+

+
+
+ +{% endblock %} \ No newline at end of file diff --git a/templates/same_titles.html b/templates/same_titles.html new file mode 100644 index 0000000..b528020 --- /dev/null +++ b/templates/same_titles.html @@ -0,0 +1,15 @@ +{% extends 'base.html' %} + +{% block content %} +

{% block title %} Multiple Results {% endblock %}

+

Multiple results found, please select the correct movie title.

+
+ {% for deet in deets %} +

{{deet["title"]}} ({{deet["year"]}})

+

Select This One

+

+ {{deet["overview"]}} +

+ {% endfor %} +
+{% endblock %} \ No newline at end of file diff --git a/templates/show_results.html b/templates/show_results.html new file mode 100644 index 0000000..bd1b0a1 --- /dev/null +++ b/templates/show_results.html @@ -0,0 +1,24 @@ +{% extends 'base.html' %} + +{% block content %} +

{% block title %} Results {% endblock %}

+
+ {% for deet in deets %} +

{{deet["title"]}} ({{deet["year"]}})

+ {{deet["tagline"]}} - {{deet["runtime"]}} min +

+ {{deet["overview"]}} +

+ {% endfor %} +

Advance Filters

+
+

+

Minimum Year

+

Maximum Year

+

Minimum Runtime

+

Maximum Runtime

+

+

+
+
+{% endblock %} \ No newline at end of file -- cgit v1.2.3