Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APPMAN-1190 removed conditional logic so same content is displayed #233

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,34 @@
<div class="govuk-panel govuk-panel--confirmation pledge-approved">
<h1 class="govuk-panel__title">Application approved</h1>
<div class="govuk-panel__body">
<strong>You approved the @Model.DasAccountName application</strong>
You have approved <strong>@Model.DasAccountName (@Model.EncodedAccountId)</strong> application
</div>
</div>

<h2 class="govuk-heading-m govuk-!-margin-top-2">What happens next</h2>
<h2 class="govuk-heading-m govuk-!-margin-top-2">What happens next?</h2>

@if (Model.AllowTransferRequestAutoApproval)
{
<p>We’ve let them know, so they can accept your funding pledge.</p>
<p>We’ve let them know, so they can accept your funding pledge.</p>

<p>You’ll receive a notification when <strong>@Model.DasAccountName</strong> accepts your pledge.</p>
}
else
{
<p>We've let them know, so they can accept your funding pledge.</p>
<p>
<strong>@Model.DasAccountName</strong> will have 6 weeks to accept the funds.
Funds must be used within 3 months of acceptance or they will expire.
</p>

<p>You'll receive notifications when <strong>@Model.DasAccountName</strong>:</p>
<p>You'll receive notification when <strong>@Model.DasAccountName</strong>:</p>

<ul class="govuk-list govuk-list--bullet">
<li>accepts your pledge</li>
<li>adds apprentices to their account</li>
</ul>
<ul class="govuk-list govuk-list--bullet">
<li>accepts your pledge</li>
<li>adds apprentices to their account</li>
</ul>

@if (!Model.AllowTransferRequestAutoApproval)
{
<div class="govuk-warning-text">
<span class="govuk-warning-text__icon" aria-hidden="true">!</span>
<p class="govuk-warning-text__text">You'll need to approve the transfer when @Model.DasAccountName adds apprentices details to their account.</p>
<strong class="govuk-warning-text__text">You'll need to approve the transfer when @Model.DasAccountName adds apprentices details to their account.</strong>
</div>
}

<p><a href="@Url.Action("Applications", "Pledges", new { EncodedAccountId = Model.EncodedAccountId, EncodedPledgeId = Model.EncodedPledgeId })" class="govuk-link govuk-link--no-visited-state">View other applications</a></p>
</div>
</div>
Expand Down
Loading