Skip to content

Commit

Permalink
Added new page for evaluator signin
Browse files Browse the repository at this point in the history
  • Loading branch information
edwin-jebaraj committed Jan 21, 2025
1 parent b5d4542 commit 5d8f104
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 48 deletions.
52 changes: 52 additions & 0 deletions app/views/specify/home/_default.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<%= content_for :title, I18n.t("specifying.start_page.page_title") %>

<h1 class="govuk-heading-xl">
<%= I18n.t("specifying.start_page.page_title") %>
</h1>

<p class="govuk-body">
<%= I18n.t("specifying.start_page.overview_purpose") %>
</p>

<ul class="govuk-list govuk-list--bullet">
<% I18n.t("specifying.start_page.overview_supported_category_list").each do |list_item| %>
<li><%= list_item %></li>
<% end %>
</ul>

<p class="govuk-body">
<%= I18n.t("specifying.start_page.overview_download") %>
</p>

<p class="govuk-body"><%= I18n.t("specifying.start_page.who_can_use_body") %></p>
<ul class="govuk-list govuk-list--bullet">
<% I18n.t("specifying.start_page.who_can_use_list").each do |list_item| %>
<li><%= list_item %></li>
<% end %>
</ul>

<% if PagesController.bypass_dsi? %>
<%= button_to "/auth/developer", class: "govuk-button govuk-!-margin-top-2 govuk-!-margin-bottom-8 govuk-button--start" do %>
<%= "#{I18n.t("generic.button.start")} (bypass DSI)" %>
<svg class="govuk-button__start-icon" xmlns="http://www.w3.org/2000/svg" width="17.5" height="19" viewBox="0 0 33 40" aria-hidden="true" focusable="false">
<path fill="currentColor" d="M0 0h13l20 20-20 20H0l20-20z" />
</svg>
<% end %>
<% else %>
<%= button_to @start_now_button_route,
:method => @start_now_button_method,
class: "govuk-button govuk-!-margin-top-2 govuk-!-margin-bottom-8 govuk-button--start" do %>
<%= I18n.t("generic.button.start") %>
<svg class="govuk-button__start-icon" xmlns="http://www.w3.org/2000/svg" width="17.5" height="19" viewBox="0 0 33 40" aria-hidden="true" focusable="false">
<path fill="currentColor" d="M0 0h13l20 20-20 20H0l20-20z" />
</svg>
<% end %>
<% end %>

<h2 class="govuk-heading-m">
<%= I18n.t("specifying.start_page.before_you_start_title") %>
</h2>

<% I18n.t("specifying.start_page.before_you_start_body").each do |paragraph| %>
<p class="govuk-body"><%= paragraph %></p>
<% end %>
53 changes: 53 additions & 0 deletions app/views/specify/home/_evaluation.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<%= content_for :title, I18n.t("specifying.start_page.page_title") %>

<h1 class="govuk-heading-xl">
<%= I18n.t("specifying.evaluation_page.page_title")%>
</h1>

<p class="govuk-body">
<%= I18n.t("specifying.evaluation_page.overview_purpose") %>
</p>

<ul class="govuk-list govuk-list--bullet">
<% I18n.t("specifying.evaluation_page.overview_supported_category_list").each do |list_item| %>
<li><%= list_item %></li>
<% end %>
</ul>

<p class="govuk-body">
<%= I18n.t("specifying.evaluation_page.overview_declaration") %>
</p>

<p class="govuk-body">
<%= I18n.t("specifying.evaluation_page.watch_video") %>
<%= govuk_link_to I18n.t("specifying.evaluation_page.watch_video_link"), "https://www.youtube.com/watch?v=cbL65QlOas4", no_visited_state: true %>
</p>
<p class="govuk-body"><%= I18n.t("specifying.evaluation_page.evaluate_independently") %></p>
<p class="govuk-body"><%= I18n.t("specifying.evaluation_page.justification") %></p>


<% if PagesController.bypass_dsi? %>
<%= button_to "/auth/developer", class: "govuk-button govuk-!-margin-top-2 govuk-!-margin-bottom-8 govuk-button--start" do %>
<%= "#{I18n.t("generic.button.start")} (bypass DSI)" %>
<svg class="govuk-button__start-icon" xmlns="http://www.w3.org/2000/svg" width="17.5" height="19" viewBox="0 0 33 40" aria-hidden="true" focusable="false">
<path fill="currentColor" d="M0 0h13l20 20-20 20H0l20-20z" />
</svg>
<% end %>
<% else %>
<%= button_to @start_now_button_route,
:method => @start_now_button_method,
class: "govuk-button govuk-!-margin-top-2 govuk-!-margin-bottom-8 govuk-button--start" do %>
<%= I18n.t("generic.button.start") %>
<svg class="govuk-button__start-icon" xmlns="http://www.w3.org/2000/svg" width="17.5" height="19" viewBox="0 0 33 40" aria-hidden="true" focusable="false">
<path fill="currentColor" d="M0 0h13l20 20-20 20H0l20-20z" />
</svg>
<% end %>
<% end %>

