|
404 | 404 | <label class="control-label"><%=IdentityManagementEndpointUtil.i18n(recoveryResourceBundle, "First.name")%>*</label>
|
405 | 405 | <input id="firstNameUserInput" type="text" name="http://wso2.org/claims/givenname" class="form-control"
|
406 | 406 | <% if (firstNamePII.getRequired() || !piisConfigured) {%> required <%}%>
|
407 |
| - <% if (skipSignUpEnableCheck && StringUtils.isNotEmpty(firstNameValue)) { %> |
408 |
| - value="<%= Encode.forHtmlAttribute(firstNameValue)%>" disabled <% } %> |
| 407 | + <% if (skipSignUpEnableCheck && StringUtils.isNotEmpty(firstNameValue)) { %> disabled <% } %> |
| 408 | + <% if (StringUtils.isNotEmpty(firstNameValue)) { %> |
| 409 | + value="<%= Encode.forHtmlAttribute(firstNameValue)%>"<% } %> |
409 | 410 | placeholder="<%=IdentityManagementEndpointUtil.i18n(recoveryResourceBundle, "First.name")%>*"/>
|
410 | 411 | <div class="mt-1" id="firstname-error-msg" hidden="hidden">
|
411 | 412 | <i class="red exclamation circle fitted icon"></i>
|
|
423 | 424 | <label class="control-label"><%=IdentityManagementEndpointUtil.i18n(recoveryResourceBundle, "Last.name")%>*</label>
|
424 | 425 | <input id="lastNameUserInput" type="text" name="http://wso2.org/claims/lastname" class="form-control"
|
425 | 426 | <% if (lastNamePII.getRequired() || !piisConfigured) {%> required <%}%>
|
426 |
| - <% if (skipSignUpEnableCheck && StringUtils.isNotEmpty(lastNameValue)) { %> |
427 |
| - value="<%= Encode.forHtmlAttribute(lastNameValue)%>" disabled <% } %> |
| 427 | + <% if (skipSignUpEnableCheck && StringUtils.isNotEmpty(lastNameValue)) { %> disabled <% } %> |
| 428 | + <% if (StringUtils.isNotEmpty(lastNameValue)) { %> |
| 429 | + value="<%= Encode.forHtmlAttribute(lastNameValue)%>"<% } %> |
428 | 430 | placeholder="<%=IdentityManagementEndpointUtil.i18n(recoveryResourceBundle, "Last.name")%>*"
|
429 | 431 | />
|
430 | 432 | <div class="mt-1" id="lastname-error-msg" hidden="hidden">
|
|
630 | 632 | <% if (claim.getRequired()) { %>
|
631 | 633 | required
|
632 | 634 | <% }%>
|
633 |
| - <% if(skipSignUpEnableCheck && StringUtils.isNotEmpty(claimValue)) {%> |
634 |
| - value="<%= Encode.forHtmlAttribute(claimValue)%>" disabled<%}%> |
| 635 | + <% if (skipSignUpEnableCheck && StringUtils.isNotEmpty(claimValue)) {%> disabled <%}%> |
| 636 | + <% if (StringUtils.isNotEmpty(claimValue)) {%> |
| 637 | + value="<%= Encode.forHtmlAttribute(claimValue)%>"<%}%> |
635 | 638 | />
|
636 | 639 | <i class="dropdown icon"></i>
|
637 | 640 | <div class="default text">Enter Country</div>
|
|
653 | 656 | name="<%= Encode.forHtmlAttribute(claimURI) %>"
|
654 | 657 | id="birthOfDate"
|
655 | 658 | placeholder="Enter Birth Date"
|
656 |
| - <% if(skipSignUpEnableCheck && StringUtils.isNotEmpty(claimValue)) {%> |
657 |
| - value="<%= Encode.forHtmlAttribute(claimValue)%>" disabled<%}%> |
| 659 | + <% if (skipSignUpEnableCheck && StringUtils.isNotEmpty(claimValue)) {%> |
| 660 | + disabled<% } %> |
| 661 | + <% if (StringUtils.isNotEmpty(claimValue)) { %> |
| 662 | + value="<%= Encode.forHtmlAttribute(claimValue)%>"<% } %> |
658 | 663 | />
|
659 | 664 | </div>
|
660 | 665 | </div>
|
|
675 | 680 | placeholder="<%=IdentityManagementEndpointUtil.i18nBase64(
|
676 | 681 | recoveryResourceBundle, claim.getDisplayName())%>"
|
677 | 682 | <% }%>
|
678 |
| - <% if(skipSignUpEnableCheck && StringUtils.isNotEmpty(claimValue)) {%> |
679 |
| - value="<%= Encode.forHtmlAttribute(claimValue)%>" disabled<%}%> |
| 683 | + <% if (skipSignUpEnableCheck && StringUtils.isNotEmpty(claimValue)) {%> |
| 684 | + disabled<% } %> |
| 685 | + <% if (StringUtils.isNotEmpty(claimValue)) { %> |
| 686 | + value="<%= Encode.forHtmlAttribute(claimValue)%>"<% } %> |
680 | 687 | />
|
681 | 688 | <% } %>
|
682 | 689 | </div>
|
|
0 commit comments