Skip to content

Commit

Permalink
Merge pull request #2283 from hongwei1/develop
Browse files Browse the repository at this point in the history
feature/added webui_user_invitation_notice_text
  • Loading branch information
simonredfern authored Oct 5, 2023
2 parents edbf346 + b2febe5 commit ca9684a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions obp-api/src/main/resources/props/sample.props.template
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,9 @@ default_auth_context_update_request_key=CUSTOMER_NUMBER
# user_invitation.ttl.seconds=86400
# User Invitation is mandatory in case of onboarding a user
# user_invitation.mandatory=false
# webui_user_invitation_notice_text=Thank you for expressing interest in the API Playground. At this time access to the \
API Playground is on an invitation basis only. Those invited will be invited to join \
by email, where you will be able to complete registration.

# User (Developer) Invitation
webui_post_user_invitation_submit_button_value=Register as a Developer
Expand Down
6 changes: 6 additions & 0 deletions obp-api/src/main/scala/code/snippet/WebUI.scala
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ class WebUI extends MdcLoggable{
"#main-about [style]" #> ("background-image: url(" + getWebUiPropsValue("webui_index_page_about_section_background_image_url", "") + ");")
}

def webuiUserInvitationNoticeText: CssSel = {
"#webui_user_invitation_notice_text *" #> scala.xml.Unparsed(getWebUiPropsValue("webui_user_invitation_notice_text",
"Thank you for expressing interest in the API Playground. At this time access to the API Playground is on an invitation basis only. " +
"Those invited will be invited to join by email, where you will be able to complete registration."))
}

def aboutText: CssSel = {
"#main-about-text *" #> scala.xml.Unparsed(getWebUiPropsValue("webui_index_page_about_section_text", ""))
}
Expand Down
4 changes: 2 additions & 2 deletions obp-api/src/main/webapp/user-invitation-info.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
TESOBE (http://www.tesobe.com/)
-->
<div id="register-consumer" data-lift="surround?with=default;at=content" tabindex="-1">
<div id="register-consumer-explanation">
<div id="register-consumer-explanation" data-lift="WebUI.webuiUserInvitationNoticeText">
<h1>User invitation info</h1>
<p>Thank you for expressing interest in the API Playground. At this time access to the API Playground is on an invitation basis only. Those invited will be invited to join by email, where you will be able to complete registration.</p>
<p id ="webui_user_invitation_notice_text">Thank you for expressing interest in the API Playground. At this time access to the API Playground is on an invitation basis only. Those invited will be invited to join by email, where you will be able to complete registration.</p>
</div>
</div>

Expand Down

0 comments on commit ca9684a

Please sign in to comment.