-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3098 from DFE-Digital/one-login-flow-copy
[LUPEYALPHA-594] Update One Login flow copy
- Loading branch information
Showing
5 changed files
with
52 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,7 @@ | ||
<h1 class="govuk-heading-l"> | ||
<% if @journey_session.answers.identity_confirmed_with_onelogin? %> | ||
You've successfully proved your identity with GOV.UK One Login | ||
<%= render "sign_in_3_identified" %> | ||
<% elsif @journey_session.answers.logged_in_with_onelogin? %> | ||
You've successfully signed in to GOV.UK One Login | ||
<%= render "sign_in_2_authed" %> | ||
<% else %> | ||
You're now going to GOV.UK One Login | ||
<%= render "sign_in_1_start" %> | ||
<% end %> | ||
</h1> | ||
|
||
<% if @journey_session.answers.identity_confirmed_with_onelogin? %> | ||
<p> | ||
You can now continue your application | ||
</p> | ||
<% elsif @journey_session.answers.logged_in_with_onelogin? %> | ||
<p> | ||
Before you can continue your application, you'll need to prove your identity through GOV.UK One Login. | ||
</p> | ||
<p> | ||
When you've proved your identity through GOV.UK One Login, you'll return to this service to complete your applciation. | ||
</p> | ||
<% else %> | ||
<p> | ||
To continue your application, you'll need to create a GOV.UK One Login or sign in. | ||
</p> | ||
<p> | ||
When you've signed in through GOV.UK One Login, your progress will be saved | ||
and you'll be able to return to complete your application. | ||
</p> | ||
<% end %> | ||
|
||
<div class="govuk-button-group"> | ||
<% if @journey_session.answers.identity_confirmed_with_onelogin? %> | ||
<%= form_for @form, url: claim_path(current_journey_routing_name) do |f| %> | ||
<%= f.submit "Continue", class: "govuk-button", data: {module: "govuk-button"} %> | ||
<% end %> | ||
<% elsif @journey_session.answers.logged_in_with_onelogin? %> | ||
<%= button_to "Continue", "/auth/onelogin_identity", class: "govuk-button", method: :post %> | ||
<% else %> | ||
<%= button_to "Continue", "/auth/onelogin", class: "govuk-button", method: :post %> | ||
<% end %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<h1 class="govuk-heading-l"> | ||
Sign in with GOV.UK One Login | ||
</h1> | ||
|
||
<p class="govuk-body"> | ||
You will need to sign in to your GOV.UK One Login account to apply. If you don’t have an account yet, we will help you create one. | ||
</p> | ||
|
||
<p class="govuk-body"> | ||
To create a GOV.UK One Login account, you will need: | ||
</p> | ||
|
||
<%= govuk_list [ | ||
"an email address", | ||
"a way to get security codes - this can be a mobile phone number or an authenticator app" | ||
], type: :bullet %> | ||
|
||
<p class="govuk-body"> | ||
When you have signed in to GOV.UK One Login, you will return to this service to complete your application. | ||
</p> | ||
|
||
<%= govuk_button_to "Continue", "/auth/onelogin" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<h1 class="govuk-heading-l"> | ||
You have successfully signed in to GOV.UK One Login | ||
</h1> | ||
|
||
<p class="govuk-body"> | ||
Before you can continue your application, you will need to prove your identity through GOV.UK One Login. | ||
</p> | ||
|
||
<p class="govuk-body"> | ||
Once you have proven your identity through GOV.UK One Login, you will return to this service to complete your application. | ||
</p> | ||
|
||
<%= govuk_button_to "Continue", "/auth/onelogin_identity" %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<h1 class="govuk-heading-l"> | ||
You have successfully proved your identity with GOV.UK One Login | ||
</h1> | ||
|
||
<p class="govuk-body"> | ||
You can now continue with your application. | ||
</p> | ||
|
||
<%= form_with model: @form, url: claim_path(current_journey_routing_name), builder: GOVUKDesignSystemFormBuilder::FormBuilder do |f| %> | ||
<%= f.govuk_submit "Continue" %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters