Skip to content

Commit

Permalink
[6401] Add bulk placements confirm page (#3793)
Browse files Browse the repository at this point in the history
* [6401] Add bulk placements confirm page

* [6401] PR feedback
  • Loading branch information
darokel authored Dec 5, 2023
1 parent c3213b2 commit bf38f91
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
9 changes: 9 additions & 0 deletions app/controllers/bulk_update/confirmations_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

module BulkUpdate
class ConfirmationsController < ApplicationController
before_action { require_feature_flag(:bulk_placements) }

def show; end
end
end
16 changes: 16 additions & 0 deletions app/views/bulk_update/confirmations/show.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<%= render PageTitle::View.new(i18n_key: "bulk_placements.confirmation.show") %>

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds-from-desktop">
<%= govuk_panel(title_text: "Placement data submitted", classes: "trn-submission-success-panel govuk-!-margin-bottom-6") %>

<p class="govuk-body"><%= govuk_link_to("View your trainee records", trainees_path) %></p>

<h2 class="govuk-heading-m">Next steps</h2>


<h3 class="govuk-heading-s">Trainees with incomplete records</h2>

<p class="govuk-body">You can complete missing placement information to the trainee record manually.</p>
</div>
</div>
3 changes: 3 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,9 @@ en:
itt_end_date:
hint: The end date of the Initial Teacher Training part of their course.
page_titles:
bulk_placements:
confirmation:
show: Placement data submitted
uploads:
index: Uploads
new: Upload a file
Expand Down
4 changes: 3 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@
namespace :bulk_update, path: "bulk-update" do
get "/", to: "bulk_updates#index"

resource :placements, only: %i[new create], path: "add-details"
resource :placements, only: %i[new create], path: "add-details" do
resource :confirmation, only: %i[show]
end

resources :recommendations_uploads, only: %i[new create edit update], path: "recommend", path_names: { new: "choose-who-to-recommend", edit: "change-who-youll-recommend" } do
get "confirmation"
Expand Down

0 comments on commit bf38f91

Please sign in to comment.