<commit_before>@(viewModel: models.VehicleLookupViewModel
)(implicit lang: Lang,
  token: uk.gov.dvla.vehicles.presentation.common.filters.CsrfPreventionAction.CsrfPreventionToken,
  config: utils.helpers.Config
)

@import views.acquire.VehicleLookup.{BackId, SubmitId, VehicleSoldTo_Private, VehicleSoldTo_Business}
@import views.html.acquire.main
@import views.html.helper.form
@import models.VehicleLookupFormModel.Form.{DocumentReferenceNumberId, VehicleRegistrationNumberId, VehicleSoldToId}
@import uk.gov.dvla.vehicles.presentation.common
@import common.mappings.{DocumentReferenceNumber, VehicleRegistrationNumber}
@import common.views.helpers.BaseTemplate.fieldConstructor
@import common.views.html.widgets.base.valtechInputText
@import common.views.html.widgets.base.csrfTokenHiddenField
@import common.views.html.widgets.listRadioGroup

@main(
    progress = Some(Messages("acquire_progress_4")),
    title = Messages("acquire_vehiclelookup.title"),
    currentForm = Some(viewModel.form)
) {

    <div class="two-col clearfix vehicle-lookup">

        <div id="trader-details" class="first-col trader-details">
            <h2>@Messages("acquire_vehiclelookup.p2")</h2>

            <dl class="playback">
                <dt>@Messages("acquire_vehiclelookup.tradernamelabel")</dt>
                <dd>@viewModel.traderName</dd>
                <dt>@Messages("acquire_vehiclelookup.traderaddresslabel")</dt>
                <dd>@for(addr <- viewModel.address.dropRight(1)) {@addr<br/>}</dd>
                <dt>@Messages("acquire_vehiclelookup.traderpostcodelabel")</dt>
                <dd>@viewModel.address.takeRight(1)</dd>
                <dt>@Messages("acquire_vehiclelookup.traderemaillabel")</dt>
                <dd>@viewModel.email.getOrElse(Messages("acquire_email_not_entered"))</dd>
            </dl>
            <div class="img-wrap img-wrap-desktop">
                <h2>@Messages("acquire_vehiclelookup.img.h2")</h2>
                <img src="@routes.Assets.at("images/document-reference-number.png")" alt="@Messages("acquire_vehiclelookup.img.alt")" />
            </div>
        </div>

        <div class="second-col uppercase-input">
            <div class="form-steps">
                <div class="step uppercase-input">
                    @form(action = controllers.routes.VehicleLookup.submit()) {
                        @csrfTokenHiddenField()

                        <h2>@Messages("acquire_vehiclelookup.p1")</h2>

                        @valtechInputText(viewModel.form(VehicleRegistrationNumberId), args =
                            Map('_label -> Messages("acquire_vehiclelookup.vrninputlabel"),
                                'maxLength -> VehicleRegistrationNumber.MaxLength,
                                '_showConstraints -> false,
                                'autofocus -> true
                            )
                         )<commit_msg>Changed play back of postcode so it is part of the address rather than displayed separately<commit_after>@(viewModel: models.VehicleLookupViewModel
)(implicit lang: Lang,
  token: uk.gov.dvla.vehicles.presentation.common.filters.CsrfPreventionAction.CsrfPreventionToken,
  config: utils.helpers.Config
)

@import views.acquire.VehicleLookup.{BackId, SubmitId, VehicleSoldTo_Private, VehicleSoldTo_Business}
@import views.html.acquire.main
@import views.html.helper.form
@import models.VehicleLookupFormModel.Form.{DocumentReferenceNumberId, VehicleRegistrationNumberId, VehicleSoldToId}
@import uk.gov.dvla.vehicles.presentation.common
@import common.mappings.{DocumentReferenceNumber, VehicleRegistrationNumber}
@import common.views.helpers.BaseTemplate.fieldConstructor
@import common.views.html.widgets.base.valtechInputText
@import common.views.html.widgets.base.csrfTokenHiddenField
@import common.views.html.widgets.listRadioGroup

@main(
    progress = Some(Messages("acquire_progress_4")),
    title = Messages("acquire_vehiclelookup.title"),
    currentForm = Some(viewModel.form)
) {

    <div class="two-col clearfix vehicle-lookup">

        <div id="trader-details" class="first-col trader-details">
            <h2>@Messages("acquire_vehiclelookup.p2")</h2>

            <dl class="playback">
                <dt>@Messages("acquire_vehiclelookup.tradernamelabel")</dt>
                <dd>@viewModel.traderName</dd>
                <dt>@Messages("acquire_vehiclelookup.traderaddresslabel")</dt>
                <dd>@for(addr <- viewModel.address) {@addr<br/>}</dd>
                <dt>@Messages("acquire_vehiclelookup.traderemaillabel")</dt>
                <dd>@viewModel.email.getOrElse(Messages("acquire_email_not_entered"))</dd>
            </dl>
            <div class="img-wrap img-wrap-desktop">
                <h2>@Messages("acquire_vehiclelookup.img.h2")</h2>
                <img src="@routes.Assets.at("images/document-reference-number.png")" alt="@Messages("acquire_vehiclelookup.img.alt")" />
            </div>
        </div>

        <div class="second-col uppercase-input">
            <div class="form-steps">
                <div class="step uppercase-input">
                    @form(action = controllers.routes.VehicleLookup.submit()) {
                        @csrfTokenHiddenField()

                        <h2>@Messages("acquire_vehiclelookup.p1")</h2>

                        @valtechInputText(viewModel.form(VehicleRegistrationNumberId), args =
                            Map('_label -> Messages("acquire_vehiclelookup.vrninputlabel"),
                                'maxLength -> VehicleRegistrationNumber.MaxLength,
                                '_showConstraints -> false,
                                'autofocus -> true
                            )
                         )
{'fraction_non_alphanumeric': 0.12351709699930216, 'fraction_numerical': 0.0038381018841591066, 'mean_word_length': 2.675, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 75, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1777906', 'n_tokens_mistral': 1687, 'n_tokens_neox': 1613, 'n_words': 203}