Skip to content

Commit

Permalink
#2 Added dynamic fill of organisation
Browse files Browse the repository at this point in the history
  • Loading branch information
skyrun2001 committed Apr 11, 2020
1 parent fd34272 commit b5ef5be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rmtheme/login/template.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@
document.title= " ${kcSanitize(msg("loginTitle",('Remedymatch')))?no_esc}";
} else if(window.location.href.includes("registration")){
document.title = "${kcSanitize(msg("registerWithTitle",('Remedymatch')))?no_esc}";
var organisations= "${msg('organisations')}";
var organisation = organisations.split(',');
var options='';
for(var i = 0; i < organisation.length; i++)
options += '<option value="'+organisation[i]+'" />';
document.getElementById('type_list').innerHTML = options;
} else if(window.location.href.includes("reset-credentials")){
document.title = "${msg("emailForgotTitle")}";
}
Expand Down

0 comments on commit b5ef5be

Please sign in to comment.