From d04aa0409031552e6abce4981938804333e6e626 Mon Sep 17 00:00:00 2001 From: Candace Lebby Date: Fri, 6 Oct 2023 09:24:54 +0100 Subject: [PATCH 1/5] initial commit of search feauture --- .flaskenv | 2 +- app/templates/main/search.html | 44 ++++++++++++++++++++++++---------- 2 files changed, 33 insertions(+), 13 deletions(-) diff --git a/.flaskenv b/.flaskenv index efee604a..ff35ad09 100644 --- a/.flaskenv +++ b/.flaskenv @@ -6,7 +6,7 @@ FLASK_APP=govuk-frontend-flask.py FLASK_DEBUG=True FLASK_RUN_PORT=5000 REDIS_URL=memory:// -SECRET_KEY= +SECRET_KEY= njndfnk342 SERVICE_NAME="AYR - Access Your Records" SERVICE_PHASE="BETA" SERVICE_URL="https://ayr.nationalarchives.gov.uk/" diff --git a/app/templates/main/search.html b/app/templates/main/search.html index e0b403f8..69b91d76 100644 --- a/app/templates/main/search.html +++ b/app/templates/main/search.html @@ -7,35 +7,55 @@ {% block content %}
-
+
{{ super() }} -

Search

+

Search for records

+

Search for digital-born records transfered to The National Archives

-
+
+ + + + + + +
-

- Filter -

-
+ + +
+
- +
+
- + +
+
+
-
+ +
+ +
+ + {% endblock %} \ No newline at end of file From 495d645d623c3a7339a64e5a5afc1b1e4f09c847 Mon Sep 17 00:00:00 2001 From: Candace Lebby Date: Fri, 6 Oct 2023 11:11:45 +0100 Subject: [PATCH 2/5] .flaskenv file added to .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index d0692722..4e94e4c0 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ instance/* !instance/.gitignore .webassets-cache .env +.flaskenv ### Flask.Python Stack ### # Byte-compiled / optimized / DLL files From cfa067e5266093278fc9ff49d91df12cfaafc64c Mon Sep 17 00:00:00 2001 From: Colin B Date: Fri, 6 Oct 2023 11:17:28 +0100 Subject: [PATCH 3/5] Remove flask env file --- .flaskenv | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 .flaskenv diff --git a/.flaskenv b/.flaskenv deleted file mode 100644 index ff35ad09..00000000 --- a/.flaskenv +++ /dev/null @@ -1,12 +0,0 @@ -CONTACT_EMAIL=[contact email] -CONTACT_PHONE=[contact phone] -DEPARTMENT_NAME="The National Archives" -DEPARTMENT_URL="https://www.nationalarchives.gov.uk/" -FLASK_APP=govuk-frontend-flask.py -FLASK_DEBUG=True -FLASK_RUN_PORT=5000 -REDIS_URL=memory:// -SECRET_KEY= njndfnk342 -SERVICE_NAME="AYR - Access Your Records" -SERVICE_PHASE="BETA" -SERVICE_URL="https://ayr.nationalarchives.gov.uk/" From 3746a4e2f30cc3be27f9749cb5e48ca46cf9c81a Mon Sep 17 00:00:00 2001 From: Candace Lebby Date: Fri, 6 Oct 2023 16:21:44 +0100 Subject: [PATCH 4/5] Removed advanced search link --- app/templates/main/search.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/templates/main/search.html b/app/templates/main/search.html index 69b91d76..4722dbff 100644 --- a/app/templates/main/search.html +++ b/app/templates/main/search.html @@ -28,9 +28,7 @@

Search for records

- +
- +
-{% endblock %} \ No newline at end of file +{% endblock %}