@import play.api.data._

@(summary: SummaryModel)

<div @if(summary.invalidRelevantAmount) {data-metrics = "error-Relative-Amount:summary:insufficient"}>
    @summaryError(Messages("pla.summary.errorSummaryLabel"), summary.invalidRelevantAmount, summary.protectionType.toString)
</div>

<div>
    <div class="grid grid-2-3">
        <h1 class="heading-large">@Messages("pla.summary.pageHeading")</h1>
    </div>
</div>

<div class="grid-wrapper"></div>

<section>
    <h2 class="heading-large">@Messages("pla.summary.pensionsHeading")</h2>

    @for(section <- summary.pensionContributionSections) {
        @summarySection(section)
    }
</section>

<div>&nbsp;</div>

<section>
    <h2 class="heading-large">@Messages("pla.summary.psosHeading")</h2>

    @for(section <- summary.psoDetailsSections) {
        @summarySection(section)
    }
</section>

<div class="declaration">
    <p>@Messages("pla.summary.declarationPara1")</p>
    <p>@Messages("pla.summary.declarationPara2")</p>
</div>
<div class="grid-wrapper"></div>

@import play.api.data._
@import enums.ApplicationType

@(summary: SummaryModel)

<div @if(summary.invalidRelevantAmount) {data-metrics = "error-Relative-Amount:summary:insufficient"}>
    @summaryError(Messages("pla.summary.errorSummaryLabel"), summary.invalidRelevantAmount, summary.protectionType.toString)
</div>

<div>
    <div class="grid grid-2-3">
        <h1 class="heading-large">@Messages("pla.summary.pageHeading")</h1>
    </div>
</div>

<div class="grid-wrapper"></div>

<section>
    <h2 class="heading-large">@Messages("pla.summary.pensionsHeading")</h2>

    @for(section <- summary.pensionContributionSections) {
        @summarySection(section)
    }
</section>

<div>&nbsp;</div>

<section>
    <h2 class="heading-large">@Messages("pla.summary.psosHeading")</h2>

    @for(section <- summary.psoDetailsSections) {
        @summarySection(section)
    }
</section>

<div class="declaration">
    @if(summary.protectionType == ApplicationType.IP2016) {
        <p>@Messages("pla.summary.declarationPara1")</p>
        <p>@Messages("pla.summary.declarationPara2")</p>
    } else {
        <p>@Messages("pla.summary.ip14DeclarationPara1")</p>
        <p>@Messages("pla.summary.ip14DeclarationPara2")</p>
    }
</div>
<div class="grid-wrapper"></div>

Set summary declaration to display properly for IP14
Set summary declaration to display properly for IP14
