Browse Source

Tweak page titles

pull/141/head
Paul Robert Lloyd 3 years ago
parent
commit
dc4d2f596b
  1. 6
      app/views/about/index.html.erb
  2. 22
      app/views/case_logs/bulk_upload.html.erb
  3. 13
      app/views/case_logs/edit.html.erb
  4. 7
      app/views/case_logs/index.html.erb
  5. 7
      app/views/devise/confirmations/reset.html.erb
  6. 6
      app/views/devise/passwords/new.html.erb
  7. 7
      app/views/devise/sessions/new.html.erb
  8. 6
      app/views/form/check_answers.html.erb
  9. 3
      app/views/form/page.html.erb
  10. 1
      app/views/organisations/show.html.erb
  11. 1
      app/views/organisations/users.html.erb
  12. 6
      app/views/users/edit.html.erb
  13. 6
      app/views/users/edit_password.html.erb
  14. 6
      app/views/users/new.html.erb
  15. 5
      app/views/users/show.html.erb

6
app/views/about/index.html.erb

@ -1 +1,5 @@
<h1>About</h1> <% content_for :title, "About" %>
<h1 class="govuk-heading-l">
<%= content_for(:title) %>
</h1>

22
app/views/case_logs/bulk_upload.html.erb

@ -1,10 +1,12 @@
<div class="govuk-form-group"> <% content_for :title, "Bulk upload" %>
<%= form_for @bulk_upload, url: bulk_upload_case_logs_path, method: "post" do |f| %>
<%= f.govuk_error_summary %> <%= form_for @bulk_upload, url: bulk_upload_case_logs_path, method: "post" do |f| %>
<%= f.govuk_file_field :case_log_bulk_upload, <%= f.govuk_error_summary %>
label: { text: "Bulk Upload", size: "l" },
hint: { text: "Upload a spreadsheet using the template" } <%= f.govuk_file_field :case_log_bulk_upload,
%> label: { text: content_for(:title), size: "l" },
<%= f.govuk_submit "Upload" %> hint: { text: "Upload a spreadsheet using the template" }
<% end %> %>
</div>
<%= f.govuk_submit "Upload" %>
<% end %>

13
app/views/case_logs/edit.html.erb

@ -1,12 +1,17 @@
<% content_for :title, "Case log #{@case_log.id}" %> <% content_for :title, "Case log #{@case_log.id}" %>
<%= turbo_frame_tag "case_log_form", target: "_top" do %> <%= turbo_frame_tag "case_log_form", target: "_top" do %>
<div class="govuk-grid-row"> <div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds-from-desktop"> <div class="govuk-grid-column-two-thirds-from-desktop">
<h1 class="govuk-heading-l">Tasklist for log <h1 class="govuk-heading-l">
<%= @case_log.id %></h1> <%= content_for(:title) %>
</h1>
<h2 class="govuk-heading-s govuk-!-margin-bottom-2">
This submission is
<%= @case_log.status.to_s.humanize.downcase %>
</h2>
<h2 class="govuk-heading-s govuk-!-margin-bottom-2">This submission is
<%= @case_log.status.to_s.humanize.downcase %></h2>
<p class="govuk-body govuk-!-margin-bottom-7">You’ve completed <%= get_subsections_count(@form, @case_log, :completed) %> of <%= get_subsections_count(@form, @case_log, :all) %> sections.</p> <p class="govuk-body govuk-!-margin-bottom-7">You’ve completed <%= get_subsections_count(@form, @case_log, :completed) %> of <%= get_subsections_count(@form, @case_log, :all) %> sections.</p>
<p class="govuk-body govuk-!-margin-bottom-7"> <p class="govuk-body govuk-!-margin-bottom-7">
<% next_incomplete_section = get_next_incomplete_section(@form, @case_log).id %> <% next_incomplete_section = get_next_incomplete_section(@form, @case_log).id %>

7
app/views/case_logs/index.html.erb

@ -1,9 +1,10 @@
<% content_for :title, "Case logs" %> <% content_for :title, "Case logs" %>
<div class="govuk-grid-row"> <div class="govuk-grid-row">
<div class="govuk-grid-column-full">
<h1 class="govuk-heading-l">Your logs</h1>
</div>
<div class="govuk-grid-column-two-thirds-from-desktop"> <div class="govuk-grid-column-two-thirds-from-desktop">
<h1 class="govuk-heading-l">
<%= content_for(:title) %>
</h1>
<%= govuk_button_link_to "Create new log", case_logs_path, method: :post %> <%= govuk_button_link_to "Create new log", case_logs_path, method: :post %>

