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

use proper input variable in each template

parent aeff1881
No related branches found
No related tags found
No related merge requests found
...@@ -266,9 +266,6 @@ sub req_select_sp { ...@@ -266,9 +266,6 @@ sub req_select_sp {
$self->respond( $self->respond(
template => 'select_sp.tt2.html', template => 'select_sp.tt2.html',
data => { data => {
env => {
SCRIPT_NAME => $ENV{SCRIPT_NAME}
},
metadata => $metadata->parse(type => 'sp'), metadata => $metadata->parse(type => 'sp'),
federation => $federation, federation => $federation,
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
[% lh.maketext("An email challenge including a validation token has been emailed to you at [_1].", email) %] [% lh.maketext("An email challenge including a validation token has been emailed to you at [_1].", email) %]
[% lh.maketext("Please copy and paste the validation token in the form below to proof that you are administrator of this service.") %] [% lh.maketext("Please copy and paste the validation token in the form below to proof that you are administrator of this service.") %]
</p> </p>
<form action="[% env.SCRIPT_NAME %]" method="get"> <form action="[% app.url %]" method="get">
<label for="token">[% lh.maketext("Please provide the validation token here:") %]</label> <label for="token">[% lh.maketext("Please provide the validation token here:") %]</label>
<input name="token" value="" id="token" type="text" class="required error"/> <input name="token" value="" id="token" type="text" class="required error"/>
<input type="hidden" name="entityid" value="[% entityid %]"/> <input type="hidden" name="entityid" value="[% entityid %]"/>
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<p>[% lh.maketext("Before you can create test accounts at this Identity Provider, we need to ensure you are a legitimate administrator of '[_1]'.", sp.displayname) %]</p> <p>[% lh.maketext("Before you can create test accounts at this Identity Provider, we need to ensure you are a legitimate administrator of '[_1]'.", sp.displayname) %]</p>
[% IF sp.contacts.defined %] [% IF sp.contacts.defined %]
<form action="[% env.SCRIPT_NAME %]" method="get"> <form action="[% app.url %]" method="get">
<p>[% lh.maketext("Select the email address where an email challenge can be sent to validate your identity:") %]</p> <p>[% lh.maketext("Select the email address where an email challenge can be sent to validate your identity:") %]</p>
[% FOREACH email IN sp.contacts.sort %] [% FOREACH email IN sp.contacts.sort %]
<input id="[% email %]" name="email" value="[% email %]" type="radio" class="required"/> <input id="[% email %]" name="email" value="[% email %]" type="radio" class="required"/>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<div class="content clearfix"> <div class="content clearfix">
<h2>[% lh.maketext("Select your federation") %]</h2> <h2>[% lh.maketext("Select your federation") %]</h2>
<form action="[% env.SCRIPT_NAME %]" method="get"> <form action="[% app.url %]" method="get">
<p>[% lh.maketext("Select the federation corresponding to the service you want to test::") %]</p> <p>[% lh.maketext("Select the federation corresponding to the service you want to test::") %]</p>
[% FOREACH federation IN federations.sort %] [% FOREACH federation IN federations.sort %]
<input id="[% federation %]" name="federation" value="[% federation %]" type="radio" class="required"/> <input id="[% federation %]" name="federation" value="[% federation %]" type="radio" class="required"/>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
[% lh.maketext("You must be an administrator of that service to continue afterwards.") %] [% lh.maketext("You must be an administrator of that service to continue afterwards.") %]
</p> </p>
<form action="[% env.SCRIPT_NAME %]" method="get"> <form action="[% app.url %]" method="get">
<label for="entityid">[% lh.maketext("Type the name or entityID of service to test:") %]</label> <label for="entityid">[% lh.maketext("Type the name or entityID of service to test:") %]</label>
<br/> <br/>
<select id="entityid" name="entityid" class="required"> <select id="entityid" name="entityid" class="required">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment