Skip to content

Commit

Permalink
Merge pull request #100 from hmrc/DC-6943
Browse files Browse the repository at this point in the history
DC-6943: fix welsh translation for reply message limit
  • Loading branch information
muralishub authored Dec 2, 2024
2 parents 37a3951 + aadb2d9 commit b0b82a1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions app/views/partials/messageReply.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
* limitations under the License.
*@

@import uk.gov.hmrc.govukfrontend.views.viewmodels.charactercount.CharacterCount
@import uk.gov.hmrc.hmrcfrontend.views.Aliases.CharacterCount
@import views.viewmodels.MessageReply
@import forms.MessageFormProvider.CONTENT_MAX_LENGTH

@this(
formWithCSRF: FormWithCSRF,
govukCharacterCount: GovukCharacterCount,
govukButton: GovukButton
govukButton: GovukButton,
hmrcCharacterCount: HmrcCharacterCount
)

@(reply: MessageReply)(implicit messages: Messages, requestHeader: RequestHeader, request: Request[_])
Expand All @@ -39,7 +40,7 @@
<hr aria-hidden="true" class="govuk-section-break govuk-section-break--m govuk-section-break--visible"/>
@formWithCSRF(Call(method = "POST", url = replyFormUrl)) {

@govukCharacterCount(CharacterCount(
@hmrcCharacterCount(CharacterCount(
id = "reply-form",
name = "content",
maxLength = Some(CONTENT_MAX_LENGTH),
Expand All @@ -51,13 +52,11 @@
),
errorMessage = formErrors.headOption.map(error => ErrorMessage(content = Text(messages(error.message, error.args:_*)))),
value = Some(content),
classes = "",
attributes = Map("spellcheck" -> "true")
))

@govukButton(Button(
content = Text(messages("conversation.reply.form.send.button"))
))
content = Text(messages("conversation.reply.form.send.button"))))
}
} else {
<div class="govuk-body" id="reply-link">
Expand Down

0 comments on commit b0b82a1

Please sign in to comment.