diff --git a/lib/IdPAccountManager/Tools.pm b/lib/IdPAccountManager/Tools.pm index 03bcbded683b10ac2558f8b95320f7d941a8486f..b0691923be942c22e791fb6d9e942e0d5b86fbc2 100644 --- a/lib/IdPAccountManager/Tools.pm +++ b/lib/IdPAccountManager/Tools.pm @@ -89,7 +89,7 @@ sub update_ssp_authsources { #chdir $Conf::global{root_manager_dir}; - my $template_file = 'templates/accountProfiles/valid-accounts.php.tt2'; + my $template_file = 'accountProfiles/valid-accounts.php.tt2'; my $output_file = 'conf/valid-accounts.php'; #printf "Trace : in=%s, out=%s\n", $template_file, $output_file; diff --git a/lib/IdPAccountManager/WebRequest.pm b/lib/IdPAccountManager/WebRequest.pm index c6f30417b125c39fe409e771ee0a43673395e1c4..02e245311fbaebdb38aa094271199a9a6dc30d4b 100755 --- a/lib/IdPAccountManager/WebRequest.pm +++ b/lib/IdPAccountManager/WebRequest.pm @@ -176,9 +176,9 @@ sub respond { ## nobanner is used to do AJAX to get only pieces of HTML to load in the web client if ($self->{in}->{style} eq 'nobanner') { - $template = 'templates/web/index-nobanner.tt2.html'; + $template = 'web/index-nobanner.tt2.html'; } else { - $template = 'templates/web/index.tt2.html'; + $template = 'web/index.tt2.html'; } unless ($tt2->process($template, $self->{out}, \*STDOUT)) { @@ -201,7 +201,7 @@ sub respond { if (@errors_admin) { $self->{out}->{subject} = 'Error notification - web interface'; IdPAccountManager::Tools::mail_notice( - template => 'templates/mail/notification_generic_error.tt2.eml', + template => 'mail/notification_generic_error.tt2.eml', data => $self->{out}, logger => $self->{logger}, conf => $self->{configuration}, @@ -472,7 +472,7 @@ sub req_generate_token { ## Send the challenge email with the token IdPAccountManager::Tools::mail_notice( - template => 'templates/mail/send_authentication_token.tt2.eml', + template => 'mail/send_authentication_token.tt2.eml', to => $self->{in}->{email_address}, data => $self->{out}, logger => $self->{logger} diff --git a/templates/web/content.tt2.html b/templates/web/content.tt2.html index 1ba133154bb6447681e25bb5e6b4246a04387abd..db63e0351bc9fc32633d167122cdb10e50d5eb9b 100644 --- a/templates/web/content.tt2.html +++ b/templates/web/content.tt2.html @@ -2,42 +2,42 @@ [% IF action == 'select_sp' %] [% TRY %] - [% PROCESS 'templates/web/select_sp.tt2.html' %] + [% PROCESS 'web/select_sp.tt2.html' %] [% CATCH %] An error occured [% END %] [% ELSIF action == 'account_wizard' %] [% TRY %] - [% PROCESS 'templates/web/account_wizard.tt2.html' %] + [% PROCESS 'web/account_wizard.tt2.html' %] [% CATCH %] An error occured [% END %] [% ELSIF action == 'select_sp' %] [% TRY %] - [% PROCESS 'templates/web/select_sp.tt2.html' %] + [% PROCESS 'web/select_sp.tt2.html' %] [% CATCH %] An error occured [% END %] [% ELSIF action == 'generate_token' %] [% TRY %] - [% PROCESS 'templates/web/generate_token.tt2.html' %] + [% PROCESS 'web/generate_token.tt2.html' %] [% CATCH %] An error occured [% END %] [% ELSIF action == 'validate_token' %] [% TRY %] - [% PROCESS 'templates/web/validate_token.tt2.html' %] + [% PROCESS 'web/validate_token.tt2.html' %] [% CATCH %] An error occured [% END %] [% ELSIF action == 'home' %] [% TRY %] - [% PROCESS 'templates/web/home.tt2.html' %] + [% PROCESS 'web/home.tt2.html' %] [% CATCH %] An error occured [% END %] diff --git a/templates/web/index-nobanner.tt2.html b/templates/web/index-nobanner.tt2.html index 76fc3eef4e511e21e77e3754e28e011f6b522d22..5d42fb6fea98a864e0605ab70276dd8a0a62aa03 100644 --- a/templates/web/index-nobanner.tt2.html +++ b/templates/web/index-nobanner.tt2.html @@ -6,8 +6,8 @@ html1/DTD/xhtml1-transitional.dtd"> [% IF errors %] <div class="ui-widget"> -[% PROCESS 'templates/web/errors.tt2.html' %] +[% PROCESS 'web/errors.tt2.html' %] </div> [% ELSE %] -[% PROCESS 'templates/web/content.tt2.html' %] +[% PROCESS 'web/content.tt2.html' %] [% END %] diff --git a/templates/web/index.tt2.html b/templates/web/index.tt2.html index 0ca72083d7c372dee8a24137adaa36964d9aac71..a6752ff9b49414047be2c03e68a6d8bc371bb597 100644 --- a/templates/web/index.tt2.html +++ b/templates/web/index.tt2.html @@ -185,7 +185,7 @@ jQuery(function($){ </SCRIPT> -<title> [% PROCESS 'templates/web/title.tt2.html' %] </title> +<title> [% PROCESS 'web/title.tt2.html' %] </title> </head> @@ -197,7 +197,7 @@ jQuery(function($){ <li class="logo align-right"><a href="http://www.geant.net" title="Geant home page" target="_blank"><img alt="GEANT logo" width="100" src="/resources/images/geant_logo_rgb_300dpi.jpg"/></a></li> </ul> <div class="title"> - <span class=""><h1>[% PROCESS 'templates/web/title.tt2.html' %]</h1></span> + <span class=""><h1>[% PROCESS 'web/title.tt2.html' %]</h1></span> </div> </header> @@ -214,18 +214,18 @@ jQuery(function($){ [% IF errors %] <div class="ui-widget"> -[% PROCESS 'templates/web/errors.tt2.html' %] +[% PROCESS 'web/errors.tt2.html' %] </div> [% ELSE %] [% IF notifications %] <div class="ui-widget"> -[% PROCESS 'templates/web/notices.tt2.html' %] +[% PROCESS 'web/notices.tt2.html' %] </b></div> [% END %] <!-- notifications --> -[% PROCESS 'templates/web/content.tt2.html' %] +[% PROCESS 'web/content.tt2.html' %] [% END %] <!-- IF errors -->