<h2 class="govuk-heading-m">
<%= I18n.t("specifying.start_page.before_you_start_title") %>
</h2>

<% I18n.t("specifying.evaluation_page.before_you_start_body").each do |paragraph| %>
<p class="govuk-body"><%= paragraph %></p>
<% end %>
51 changes: 3 additions & 48 deletions app/views/specify/home/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,52 +1,7 @@
<%= content_for :title, I18n.t("specifying.start_page.page_title") %>

<h1 class="govuk-heading-xl">
<%= I18n.t("specifying.start_page.page_title") %>
</h1>

<p class="govuk-body">
<%= I18n.t("specifying.start_page.overview_purpose") %>
</p>

<ul class="govuk-list govuk-list--bullet">
<% I18n.t("specifying.start_page.overview_supported_category_list").each do |list_item| %>
<li><%= list_item %></li>
<% end %>
</ul>

<p class="govuk-body">
<%= I18n.t("specifying.start_page.overview_download") %>
</p>

<p class="govuk-body"><%= I18n.t("specifying.start_page.who_can_use_body") %></p>
<ul class="govuk-list govuk-list--bullet">
<% I18n.t("specifying.start_page.who_can_use_list").each do |list_item| %>
<li><%= list_item %></li>
<% end %>
</ul>

<% if PagesController.bypass_dsi? %>
<%= button_to "/auth/developer", class: "govuk-button govuk-!-margin-top-2 govuk-!-margin-bottom-8 govuk-button--start" do %>
<%= "#{I18n.t("generic.button.start")} (bypass DSI)" %>
<svg class="govuk-button__start-icon" xmlns="http://www.w3.org/2000/svg" width="17.5" height="19" viewBox="0 0 33 40" aria-hidden="true" focusable="false">
<path fill="currentColor" d="M0 0h13l20 20-20 20H0l20-20z" />
</svg>
<% end %>
<% if session[:email_evaluator_link].present? %>
<%= render 'evaluation'%>
<% else %>
<%= button_to @start_now_button_route,
:method => @start_now_button_method,
class: "govuk-button govuk-!-margin-top-2 govuk-!-margin-bottom-8 govuk-button--start" do %>
<%= I18n.t("generic.button.start") %>
<svg class="govuk-button__start-icon" xmlns="http://www.w3.org/2000/svg" width="17.5" height="19" viewBox="0 0 33 40" aria-hidden="true" focusable="false">
<path fill="currentColor" d="M0 0h13l20 20-20 20H0l20-20z" />
</svg>
<% end %>
<% end %>

<h2 class="govuk-heading-m">
<%= I18n.t("specifying.start_page.before_you_start_title") %>
</h2>

<% I18n.t("specifying.start_page.before_you_start_body").each do |paragraph| %>
<p class="govuk-body"><%= paragraph %></p>
<%= render 'default'%>
<% end %>
14 changes: 14 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,20 @@ en:
who_can_use_list:
- are procuring for a single school in England - either a local authority maintained school or an academy in a single or multi-academy trust
- are procuring a single contract
evaluation_page:
page_title: Complete procurement evaluation
overview_purpose: 'Use this service to complete the supplier evaluation stage of the procurement. You will be able to:'
overview_supported_category_list:
- view bids from potential suppliers
- evaluate bids using a pre-populated evaluation sheet
- complete the evaluation tasks
overview_declaration: Before starting the evaluation, you must complete the declaration of interest form attached to the email inviting you to complete the procurement evaluation.
watch_video: You can watch the
watch_video_link: Evaluation Guidance training video on YouTube (opens in new tab)
evaluate_independently: Bids must be evaluated independently of each other and other evaluators.
justification: Insufficient justification for scores will result in evaluations being returned, which could delay the procurement.
before_you_start_body:
- The service will guide you through what information to provide. Standard regulations and requirements that suppliers must comply with will be added automatically.
step:
button:
skip: Skip for now
Expand Down

0 comments on commit 5d8f104

Please sign in to comment.