From 5d0504131756aa81ea0597ec97573579a97dadd6 Mon Sep 17 00:00:00 2001 From: Aga Dufrat Date: Thu, 4 Apr 2024 09:59:55 +0100 Subject: [PATCH 1/3] Add original contact form back This reverts commit e3413b29f9862c496172d70f09dfa2768703247e. --- app/views/pages/support.html.erb | 67 +++++++++++++++++++++++++--- app/views/tickets/new.html.erb | 76 +++++++++++++++++++++++++++++--- 2 files changed, 133 insertions(+), 10 deletions(-) diff --git a/app/views/pages/support.html.erb b/app/views/pages/support.html.erb index 682fbfee..7ec07d40 100644 --- a/app/views/pages/support.html.erb +++ b/app/views/pages/support.html.erb @@ -5,11 +5,68 @@ <% end%>
-
-
-

Service unavailable

-

Sorry you can't use this service because of a technical problem.

-

We're working on a fix. Please try again later.

+ +
+
+ <%= render "govuk_publishing_components/components/heading", { + text: "Support", + margin_bottom: 6, + heading_level: 1, + font_size: "l", + } %> + +

The Government Digital Service (GDS) maintains the technical service behind data.gov.uk + and helps government publishers to manage and update their data.

+ +

It cannot

+
    +
  • help you find or research datasets
  • +
  • provide personal information or medical records
  • +
  • combine data from multiple datasets
  • +
+ +

For questions about GOV.UK check the <%= link_to "GOV.UK help pages", "https://www.gov.uk/help", class: "govuk-link" %> or <%= link_to "contact GOV.UK", "https://www.gov.uk/contact/govuk", class: "govuk-link" %>.

+

The NHS <%= link_to "publishes its own data.", "https://digital.nhs.uk/data-and-information/data-collections-and-data-sets/data-sets", class: "govuk-link" %>

+ + <%= render "govuk_publishing_components/components/heading", { + text: "If you have a question about a dataset", + margin_bottom: 4, + heading_level: 2, + font_size: "m", + } %> +

If you have a question about a specific dataset, contact the publisher directly.

+ +
+ <%= render "govuk_publishing_components/components/radio", { + name: "support", + heading: "How can we help you?", + items: [ + { + value: "feedback", + text: "I want to report a problem" + }, + { + value: "data", + text: "I want government to publish new data" + }, + { + value: "publish", + text: "I want to publish for an organisation" + }, + { + value: "accessibility", + text: "I want to report an accessibility issue" + }, + ] + } %> + + <%= render "govuk_publishing_components/components/button", { + text: "Continue", + margin_bottom: true, + } %> +
+ +

Please give us your feedback about the site using <%= link_to "our survey", "http://www.smartsurvey.co.uk/s/3SEXD/", class: "govuk-link" %>.

diff --git a/app/views/tickets/new.html.erb b/app/views/tickets/new.html.erb index 096b64d1..e4c4b314 100644 --- a/app/views/tickets/new.html.erb +++ b/app/views/tickets/new.html.erb @@ -5,11 +5,77 @@ <% end%>
-
-
-

Service unavailable

-

Sorry you can't use this service because of a technical problem.

-

We're working on a fix. Please try again later.

+
+
+ <% if @ticket.errors.any? %> + <% + errors = @ticket.errors.messages.map do |attr, error| + { + text: error[0], + href: "#error-#{attr.to_s}" + } + end + %> + + <%= render "govuk_publishing_components/components/error_summary", { + title: t('.problem'), + items: errors + } %> + <% end %> + + <%= render "govuk_publishing_components/components/heading", { + text: t(".#{@ticket.support}_request"), + margin_bottom: 4, + heading_level: 1, + font_size: "l", + } %> + + <%= form_for @ticket, url: { action: "create", controller: "tickets" } do |f| %> + <% + content_error = t('.enter_a_message') if @ticket.errors[:content].any? + content_error_id = "error-content" if @ticket.errors[:content].any? + name_error = t('.enter_a_name') if @ticket.errors[:name].any? + name_error_id = "error-name" if @ticket.errors[:name].any? + email_error = t('.enter_an_email') if @ticket.errors[:email].any? + email_error_id = "error-email" if @ticket.errors[:email].any? + %> + + <%= render "govuk_publishing_components/components/textarea", { + label: { + text: t('.your_message'), + }, + name: "ticket[content]", + error_message: content_error, + id: content_error_id, + rows: 8, + } %> + + <%= render "govuk_publishing_components/components/input", { + label: { + text: t('.name'), + }, + name: "ticket[name]", + error_message: name_error, + id: name_error_id, + autocomplete: "name", + } %> + + <%= render "govuk_publishing_components/components/input", { + label: { + text: t('.email_address'), + }, + name: "ticket[email]", + error_message: email_error, + id: email_error_id, + hint: t('.use_this_to_reply'), + autocomplete: "email", + } %> + + <%= f.hidden_field(:support, :value => @ticket.support) %> + <%= render "govuk_publishing_components/components/button", { + text: t('.submit'), + } %> + <% end %>
From 15ae524d5d5210b18ca7faaf40ef0d731e761a86 Mon Sep 17 00:00:00 2001 From: Aga Dufrat Date: Thu, 4 Apr 2024 15:17:55 +0100 Subject: [PATCH 2/3] Point user to an alternative way to get urgent support The support form was removed but we need a way for legitimate users (eg those asking to become data publishers) to contact us. --- app/views/pages/support.html.erb | 36 ++++-------------- app/views/tickets/new.html.erb | 64 +------------------------------- 2 files changed, 9 insertions(+), 91 deletions(-) diff --git a/app/views/pages/support.html.erb b/app/views/pages/support.html.erb index 7ec07d40..51dbf9e7 100644 --- a/app/views/pages/support.html.erb +++ b/app/views/pages/support.html.erb @@ -36,35 +36,13 @@ } %>