7
app/views/devise/confirmations/reset.html.erb

@ -1,6 +1,11 @@
<% content_for :title, "Check your email" %>
<div class="govuk-grid-row"> <div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds"> <div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-l">Check your email</h1> <h1 class="govuk-heading-l">
<%= content_for(:title) %>
</h1>
<p class="govuk-body">We’ve sent a link to reset your password to <strong><%= @email %></strong>.</p> <p class="govuk-body">We’ve sent a link to reset your password to <strong><%= @email %></strong>.</p>
<p class="govuk-body">You’ll only this receive this link if your email address already exists in our system.</p> <p class="govuk-body">You’ll only this receive this link if your email address already exists in our system.</p>
<p class="govuk-body">If you don’t receive the email within 5 minutes, check your spam or junk folders. Try again if you still haven’t received the email.</p> <p class="govuk-body">If you don’t receive the email within 5 minutes, check your spam or junk folders. Try again if you still haven’t received the email.</p>

6
app/views/devise/passwords/new.html.erb

@ -1,3 +1,5 @@
<% content_for :title, "Reset password" %>
<% content_for :before_content do %> <% content_for :before_content do %>
<%= govuk_back_link( <%= govuk_back_link(
text: 'Back', text: 'Back',
@ -10,7 +12,9 @@
<div class="govuk-grid-column-two-thirds"> <div class="govuk-grid-column-two-thirds">
<%= f.govuk_error_summary %> <%= f.govuk_error_summary %>
<h1 class="govuk-heading-l">Reset password</h1> <h1 class="govuk-heading-l">
<%= content_for(:title) %>
</h1>
<p class="govuk-body">Enter the email address you used to create your account.</p> <p class="govuk-body">Enter the email address you used to create your account.</p>
<p class="govuk-body">We’ll email you a link to reset your password. This link will expire in 3 hours.</p> <p class="govuk-body">We’ll email you a link to reset your password. This link will expire in 3 hours.</p>

7
app/views/devise/sessions/new.html.erb

@ -1,11 +1,14 @@
<% content_for :title, "Sign in" %> <% content_for :title, "Sign in to your account to submit CORE data" %>
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %> <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
<div class="govuk-grid-row"> <div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds"> <div class="govuk-grid-column-two-thirds">
<% flash_to_model_errors(resource) %> <% flash_to_model_errors(resource) %>
<%= f.govuk_error_summary %> <%= f.govuk_error_summary %>
<h1 class="govuk-heading-l">Sign in to your account to submit CORE data</h1> <h1 class="govuk-heading-l">
<%= content_for(:title) %>
</h1>
<%= f.govuk_email_field :email, <%= f.govuk_email_field :email,
label: { text: "Email address" }, label: { text: "Email address" },

6
app/views/form/check_answers.html.erb

@ -1,4 +1,5 @@
<% content_for :title, "Check answers" %> <% content_for :title, "#{subsection.id.humanize} - Check your answers" %>
<%= turbo_frame_tag "case_log_form", target: "_top" do %> <%= turbo_frame_tag "case_log_form", target: "_top" do %>
<div class="govuk-grid-row"> <div class="govuk-grid-row">
<div class="govuk-grid-column-three-quarters-from-desktop"> <div class="govuk-grid-column-three-quarters-from-desktop">
@ -6,12 +7,15 @@
<span class="govuk-caption-l"><%= subsection.id.humanize %></span> <span class="govuk-caption-l"><%= subsection.id.humanize %></span>
Check your answers Check your answers
</h1> </h1>
<%= display_answered_questions_summary(subsection, @case_log) %> <%= display_answered_questions_summary(subsection, @case_log) %>
<dl class="govuk-summary-list govuk-!-margin-bottom-9"> <dl class="govuk-summary-list govuk-!-margin-bottom-9">
<% subsection.applicable_questions(@case_log).each do |question| %> <% subsection.applicable_questions(@case_log).each do |question| %>
<%= render partial: 'form/check_answers_table', locals: { question: question, case_log: @case_log } %> <%= render partial: 'form/check_answers_table', locals: { question: question, case_log: @case_log } %>
<% end %> <% end %>
</dl> </dl>
<%= form_with model: @case_log, method: "get" do |f| %> <%= form_with model: @case_log, method: "get" do |f| %>
<%= f.govuk_submit "Save and continue" %> <%= f.govuk_submit "Save and continue" %>
<% end %> <% end %>

3
app/views/form/page.html.erb

@ -1,4 +1,4 @@
<% content_for :title, subsection %> <% content_for :title, page.header.present? ? page.header : page.questions.first().header.html_safe %>
<% content_for :before_content do %> <% content_for :before_content do %>
<%= govuk_back_link( <%= govuk_back_link(
@ -16,6 +16,7 @@
<%= page.header %> <%= page.header %>
</h1> </h1>
<% end %> <% end %>
<%= form_with model: @case_log, url: form_case_log_path(@case_log), method: "post" do |f| %> <%= form_with model: @case_log, url: form_case_log_path(@case_log), method: "post" do |f| %>
<%= f.govuk_error_summary %> <%= f.govuk_error_summary %>
<% page.questions.map do |question| %> <% page.questions.map do |question| %>

1
app/views/organisations/show.html.erb

@ -1,4 +1,5 @@
<% content_for :title, "Your organisation (Details)" %> <% content_for :title, "Your organisation (Details)" %>
<% content_for :tab_title do %> <% content_for :tab_title do %>
<%= "Details" %> <%= "Details" %>
<% end %> <% end %>

1
app/views/organisations/users.html.erb

@ -1,4 +1,5 @@
<% content_for :title, "Your organisation (Users)" %> <% content_for :title, "Your organisation (Users)" %>
<% content_for :tab_title do %> <% content_for :tab_title do %>
<%= "Users" %> <%= "Users" %>
<% end %> <% end %>

6
app/views/users/edit.html.erb

@ -1,3 +1,5 @@
<% content_for :title, "Change your personal details" %>
<% content_for :before_content do %> <% content_for :before_content do %>
<%= govuk_back_link( <%= govuk_back_link(
text: 'Back', text: 'Back',
@ -8,7 +10,9 @@
<%= form_for(current_user, as: :user, html: { method: :patch }) do |f| %> <%= form_for(current_user, as: :user, html: { method: :patch }) do |f| %>
<div class="govuk-grid-row"> <div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds"> <div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-l">Change your personal details</h1> <h1 class="govuk-heading-l">
<%= content_for(:title) %>
</h1>
<%= f.govuk_text_field :name, <%= f.govuk_text_field :name,
autocomplete: "name" autocomplete: "name"

6
app/views/users/edit_password.html.erb

@ -1,3 +1,5 @@
<% content_for :title, "Change your password" %>
<% content_for :before_content do %> <% content_for :before_content do %>
<%= govuk_back_link( <%= govuk_back_link(
text: 'Back', text: 'Back',
@ -8,7 +10,9 @@
<%= form_for(current_user, as: :user, html: { method: :patch }) do |f| %> <%= form_for(current_user, as: :user, html: { method: :patch }) do |f| %>
<div class="govuk-grid-row"> <div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds"> <div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-l">Change your password</h1> <h1 class="govuk-heading-l">
<%= content_for(:title) %>
</h1>
<%= f.govuk_password_field :current_password, <%= f.govuk_password_field :current_password,
label: { text: "Current password" }, label: { text: "Current password" },

6
app/views/users/new.html.erb

@ -1,3 +1,5 @@
<% content_for :title, "Invite user to submit CORE data" %>
<% content_for :before_content do %> <% content_for :before_content do %>
<%= govuk_back_link( <%= govuk_back_link(
text: 'Back', text: 'Back',
@ -10,7 +12,9 @@
<div class="govuk-grid-column-two-thirds"> <div class="govuk-grid-column-two-thirds">
<%= f.govuk_error_summary %> <%= f.govuk_error_summary %>
<h1 class="govuk-heading-l">Invite user to submit CORE data</h1> <h1 class="govuk-heading-l">
<%= content_for(:title) %>
</h1>
<%= f.govuk_text_field :name, <%= f.govuk_text_field :name,
autocomplete: "name" autocomplete: "name"

5
app/views/users/show.html.erb

@ -1,12 +1,15 @@
<% content_for :title, "Your account" %> <% content_for :title, "Your account" %>
<div class="govuk-grid-row"> <div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds"> <div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-l"> <h1 class="govuk-heading-l">
Your account <%= content_for(:title) %>
</h1> </h1>
<h2 class="govuk-heading-m"> <h2 class="govuk-heading-m">
Personal details Personal details
</h2> </h2>
<%= govuk_summary_list do |summary_list| %> <%= govuk_summary_list do |summary_list| %>
<%= summary_list.row do |row| <%= summary_list.row do |row|
row.key { 'Name' } row.key { 'Name' }

Loading…
Cancel
Save