Skip to content

Commit

Permalink
Merge pull request #7599 from IQSS/7566-input-labels-add-dv
Browse files Browse the repository at this point in the history
Fixed accessible input labels on add dv form [ref #7566]
  • Loading branch information
kcondon committed Feb 16, 2021
2 parents ba75c9e + a9725b0 commit b7e7a3b
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 112 deletions.
1 change: 1 addition & 0 deletions src/main/java/propertyFiles/Bundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ contact.msg=Message
contact.msg.required=Message text is required.
contact.send=Send Message
contact.question=Please fill this out to prove you are not a robot.
contact.sum.title=Human Access Validation Answer
contact.sum.required=Value is required.
contact.sum.invalid=Incorrect sum, please try again.
contact.sum.converterMessage=Please enter a number.
Expand Down
3 changes: 2 additions & 1 deletion src/main/webapp/contactFormFragment.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
<h:outputFormat value="#{sendFeedbackDialog.op1} + #{sendFeedbackDialog.op2} = "/>
<p:inputText id="messageSum" label="Sum" size="4" value="#{sendFeedbackDialog.userSum}" converterMessage="#{bundle['contact.sum.converterMessage']}"
required="#{param['DO_VALIDATION']}" requiredMessage="#{bundle['contact.sum.required']}"
validatorMessage="#{bundle['contact.sum.invalid']}" validator="#{sendFeedbackDialog.validateUserSum}">
validatorMessage="#{bundle['contact.sum.invalid']}" validator="#{sendFeedbackDialog.validateUserSum}"
title="#{bundle['contact.sum.title']}">
<f:convertNumber integerOnly="true" type="number"/>
</p:inputText>
<h:message for="messageSum" styleClass="bg-danger text-danger"/>
Expand Down

0 comments on commit b7e7a3b

Please sign in to comment.