If you have a question about a specific dataset, contact the publisher directly.

-
- <%= render "govuk_publishing_components/components/radio", { - name: "support", - heading: "How can we help you?", - items: [ - { - value: "feedback", - text: "I want to report a problem" - }, - { - value: "data", - text: "I want government to publish new data" - }, - { - value: "publish", - text: "I want to publish for an organisation" - }, - { - value: "accessibility", - text: "I want to report an accessibility issue" - }, - ] - } %> - - <%= render "govuk_publishing_components/components/button", { - text: "Continue", - margin_bottom: true, - } %> -
+ <%= render "govuk_publishing_components/components/heading", { + text: "Other urgent requests", + margin_bottom: 4, + heading_level: 2, + font_size: "m", + } %> +

If your request is urgent, please use <%= link_to "the form", "https://www.gov.uk/contact/govuk", class: "govuk-link" %> and mention that it's about data.gov.uk.

Please give us your feedback about the site using <%= link_to "our survey", "http://www.smartsurvey.co.uk/s/3SEXD/", class: "govuk-link" %>.

diff --git a/app/views/tickets/new.html.erb b/app/views/tickets/new.html.erb index e4c4b314..b9d7ac38 100644 --- a/app/views/tickets/new.html.erb +++ b/app/views/tickets/new.html.erb @@ -7,75 +7,15 @@
- <% if @ticket.errors.any? %> - <% - errors = @ticket.errors.messages.map do |attr, error| - { - text: error[0], - href: "#error-#{attr.to_s}" - } - end - %> - - <%= render "govuk_publishing_components/components/error_summary", { - title: t('.problem'), - items: errors - } %> - <% end %> <%= render "govuk_publishing_components/components/heading", { - text: t(".#{@ticket.support}_request"), + text: "Other urgent requests", margin_bottom: 4, heading_level: 1, font_size: "l", } %> - <%= form_for @ticket, url: { action: "create", controller: "tickets" } do |f| %> - <% - content_error = t('.enter_a_message') if @ticket.errors[:content].any? - content_error_id = "error-content" if @ticket.errors[:content].any? - name_error = t('.enter_a_name') if @ticket.errors[:name].any? - name_error_id = "error-name" if @ticket.errors[:name].any? - email_error = t('.enter_an_email') if @ticket.errors[:email].any? - email_error_id = "error-email" if @ticket.errors[:email].any? - %> - - <%= render "govuk_publishing_components/components/textarea", { - label: { - text: t('.your_message'), - }, - name: "ticket[content]", - error_message: content_error, - id: content_error_id, - rows: 8, - } %> - - <%= render "govuk_publishing_components/components/input", { - label: { - text: t('.name'), - }, - name: "ticket[name]", - error_message: name_error, - id: name_error_id, - autocomplete: "name", - } %> - - <%= render "govuk_publishing_components/components/input", { - label: { - text: t('.email_address'), - }, - name: "ticket[email]", - error_message: email_error, - id: email_error_id, - hint: t('.use_this_to_reply'), - autocomplete: "email", - } %> - - <%= f.hidden_field(:support, :value => @ticket.support) %> - <%= render "govuk_publishing_components/components/button", { - text: t('.submit'), - } %> - <% end %> +

If your request is urgent, please use <%= link_to 'the form', 'https://www.gov.uk/contact/govuk', class: 'govuk-link' %> and mention that it's about data.gov.uk.

From 72bedc0108eefc0c032f94a6d223f28854548582 Mon Sep 17 00:00:00 2001 From: Aga Dufrat Date: Thu, 4 Apr 2024 15:19:55 +0100 Subject: [PATCH 3/3] Update copy for support about a dataset to specify where to find contact info. --- app/views/pages/support.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/pages/support.html.erb b/app/views/pages/support.html.erb index 51dbf9e7..dc352ef7 100644 --- a/app/views/pages/support.html.erb +++ b/app/views/pages/support.html.erb @@ -34,7 +34,7 @@ heading_level: 2, font_size: "m", } %> -

If you have a question about a specific dataset, contact the publisher directly.

+

If you have a question about a specific dataset, contact the publisher directly using the contact details on the dataset page.

<%= render "govuk_publishing_components/components/heading", { text: "Other urgent requests",