From c1c70ba995ae6f9e1745b799c57afca48d615814 Mon Sep 17 00:00:00 2001 From: chris48s Date: Thu, 5 Sep 2024 14:37:46 +0100 Subject: [PATCH] run djhtml --- .../templates/api_docs/api_docs_base.html | 6 +- .../api_docs/templates/api_docs/concepts.html | 20 +-- .../templates/frontend/widget_view.html | 122 +++++++++--------- .../users/templates/users/delete_key.html | 18 +-- .../users/templates/users/refresh_key.html | 18 +-- 5 files changed, 92 insertions(+), 92 deletions(-) diff --git a/ec_api/apps/api_docs/templates/api_docs/api_docs_base.html b/ec_api/apps/api_docs/templates/api_docs/api_docs_base.html index 13c1686..1cb0efe 100644 --- a/ec_api/apps/api_docs/templates/api_docs/api_docs_base.html +++ b/ec_api/apps/api_docs/templates/api_docs/api_docs_base.html @@ -24,8 +24,8 @@ {% block content %} -{% block api_docs_content %} - {% include 'api_docs/docs_parent.html' %} -{% endblock %} + {% block api_docs_content %} + {% include 'api_docs/docs_parent.html' %} + {% endblock %} {% endblock %} diff --git a/ec_api/apps/api_docs/templates/api_docs/concepts.html b/ec_api/apps/api_docs/templates/api_docs/concepts.html index e71c9ea..f76b018 100644 --- a/ec_api/apps/api_docs/templates/api_docs/concepts.html +++ b/ec_api/apps/api_docs/templates/api_docs/concepts.html @@ -43,11 +43,11 @@

High level concepts

Case 1: Results after address picker shown
- sequenceDiagram - Client->>+API: Postcode lookup to /api/postcode/{postcode} - API->>+Client: Address picker with UPRNs - Client->>+API: UPRN lookup to /api/address/{UPRN} - API->>+Client: Results + sequenceDiagram + Client->>+API: Postcode lookup to /api/postcode/{postcode} + API->>+Client: Address picker with UPRNs + Client->>+API: UPRN lookup to /api/address/{UPRN} + API->>+Client: Results
@@ -55,11 +55,11 @@

High level concepts

Case 2: Results direct from postcode
- sequenceDiagram - Client->>+API: Postcode lookup to /api/postcode/{postcode} - API->>+Client: Address picker with UPRNs - Client->>+API: UPRN lookup to /api/address/{UPRN} - API->>+Client: Results + sequenceDiagram + Client->>+API: Postcode lookup to /api/postcode/{postcode} + API->>+Client: Address picker with UPRNs + Client->>+API: UPRN lookup to /api/address/{UPRN} + API->>+Client: Results
diff --git a/ec_api/apps/frontend/templates/frontend/widget_view.html b/ec_api/apps/frontend/templates/frontend/widget_view.html index 88547b0..c6142d3 100644 --- a/ec_api/apps/frontend/templates/frontend/widget_view.html +++ b/ec_api/apps/frontend/templates/frontend/widget_view.html @@ -7,12 +7,12 @@

Election lookup widget

voting in their area. By entering their postcode, your users can quickly access information on the following:

    -
  • Upcoming elections, including the election type and date
  • -
  • Polling station information, including address
  • -
  • Candidate information
  • -
  • Contact details for electoral services teams at local councils, and electoral registration offices in - Scotland – useful for submitting postal or proxy vote application forms -
  • +
  • Upcoming elections, including the election type and date
  • +
  • Polling station information, including address
  • +
  • Candidate information
  • +
  • Contact details for electoral services teams at local councils, and electoral registration offices in + Scotland – useful for submitting postal or proxy vote application forms +

You can add the Electoral Commission’s election lookup widget to any website.

Here’s how the lookup widget will look on your site. Feel free to test it by entering a @@ -22,7 +22,7 @@

Election lookup widget

@@ -71,66 +71,66 @@

Election lookup widget

+ function createWidgetVersion(language) { + debugger + var widgetArea = document.querySelector('#widget-area'); + var codeArea = document.querySelector('#code-area'); + var widget = makeWidget(language); + var script = makeScript(); + var embedCode = getEmbedCode(makeAttributeList(language)); + widgetArea.innerHTML = ''; + widgetArea.appendChild(widget); + widgetArea.appendChild(script); + codeArea.innerHTML = embedCode; + } + {% endblock %} diff --git a/ec_api/apps/users/templates/users/delete_key.html b/ec_api/apps/users/templates/users/delete_key.html index 7707282..3ea228d 100644 --- a/ec_api/apps/users/templates/users/delete_key.html +++ b/ec_api/apps/users/templates/users/delete_key.html @@ -2,15 +2,15 @@ {% block content %} -
-
-

Delete {{key.name}} key

-
-

Are you sure you want to delete key {{ key.key }}?

- {% csrf_token %} - -
+
+
+

Delete {{key.name}} key

+
+

Are you sure you want to delete key {{ key.key }}?

+ {% csrf_token %} + +
+
-
{% endblock %} diff --git a/ec_api/apps/users/templates/users/refresh_key.html b/ec_api/apps/users/templates/users/refresh_key.html index 95461e9..c61fd78 100644 --- a/ec_api/apps/users/templates/users/refresh_key.html +++ b/ec_api/apps/users/templates/users/refresh_key.html @@ -2,15 +2,15 @@ {% block content %} -
-
-

Refresh {{key.name}} key

-
-

Are you sure you want to refresh key {{ key.key }}?

- {% csrf_token %} - -
+
+
+

Refresh {{key.name}} key

+
+

Are you sure you want to refresh key {{ key.key }}?

+ {% csrf_token %} + +
+
-
{% endblock %}