@(field: play.api.data.Field, args: Map[Symbol, Any] = Map.empty)(implicit lang: Lang)

@import helper._
@import utils.helpers.CryptoHelper
@import utils.helpers._
@import views.html.helper.base._
@import utils.helpers.BaseTemplate._

@input(field,args.toSeq: _*){(id, name, value, htmlArgs) =>
    @addressLines(field(mappings.common.AddressLines.id),
        args = Map('_label -> Messages("address.lines.label")))

    @valtechInputText(field(mappings.common.Postcode.postcodeId),
        args = Map(
            'placeholder -> Messages("address.postcode.label.prompt"),
            '_label -> Messages("address.postcode.label"),
            '_showConstraints -> false,
            'maxLength -> mappings.common.AddressAndPostcode.postcodeMaxLength, // Must be set independently of the pattern as the pattern is only checked when the user submits.
            'title -> Messages("address.postcode.validation")))
}
@(field: play.api.data.Field, args: Map[Symbol, Any] = Map.empty)(implicit lang: Lang)

@import helper._
@import utils.helpers.CryptoHelper
@import utils.helpers._
@import views.html.helper.base._
@import utils.helpers.BaseTemplate._

@input(field,args.toSeq: _*){(id, name, value, htmlArgs) =>
    @addressLines(field(mappings.common.AddressLines.id),
        args = Map('_label -> Messages("address.lines.label")))

    @valtechInputText(field(mappings.common.Postcode.postcodeId),
        args = Map(
            'placeholder -> Messages("address.postcode.label.prompt"),
            '_label -> Messages("address.postcode.label"),
            '_showConstraints -> false,
            'maxLength -> mappings.common.AddressAndPostcode.postcodeMaxLength))
}
Remove unneeded title field from post code on manual address entry
Remove unneeded title field from post code on manual address entry
