Skip to content
Snippets Groups Projects
Commit 41a00f01 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

fix templates file path root

parent 091397df
Branches
Tags
No related merge requests found
...@@ -89,7 +89,7 @@ sub update_ssp_authsources { ...@@ -89,7 +89,7 @@ sub update_ssp_authsources {
#chdir $Conf::global{root_manager_dir}; #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'; my $output_file = 'conf/valid-accounts.php';
#printf "Trace : in=%s, out=%s\n", $template_file, $output_file; #printf "Trace : in=%s, out=%s\n", $template_file, $output_file;
......
...@@ -176,9 +176,9 @@ sub respond { ...@@ -176,9 +176,9 @@ sub respond {
## nobanner is used to do AJAX to get only pieces of HTML to load in the web client ## nobanner is used to do AJAX to get only pieces of HTML to load in the web client
if ($self->{in}->{style} eq 'nobanner') { if ($self->{in}->{style} eq 'nobanner') {
$template = 'templates/web/index-nobanner.tt2.html'; $template = 'web/index-nobanner.tt2.html';
} else { } else {
$template = 'templates/web/index.tt2.html'; $template = 'web/index.tt2.html';
} }
unless ($tt2->process($template, $self->{out}, \*STDOUT)) { unless ($tt2->process($template, $self->{out}, \*STDOUT)) {
...@@ -201,7 +201,7 @@ sub respond { ...@@ -201,7 +201,7 @@ sub respond {
if (@errors_admin) { if (@errors_admin) {
$self->{out}->{subject} = 'Error notification - web interface'; $self->{out}->{subject} = 'Error notification - web interface';
IdPAccountManager::Tools::mail_notice( IdPAccountManager::Tools::mail_notice(
template => 'templates/mail/notification_generic_error.tt2.eml', template => 'mail/notification_generic_error.tt2.eml',
data => $self->{out}, data => $self->{out},
logger => $self->{logger}, logger => $self->{logger},
conf => $self->{configuration}, conf => $self->{configuration},
...@@ -472,7 +472,7 @@ sub req_generate_token { ...@@ -472,7 +472,7 @@ sub req_generate_token {
## Send the challenge email with the token ## Send the challenge email with the token
IdPAccountManager::Tools::mail_notice( IdPAccountManager::Tools::mail_notice(
template => 'templates/mail/send_authentication_token.tt2.eml', template => 'mail/send_authentication_token.tt2.eml',
to => $self->{in}->{email_address}, to => $self->{in}->{email_address},
data => $self->{out}, data => $self->{out},
logger => $self->{logger} logger => $self->{logger}
......
...@@ -2,42 +2,42 @@ ...@@ -2,42 +2,42 @@
[% IF action == 'select_sp' %] [% IF action == 'select_sp' %]
[% TRY %] [% TRY %]
[% PROCESS 'templates/web/select_sp.tt2.html' %] [% PROCESS 'web/select_sp.tt2.html' %]
[% CATCH %] [% CATCH %]
An error occured An error occured
[% END %] [% END %]
[% ELSIF action == 'account_wizard' %] [% ELSIF action == 'account_wizard' %]
[% TRY %] [% TRY %]
[% PROCESS 'templates/web/account_wizard.tt2.html' %] [% PROCESS 'web/account_wizard.tt2.html' %]
[% CATCH %] [% CATCH %]
An error occured An error occured
[% END %] [% END %]
[% ELSIF action == 'select_sp' %] [% ELSIF action == 'select_sp' %]
[% TRY %] [% TRY %]
[% PROCESS 'templates/web/select_sp.tt2.html' %] [% PROCESS 'web/select_sp.tt2.html' %]
[% CATCH %] [% CATCH %]
An error occured An error occured
[% END %] [% END %]
[% ELSIF action == 'generate_token' %] [% ELSIF action == 'generate_token' %]
[% TRY %] [% TRY %]
[% PROCESS 'templates/web/generate_token.tt2.html' %] [% PROCESS 'web/generate_token.tt2.html' %]
[% CATCH %] [% CATCH %]
An error occured An error occured
[% END %] [% END %]
[% ELSIF action == 'validate_token' %] [% ELSIF action == 'validate_token' %]
[% TRY %] [% TRY %]
[% PROCESS 'templates/web/validate_token.tt2.html' %] [% PROCESS 'web/validate_token.tt2.html' %]
[% CATCH %] [% CATCH %]
An error occured An error occured
[% END %] [% END %]
[% ELSIF action == 'home' %] [% ELSIF action == 'home' %]
[% TRY %] [% TRY %]
[% PROCESS 'templates/web/home.tt2.html' %] [% PROCESS 'web/home.tt2.html' %]
[% CATCH %] [% CATCH %]
An error occured An error occured
[% END %] [% END %]
......
...@@ -6,8 +6,8 @@ html1/DTD/xhtml1-transitional.dtd"> ...@@ -6,8 +6,8 @@ html1/DTD/xhtml1-transitional.dtd">
[% IF errors %] [% IF errors %]
<div class="ui-widget"> <div class="ui-widget">
[% PROCESS 'templates/web/errors.tt2.html' %] [% PROCESS 'web/errors.tt2.html' %]
</div> </div>
[% ELSE %] [% ELSE %]
[% PROCESS 'templates/web/content.tt2.html' %] [% PROCESS 'web/content.tt2.html' %]
[% END %] [% END %]
...@@ -185,7 +185,7 @@ jQuery(function($){ ...@@ -185,7 +185,7 @@ jQuery(function($){
</SCRIPT> </SCRIPT>
<title> [% PROCESS 'templates/web/title.tt2.html' %] </title> <title> [% PROCESS 'web/title.tt2.html' %] </title>
</head> </head>
...@@ -197,7 +197,7 @@ jQuery(function($){ ...@@ -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> <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> </ul>
<div class="title"> <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> </div>
</header> </header>
...@@ -214,18 +214,18 @@ jQuery(function($){ ...@@ -214,18 +214,18 @@ jQuery(function($){
[% IF errors %] [% IF errors %]
<div class="ui-widget"> <div class="ui-widget">
[% PROCESS 'templates/web/errors.tt2.html' %] [% PROCESS 'web/errors.tt2.html' %]
</div> </div>
[% ELSE %] [% ELSE %]
[% IF notifications %] [% IF notifications %]
<div class="ui-widget"> <div class="ui-widget">
[% PROCESS 'templates/web/notices.tt2.html' %] [% PROCESS 'web/notices.tt2.html' %]
</b></div> </b></div>
[% END %] <!-- notifications --> [% END %] <!-- notifications -->
[% PROCESS 'templates/web/content.tt2.html' %] [% PROCESS 'web/content.tt2.html' %]
[% END %] <!-- IF errors --> [% END %] <!-- IF errors -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment