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

adapt to Mojolicious switch

parent cec42371
No related branches found
No related tags found
No related merge requests found
Showing
with 403 additions and 250 deletions
nobase_templates_DATA = \ apptemplatesdir = $(pkgdatadir)/templates
nobase_apptemplates_DATA = \
accounts/alumni1.tt2 \ accounts/alumni1.tt2 \
accounts/employee1.tt2 \ accounts/employee1.tt2 \
accounts/fullset1.tt2 \ accounts/fullset1.tt2 \
...@@ -14,23 +16,23 @@ nobase_templates_DATA = \ ...@@ -14,23 +16,23 @@ nobase_templates_DATA = \
mail/send_authentication_token.tt2.html \ mail/send_authentication_token.tt2.html \
other/accounts.csv.tt2 \ other/accounts.csv.tt2 \
other/accounts.php.tt2 \ other/accounts.php.tt2 \
web/edugain/errors.tt2.html \ web/edugain/errors.html.tt2 \
web/edugain/home.tt2.html \ web/edugain/home.html.tt2 \
web/edugain/index.tt2.html \ web/edugain/index.html.tt2 \
web/edugain/select_sp.tt2.html \ web/edugain/select_sp.html.tt2 \
web/edugain/select_email.tt2.html \ web/edugain/select_email.html.tt2 \
web/edugain/complete_challenge.tt2.html \ web/edugain/complete_challenge.html.tt2 \
web/edugain/create_accounts.tt2.html \ web/edugain/create_accounts.html.tt2 \
web/renater/errors.tt2.html \ web/renater/errors.html.tt2 \
web/renater/home.tt2.html \ web/renater/home.html.tt2 \
web/renater/index.tt2.html \ web/renater/index.html.tt2 \
web/renater/select_sp.tt2.html \ web/renater/select_sp.html.tt2 \
web/renater/select_email.tt2.html \ web/renater/select_email.html.tt2 \
web/renater/complete_challenge.tt2.html \ web/renater/complete_challenge.html.tt2 \
web/renater/create_accounts.tt2.html web/renater/create_accounts.html.tt2
EXTRA_DIST = $(nobase_templates_DATA) EXTRA_DIST = $(nobase_apptemplates_DATA)
install-data-hook: install-data-hook:
cd $(DESTDIR)$(templatesdir)/web && \ cd $(DESTDIR)$(apptemplatesdir)/web && \
$(LN_S) -f edugain default $(LN_S) -f edugain default
[% WRAPPER index.tt2.html %] [% WRAPPER index.html.tt2 %]
<form class="wizard clearfix" action="[% app.url %]" method="get"> <form class="wizard clearfix" action="[% c.url_for('step4') %]" method="get">
<div class="steps clearfix"> <div class="steps clearfix">
<ol> <ol>
<li class="done">[% lh.maketext("Select your service provider") %]</li> <li class="done">[% c.loc("Select your service provider") %]</li>
<li class="done">[% lh.maketext("Select your email address") %]</li> <li class="done">[% c.loc("Select your email address") %]</li>
<li class="current">[% lh.maketext("Complete email challenge") %]</li> <li class="current">[% c.loc("Complete email challenge") %]</li>
</ol> </ol>
</div> </div>
<div class="content clearfix"> <div class="content clearfix">
<h2>[% lh.maketext("Complete email challenge") %]</h2> <h2>[% c.loc("Complete email challenge") %]</h2>
<p> <p>
[% lh.maketext("An email challenge including a validation token has been emailed to you at [_1].", email) %] [% c.loc("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.") %] [% c.loc("Please copy and paste the validation token in the form below to proof that you are administrator of this service.") %]
</p> </p>
<fieldset> <fieldset>
<legend>[% lh.maketext("Please provide the validation token here:") %]</legend> <legend>[% c.loc("Please provide the validation token here:") %]</legend>
<input name="token" value="" id="token" type="text" class="required"/> <input name="token" value="" id="token" type="text" class="required"/>
</fieldset> </fieldset>
<fieldset> <fieldset>
<legend>[% lh.maketext("Accounts validity period, in days:") %]</legend> <legend>[% c.loc("Accounts validity period, in days:") %]</legend>
<input name="validity" value="[% validity %]" id="validity" type="number" class="required" min="1"/> <input name="validity" value="[% validity %]" id="validity" type="number" class="required" min="1"/>
</fieldset> </fieldset>
<fieldset> <fieldset>
<legend>[% lh.maketext("Account profiles:") %]</legend> <legend>[% c.loc("Account profiles:") %]</legend>
<ul class="columns4"> <ul class="columns4">
[% FOREACH profile IN profiles %] [% FOREACH profile IN profiles %]
[% template = profile _ '.tt2' %] [% template = profile _ '.tt2' %]
...@@ -42,14 +42,14 @@ ...@@ -42,14 +42,14 @@
</div> </div>
<div class="actions clearfix"> <div class="actions clearfix">
<button type="submit" class="button" name="action" value="select_email" formnovalidate>[% lh.maketext("Previous") %]</button> <button type="submit" class="button" formaction="[% c.url_for('step2') %]" formnovalidate>[% c.loc("Previous") %]</button>
<button type="submit" class="button" name="action" value="create_accounts">[% lh.maketext("Next") %]</button> <button type="submit" class="button">[% c.loc("Next") %]</button>
</div> </div>
</form> </form>
<script type="text/javascript"> <script type="text/javascript">
$( document ).ready(function() { $( document ).ready(function() {
$.validator.messages.required = "[% lh.maketext("This information is required") %]"; $.validator.messages.required = "[% c.loc("This information is required") %]";
$("form").validate(); $("form").validate();
}); });
</script> </script>
... ...
......
[% WRAPPER index.tt2.html %] [% WRAPPER index.html.tt2 %]
<div class="row"> <div class="row">
<div class="callout success"> <div class="callout success">
[% lh.maketext("<strong>Success:</strong> your identity as administrator of the Service Provider <strong>[_1]</strong> has been validated!", sp.entityid) %] [% c.loc("<strong>Success:</strong> your identity as administrator of the Service Provider <strong>[_1]</strong> has been validated!", sp.entityid) %]
</div> </div>
</div> </div>
<h2>[% lh.maketext("Test accounts created") %]</h2> <h2>[% c.loc("Test accounts created") %]</h2>
<p> <p>
[% lh.maketext("You can now use these test accounts to access your <a href=\"[_1]\">service provider</a>, using <strong>[_2]</strong> as identity provider.", sp.url, idp.name) %] [% c.loc("You can now use these test accounts to access your <a href=\"[_1]\">service provider</a>, using <strong>[_2]</strong> as identity provider.", sp.url, idp.name) %]
[% lh.maketext("If you need a customized test account with additional user attributes, you should contact <a href=\"mailto:[_1]\">[_1]</a>.", app.support_email) %] [% c.loc("If you need a customized test account with additional user attributes, you should contact <a href=\"mailto:[_1]\">[_1]</a>.", app.support_email) %]
</p> </p>
<p class="callout warning"> <p class="callout warning">
[% lh.maketext("This page won't be accessible again, you should either keep it open in your web browser, or <a href=\"[_1]\">download accounts in CSV format</a>.", download_url) %] [% c.loc("This page won't be accessible again, you should either keep it open in your web browser, or <a href=\"[_1]\">download accounts in CSV format</a>.", download_url) %]
</p> </p>
<div class="accounts row"> <div class="accounts row">
...@@ -20,30 +20,30 @@ ...@@ -20,30 +20,30 @@
[% template = account.profile() _ '.tt2' %] [% template = account.profile() _ '.tt2' %]
[% PROCESS $template scope=account.scope() id=account.id() | trim %] [% PROCESS $template scope=account.scope() id=account.id() | trim %]
<div class="account small-12 medium-6 large-4 columns"> <div class="account small-12 medium-6 large-4 columns">
<h3>[% lh.maketext("Account profile: [_1]", account.profile()) %]</h3> <h3>[% c.loc("Account profile: [_1]", account.profile()) %]</h3>
<div class="description">[% description.${lh.language_tag()} %].</div> <div class="description">[% description.${lh.language_tag()} %].</div>
<table> <table>
<tr> <tr>
<td><strong>[% lh.maketext("user name") %]</strong></td> <td><strong>[% c.loc("user name") %]</strong></td>
<td>user[% account.id() %]</td> <td>user[% account.id() %]</td>
</tr> </tr>
<tr> <tr>
<td><strong>[% lh.maketext("password") %]</strong></td> <td><strong>[% c.loc("password") %]</strong></td>
<td>[% account.password() %]</td> <td>[% account.password() %]</td>
</tr> </tr>
</table> </table>
<div class="text-center" > <div class="text-center" >
<button data-open="account_details_[% account.id() %]" id="show_account_details_[% account.id() %]">[% lh.maketext("show details") %]</button> <button data-open="account_details_[% account.id() %]" id="show_account_details_[% account.id() %]">[% c.loc("show details") %]</button>
</div> </div>
</div> </div>
<div class="account reveal" data-reveal id="account_details_[% account.id() %]"> <div class="account reveal" data-reveal id="account_details_[% account.id() %]">
<h3>[% lh.maketext("User attributes list") %]</h3> <h3>[% c.loc("User attributes list") %]</h3>
<div class="callout warning"> <div class="callout warning">
[% lh.maketext( [% c.loc(
"eduPersonAffiliation and eduPersonScopedAffiliation attributes are assigned <a href=\"[_1]\">quite differently from federation to federation</a>, therefore their values should be handled with great care." "eduPersonAffiliation and eduPersonScopedAffiliation attributes are assigned <a href=\"[_1]\">quite differently from federation to federation</a>, therefore their values should be handled with great care."
"http://tnc2010.terena.org/files/ePSA%20comparison%20v0%2006.ppt" "http://tnc2010.terena.org/files/ePSA%20comparison%20v0%2006.ppt"
) %] ) %]
...@@ -56,12 +56,12 @@ ...@@ -56,12 +56,12 @@
</tr> </tr>
[% END %] [% END %]
<tr> <tr>
<th>eduPersonTargetedID</th><td><i>[% lh.maketext("value dynamically generated for each SP") %]</i></td> <th>eduPersonTargetedID</th><td><i>[% c.loc("value dynamically generated for each SP") %]</i></td>
</tr> </tr>
</table> </table>
<div class="text-center" > <div class="text-center" >
<button data-close>[% lh.maketext("close") %]</button> <button data-close>[% c.loc("close") %]</button>
</div> </div>
</div> </div>
[% END %] [% END %]
...@@ -69,15 +69,15 @@ ...@@ -69,15 +69,15 @@
<div class="row"> <div class="row">
<div class="callout warning"> <div class="callout warning">
<p>[% lh.maketext("Note that these test accounts will automatically expire in [_1] days and that they can only be used to test federated login to your service provider <strong>[_2]</strong>.", days, sp.entityid) %]</p> <p>[% c.loc("Note that these test accounts will automatically expire in [_1] days and that they can only be used to test federated login to your service provider <strong>[_2]</strong>.", days, sp.entityid) %]</p>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="callout primary"> <div class="callout primary">
<strong>[% lh.maketext("Thank you for using the [_1] service", app.name) %]</strong> <strong>[% c.loc("Thank you for using the [_1] service", app.name) %]</strong>
</div> </div>
</div> </div>
<p class="text-center"><a href="[% app.url %]?action=select_sp" class="button">[% lh.maketext("Test another service") %]</a></p> <p class="text-center"><a href="[% c.url_for('step1') %]" class="button">[% c.loc("Test another service") %]</a></p>
[% END %] [% END %]
[% WRAPPER index.html.tt2 %]
<div class="small-12 medium-8 medium-centered columns">
<p class="callout alert text-center">
[% c.loc("Error:") %]
[% IF error == 'unknown_action' %]
[% c.loc("unknown action") %]
[% ELSIF error == 'internal' %]
[% c.loc("internal error") %]
[% ELSIF error == 'mail_notification_failure' %]
[% c.loc("mail notification failure") %]
[% ELSIF error == 'accounts_creation_failure' %]
[% c.loc("test accounts creation failure") %]
[% ELSIF error == 'wrong_token' %]
[% c.loc("the validation token you provided is incorrect or it has already been used") %]
[% ELSIF error == 'wrong_token_for_sp' %]
[% c.loc("the validation token you provided cannot be used for this service provider ([_1])", entityid) %]
[% ELSIF error == 'unauthenticated' %]
[% c.loc("you need to authenticate to access this page") %]
[% ELSIF error == 'no_displayname_attribute' %]
[% c.loc("your identity provider doesn't provide displayName attribute, required for this application") %]
[% ELSIF (matches = err.match('missing_(\w+)')) %]
[% c.loc("missing parameter '[_1]'", matches.0) %]
[% ELSE %]
[% err %]
[% END %]
</p>
<br/>
[% c.loc("You can report the issue to the administrators") %] (<a href="mailto:[% app.support_email %]">[% app.support_email %]</a>).
</div>
[% END %]
[% WRAPPER index.tt2.html %]
<div class="small-12 medium-8 medium-centered columns">
[% FOREACH err IN errors %]
<p class="callout alert text-center">
[% lh.maketext("Error:") %]
[% IF err == 'unknown_action' %]
[% lh.maketext("unknown action") %]
[% ELSIF err == 'internal' %]
[% lh.maketext("internal error") %]
[% ELSIF err == 'mail_notification_failure' %]
[% lh.maketext("mail notification failure") %]
[% ELSIF err == 'accounts_creation_failure' %]
[% lh.maketext("test accounts creation failure") %]
[% ELSIF err == 'wrong_token' %]
[% lh.maketext("the validation token you provided is incorrect or it has already been used") %]
[% ELSIF err == 'wrong_token_for_sp' %]
[% lh.maketext("the validation token you provided cannot be used for this service provider ([_1])", entityid) %]
[% ELSIF err == 'unauthenticated' %]
[% lh.maketext("you need to authenticate to access this page") %]
[% ELSIF err == 'no_displayname_attribute' %]
[% lh.maketext("your identity provider doesn't provide displayName attribute, required for this application") %]
[% ELSIF (matches = err.match('missing_(\w+)')) %]
[% lh.maketext("missing parameter '[_1]'", matches.0) %]
[% ELSE %]
[% err %]
[% END %]
</p>
<br/>
[% END %]
[% lh.maketext("You can report the issue to the administrators") %] (<a href="mailto:[% app.support_email %]">[% app.support_email %]</a>).
</div>
[% END %]
[% WRAPPER index.html.tt2 %]
<h2>[% c.loc("Objective") %]</h2>
<p>[% c.loc("eduGAIN Access Check is a service based on the same named software, allowing administrators of service providers registered in eduGAIN interfederation to safely test their service behavior.") %]</p>
<p><a href="https://wiki.geant.org/display/eduGAIN/eduGAIN+Access+Check">[% c.loc("More information") %]</a></p>
<h2>[% c.loc("Functionning") %]</h2>
<img class="float-center" alt="eduGAIN Access Check" src="images/edugain_test_idp_basics.png" height="50%" width="50%"/>
<h2>[% c.loc("Get started") %]</h2>
<p>[% c.loc("To start testing your own services, start by selecting one your are administrator for.") %]</p>
<p class="text-center"><a href="[% IF app.login_url %][% app.login_url %]?target=[% c.url_for('step1') %][% ELSE %][% c.url_for('step1') %][% END %]" class="button">[% c.loc("Get started") %]</a></p>
[% END %]
[% WRAPPER index.tt2.html %]
<h2>[% lh.maketext("Objective") %]</h2>
<p>[% lh.maketext("eduGAIN Access Check is a service based on the same named software, allowing administrators of service providers registered in eduGAIN interfederation to safely test their service behavior.") %]</p>
<p><a href="https://wiki.geant.org/display/eduGAIN/eduGAIN+Access+Check">[% lh.maketext("More information") %]</a></p>
<h2>[% lh.maketext("Functionning") %]</h2>
<img class="float-center" alt="eduGAIN Access Check" src="images/edugain_test_idp_basics.png" height="50%" width="50%"/>
<h2>[% lh.maketext("Get started") %]</h2>
<p>[% lh.maketext("To start testing your own services, start by selecting one your are administrator for.") %]</p>
<p class="text-center"><a href="[% IF app.login_url %][% app.login_url %]?target=[% app.url %]%3Faction%3Dselect_sp[% ELSE %][% app.url %]?action=select_sp[% END %]" class="button">[% lh.maketext("Get started") %]</a></p>
[% END %]
...@@ -40,31 +40,19 @@ ...@@ -40,31 +40,19 @@
<div id="core_nav_section" class="et-menu-holder"> <div id="core_nav_section" class="et-menu-holder">
<ul id="core_nav" class="et-menu et-left"> <ul id="core_nav" class="et-menu et-left">
<li class="et-first-option no-children"><a href="[% app.url %]" title="Home"><img style="width: 16px; height: 15px; position: relative; top: 3px" src="images/home_logo.png" alt="Home icon" /></a></li> <li class="et-first-option no-children"><a href="[% c.url_for('home') %]" title="Home"><img style="width: 16px; height: 15px; position: relative; top: 3px" src="images/home_logo.png" alt="Home icon" /></a></li>
<li class="et-option et-has-children"> <li class="et-option et-has-children">
<span>Language</span> <span>Language</span>
<ul class="et-submenu"> <ul class="et-submenu">
<li class="et-submenu-option"> <li class="et-submenu-option">
<a <a [% IF lh.language_tag() == "en" %]class="nocursor"[% ELSE %]href="[% c.url_with().query(lang => 'en') %]"[% END %] data-lang="en" title="English">
[% IF lh.language_tag() == "en" %]
class="nocursor"
[% ELSE %]
href="[% app.url %]?action=[% action %]&federation=[% federation %]&entityid=[% entityid %]&email=[% email %]&token=[% token %]&lang=en"
[% END %]
data-lang="en" title="English">
<img src="images/en.png" /> <img src="images/en.png" />
<label>English</label> <label>English</label>
[% IF lh.language_tag() == "en" %]<span class="fa fa-check"></span>[% END %] [% IF lh.language_tag() == "en" %]<span class="fa fa-check"></span>[% END %]
</a> </a>
</li> </li>
<li class="et-submenu-option"> <li class="et-submenu-option">
<a <a [% IF lh.language_tag() == "fr" %]class="nocursor"[% ELSE %]href="[% c.url_with().query(lang => 'fr') %]"[% END %] data-lang="fr" title="Français">
[% IF lh.language_tag() == "fr" %]
class="nocursor"
[% ELSE %]
href="[% app.url %]?action=[% action %]&federation=[% federation %]&entityid=[% entityid %]&email=[% email %]&token=[% token %]&lang=fr"
[% END %]
data-lang="fr" title="Français">
<img src="images/fr.png" /> <img src="images/fr.png" />
<label>Français</label> <label>Français</label>
[% IF lh.language_tag() == "fr" %]<span class="fa fa-check"></span>[% END %] [% IF lh.language_tag() == "fr" %]<span class="fa fa-check"></span>[% END %]
...@@ -89,7 +77,7 @@ ...@@ -89,7 +77,7 @@
</main> </main>
<footer style="visibility: hidden;"> <footer style="visibility: hidden;">
<p class="text-center">[% app.name %] [% app.version %] - <a href="mailto:[% app.support_email %]">[% lh.maketext("contact us") %]</a></p> <p class="text-center">[% app.name %] [% app.version %] - <a href="mailto:[% app.support_email %]">[% c.loc("contact us") %]</a></p>
<div class="central-section"> <div class="central-section">
<div class="col-1-1"> <div class="col-1-1">
<img src="images/footer_logo_padded.jpg" style="width: 111px; height:26px;" /> <img src="images/footer_logo_padded.jpg" style="width: 111px; height:26px;" />
...@@ -102,7 +90,7 @@ ...@@ -102,7 +90,7 @@
</div> </div>
<div class="central-section" style="text-align: center; padding-bottom: 0.2em;"> <div class="central-section" style="text-align: center; padding-bottom: 0.2em;">
[% lh.maketext("As part of the GÉANT 2020 Framework Partnership Agreement (FPA), this project receives funding from the European Union’s Horizon 2020 research and innovation programme under Grant Agreement No. 731122 (GN4-2).") %] [% c.loc("As part of the GÉANT 2020 Framework Partnership Agreement (FPA), this project receives funding from the European Union’s Horizon 2020 research and innovation programme under Grant Agreement No. 731122 (GN4-2).") %]
</div> </div>
</footer> </footer>
... ...
......
[% WRAPPER index.tt2.html %] [% WRAPPER index.html.tt2 %]
<form class="wizard clearfix" action="[% app.url %]" method="get"> <form class="wizard clearfix" action="[% c.url_for('step3') %]" method="get">
<div class="steps clearfix"> <div class="steps clearfix">
<ol> <ol>
<li class="done">[% lh.maketext("Select your service provider") %]</li> <li class="done">[% c.loc("Select your service provider") %]</li>
<li class="current">[% lh.maketext("Select your email address") %]</li> <li class="current">[% c.loc("Select your email address") %]</li>
<li class="disabled">[% lh.maketext("Complete email challenge") %]</li> <li class="disabled">[% c.loc("Complete email challenge") %]</li>
</ol> </ol>
</div> </div>
<div class="content clearfix"> <div class="content clearfix">
<h2>[% lh.maketext("Select your email address") %]</h2> <h2>[% c.loc("Select your email address") %]</h2>
<p>[% lh.maketext("Before you can create test accounts at this Identity Provider, we need to ensure you are a legitimate administrator of the Service Provider <strong>[_1]</strong>.", entityid) %]</p> <p>[% c.loc("Before you can create test accounts at this Identity Provider, we need to ensure you are a legitimate administrator of the Service Provider <strong>[_1]</strong>.", entityid) %]</p>
[% IF sp.contacts.defined %] [% IF sp.contacts.defined %]
<fieldset> <fieldset>
<legend>[% lh.maketext("Select the email address where an email challenge can be sent to validate your identity:") %]</legend> <legend>[% c.loc("Select the email address where an email challenge can be sent to validate your identity:") %]</legend>
[% 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"/>
<label for="[% email %]">[% email %]</label> <label for="[% email %]">[% email %]</label>
...@@ -24,24 +24,24 @@ ...@@ -24,24 +24,24 @@
<input type="hidden" name="federation" value="[% federation %]"/> <input type="hidden" name="federation" value="[% federation %]"/>
<input type="hidden" name="entityid" value="[% sp.entityid %]"/> <input type="hidden" name="entityid" value="[% sp.entityid %]"/>
</fieldset> </fieldset>
<div class="callout alert-callout-border primary">[% lh.maketext("Those email addresses have been extracted from your service metadata.") %]</div> <div class="callout primary">[% c.loc("Those email addresses have been extracted from your service metadata.") %]</div>
[% ELSE %] [% ELSE %]
<p> <p>
[% lh.maketext("No ContactPerson element could be found in your service metadata, therefore we are unable to provide test accounts for this service.") %] [% c.loc("No ContactPerson element could be found in your service metadata, therefore we are unable to provide test accounts for this service.") %]
[% lh.maketext("Please contact your federation administrators to add needed information to the metadata.") %] [% c.loc("Please contact your federation administrators to add needed information to the metadata.") %]
</p> </p>
[% END %] [% END %]
</div> </div>
<div class="actions clearfix"> <div class="actions clearfix">
<button type="submit" class="button" name="action" value="select_sp" formnovalidate>[% lh.maketext("Previous") %]</button> <button type="submit" class="button" formaction="[% c.url_for('step1') %]" formnovalidate>[% c.loc("Previous") %]</button>
<button type="submit" class="button" name="action" value="complete_challenge">[% lh.maketext("Next") %]</button> <button type="submit" class="button">[% c.loc("Next") %]</button>
</div> </div>
</form> </form>
<script type="text/javascript"> <script type="text/javascript">
$( document ).ready(function() { $( document ).ready(function() {
$.validator.messages.required = "[% lh.maketext("This information is required") %]"; $.validator.messages.required = "[% c.loc("This information is required") %]";
$("form").validate(); $("form").validate();
}); });
</script> </script>
... ...
......
[% WRAPPER index.tt2.html %] [% WRAPPER index.html.tt2 %]
<form class="wizard clearfix" action="[% app.url %]" method="get"> <form class="wizard clearfix" action="[% c.url_for('step2') %]" method="get">
<div class="steps clearfix"> <div class="steps clearfix">
<ol> <ol>
<li class="current">[% lh.maketext("Select your service provider") %]</li> <li class="current">[% c.loc("Select your service provider") %]</li>
<li class="disabled">[% lh.maketext("Select your email address") %]</li> <li class="disabled">[% c.loc("Select your email address") %]</li>
<li class="disabled">[% lh.maketext("Complete email challenge") %]</li> <li class="disabled">[% c.loc("Complete email challenge") %]</li>
</ol> </ol>
</div> </div>
<div class="content clearfix"> <div class="content clearfix">
<h2>[% lh.maketext("Select your service provider") %]</h2> <h2>[% c.loc("Select your service provider") %]</h2>
<p> <p>
[% lh.maketext("Please select the service provider you want to test in one of the lists below.") %]&nbsp; [% c.loc("Please select the service provider you want to test in one of the lists below.") %]&nbsp;
[% lh.maketext("You must be an administrator of that service to continue afterwards.") %] [% c.loc("You must be an administrator of that service to continue afterwards.") %]
</p> </p>
[% IF idp %] [% IF idp %]
<fieldset> <fieldset>
<legend>[% lh.maketext("Service providers from my own organization") %]</legend> <legend>[% c.loc("Service providers from my own organization") %]</legend>
<select id="self" name="self"> <select id="self" name="self">
<option value=""></option> <option value=""></option>
[% organization_url = idp.organization_url() %] [% organization_url = idp.organization_url() %]
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
[% END %] [% END %]
<fieldset> <fieldset>
<legend>[% lh.maketext("All service providers") %]</legend> <legend>[% c.loc("All service providers") %]</legend>
<select id="all" name="all"> <select id="all" name="all">
<option value=""></option> <option value=""></option>
[% FOREACH sp IN sps %] [% FOREACH sp IN sps %]
...@@ -40,12 +40,12 @@ ...@@ -40,12 +40,12 @@
</fieldset> </fieldset>
<input type="hidden" id="entityid" name="entityid"/> <input type="hidden" id="entityid" name="entityid"/>
<div class="callout primary">[% lh.maketext("Those service providers have been extracted from federation metadata.") %]</div> <div class="callout primary">[% c.loc("Those service providers have been extracted from federation metadata.") %]</div>
</div> </div>
<div class="actions clearfix"> <div class="actions clearfix">
<button type="submit" class="button" name="action" value="" formnovalidate>[% lh.maketext("Previous") %]</button> <a class="button" href="[% c.url_for('home') %]">[% c.loc("Previous") %]</a>
<button type="submit" class="button" name="action" value="select_email">[% lh.maketext("Next") %]</button> <button type="submit" class="button">[% c.loc("Next") %]</button>
</div> </div>
</form> </form>
...@@ -196,7 +196,7 @@ $( document ).ready(function() { ...@@ -196,7 +196,7 @@ $( document ).ready(function() {
[% END %] [% END %]
$( "#all" ).combobox(); $( "#all" ).combobox();
$.validator.messages.required = "[% lh.maketext("This information is required") %]"; $.validator.messages.required = "[% c.loc("This information is required") %]";
$("form").validate(); $("form").validate();
}); });
</script> </script>
... ...
......
[% WRAPPER index.tt2.html %] [% WRAPPER index.html.tt2 %]
<form class="wizard clearfix" action="[% app.url %]" method="get"> <form class="wizard clearfix" action="[% c.url_for('step4') %]" method="get">
<div class="steps clearfix"> <div class="steps clearfix">
<ol> <ol>
<li class="done">[% lh.maketext("Select your service provider") %]</li> <li class="done">[% c.loc("Select your service provider") %]</li>
<li class="done">[% lh.maketext("Select your email address") %]</li> <li class="done">[% c.loc("Select your email address") %]</li>
<li class="current">[% lh.maketext("Complete email challenge") %]</li> <li class="current">[% c.loc("Complete email challenge") %]</li>
</ol> </ol>
</div> </div>
<div class="content clearfix"> <div class="content clearfix">
<h2>[% lh.maketext("Complete email challenge") %]</h2> <h2>[% c.loc("Complete email challenge") %]</h2>
<p> <p>
[% lh.maketext("An email challenge including a validation token has been emailed to you at [_1].", email) %] [% c.loc("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.") %] [% c.loc("Please copy and paste the validation token in the form below to proof that you are administrator of this service.") %]
</p> </p>
<fieldset> <fieldset>
<legend>[% lh.maketext("Please provide the validation token here:") %]</legend> <legend>[% c.loc("Please provide the validation token here:") %]</legend>
<input name="token" value="" id="token" type="text" class="required"/> <input name="token" value="" id="token" type="text" class="required"/>
</fieldset> </fieldset>
<fieldset> <fieldset>
<legend>[% lh.maketext("Accounts validity period, in days:") %]</legend> <legend>[% c.loc("Accounts validity period, in days:") %]</legend>
<input name="validity" value="[% validity %]" id="validity" type="number" class="required" min="1"/> <input name="validity" value="[% validity %]" id="validity" type="number" class="required" min="1"/>
</fieldset> </fieldset>
<fieldset> <fieldset>
<legend>[% lh.maketext("Account profiles:") %]</legend> <legend>[% c.loc("Account profiles:") %]</legend>
<ul class="columns4"> <ul class="columns4">
[% FOREACH profile IN profiles %] [% FOREACH profile IN profiles %]
[% template = profile _ '.tt2' %] [% template = profile _ '.tt2' %]
...@@ -42,14 +42,14 @@ ...@@ -42,14 +42,14 @@
</div> </div>
<div class="actions clearfix"> <div class="actions clearfix">
<button type="submit" class="button" name="action" value="select_email" formnovalidate>[% lh.maketext("Previous") %]</button> <button type="submit" class="button" name="action" value="select_email" formnovalidate>[% c.loc("Previous") %]</button>
<button type="submit" class="button" name="action" value="create_accounts">[% lh.maketext("Next") %]</button> <button type="submit" class="button" name="action" value="create_accounts">[% c.loc("Next") %]</button>
</div> </div>
</form> </form>
<script type="text/javascript"> <script type="text/javascript">
$( document ).ready(function() { $( document ).ready(function() {
$.validator.messages.required = "[% lh.maketext("This information is required") %]"; $.validator.messages.required = "[% c.loc("This information is required") %]";
$("form").validate(); $("form").validate();
}); });
</script> </script>
... ...
......
[% WRAPPER index.tt2.html %] [% WRAPPER index.html.tt2 %]
<div class="row"> <div class="row">
<div class="small-12 columns"> <div class="small-12 columns">
<p class="callout alert-callout-border success text-center"> <p class="callout alert-callout-border success text-center">
[% lh.maketext("<strong>Success:</strong> your identity as administrator of the Service Provider <strong>[_1]</strong> has been validated!", sp.entityid) %] [% c.loc("<strong>Success:</strong> your identity as administrator of the Service Provider <strong>[_1]</strong> has been validated!", sp.entityid) %]
</p> </p>
</div> </div>
</div> </div>
<h2>[% lh.maketext("Test accounts created") %]</h2> <h2>[% c.loc("Test accounts created") %]</h2>
<p> <p>
[% lh.maketext("You can now use these test accounts to access your <a href=\"[_1]\">service provider</a>, using <strong>[_2]</strong> as identity provider.", sp.url, idp.name) %] [% c.loc("You can now use these test accounts to access your <a href=\"[_1]\">service provider</a>, using <strong>[_2]</strong> as identity provider.", sp.url, idp.name) %]
[% lh.maketext("If you need a customized test account with additional user attributes, you should contact <a href=\"mailto:[_1]\">[_1]</a>.", app.support_email) %] [% c.loc("If you need a customized test account with additional user attributes, you should contact <a href=\"mailto:[_1]\">[_1]</a>.", app.support_email) %]
</p> </p>
<p class="callout alert-callout-border warning"> <p class="callout alert-callout-border warning">
[% lh.maketext("This page won't be accessible again, you should either keep it open in your web browser, or <a href=\"[_1]\">download accounts in CSV format</a>.", download_url) %] [% c.loc("This page won't be accessible again, you should either keep it open in your web browser, or <a href=\"[_1]\">download accounts in CSV format</a>.", download_url) %]
</p> </p>
<div class="accounts row"> <div class="accounts row">
...@@ -22,30 +22,30 @@ ...@@ -22,30 +22,30 @@
[% template = account.profile() _ '.tt2' %] [% template = account.profile() _ '.tt2' %]
[% PROCESS $template scope=account.scope() id=account.id() | trim %] [% PROCESS $template scope=account.scope() id=account.id() | trim %]
<div class="account small-12 medium-6 large-4 columns"> <div class="account small-12 medium-6 large-4 columns">
<h3>[% lh.maketext("Account profile: [_1]", account.profile()) %]</h3> <h3>[% c.loc("Account profile: [_1]", account.profile()) %]</h3>
<div class="description">[% description.${lh.language_tag()} %].</div> <div class="description">[% description.${lh.language_tag()} %].</div>
<table> <table>
<tr> <tr>
<td><strong>[% lh.maketext("user name") %]</strong></td> <td><strong>[% c.loc("user name") %]</strong></td>
<td>user[% account.id() %]</td> <td>user[% account.id() %]</td>
</tr> </tr>
<tr> <tr>
<td><strong>[% lh.maketext("password") %]</strong></td> <td><strong>[% c.loc("password") %]</strong></td>
<td>[% account.password() %]</td> <td>[% account.password() %]</td>
</tr> </tr>
</table> </table>
<div class="text-center"> <div class="text-center">
<button data-open="account_details_[% account.id() %]" id="show_account_details_[% account.id() %]">[% lh.maketext("show details") %]</button> <button data-open="account_details_[% account.id() %]" id="show_account_details_[% account.id() %]">[% c.loc("show details") %]</button>
</div> </div>
</div> </div>
<div class="account reveal" data-reveal id="account_details_[% account.id() %]"> <div class="account reveal" data-reveal id="account_details_[% account.id() %]">
<h3>[% lh.maketext("User attributes list") %]</h3> <h3>[% c.loc("User attributes list") %]</h3>
<div class="callout alert-callout-border warning"> <div class="callout alert-callout-border warning">
[% lh.maketext( [% c.loc(
"eduPersonAffiliation and eduPersonScopedAffiliation attributes are assigned <a href=\"[_1]\">quite differently from federation to federation</a>, therefore their values should be handled with great care.", "eduPersonAffiliation and eduPersonScopedAffiliation attributes are assigned <a href=\"[_1]\">quite differently from federation to federation</a>, therefore their values should be handled with great care.",
"http://tnc2010.terena.org/files/ePSA%20comparison%20v0%2006.ppt") "http://tnc2010.terena.org/files/ePSA%20comparison%20v0%2006.ppt")
%] %]
...@@ -58,12 +58,12 @@ ...@@ -58,12 +58,12 @@
</tr> </tr>
[% END %] [% END %]
<tr> <tr>
<th>eduPersonTargetedID</th><td><i>[% lh.maketext("value dynamically generated for each SP") %]</i></td> <th>eduPersonTargetedID</th><td><i>[% c.loc("value dynamically generated for each SP") %]</i></td>
</tr> </tr>
</table> </table>
<div class="text-center"> <div class="text-center">
<button data-close>[% lh.maketext("close") %]</button> <button data-close>[% c.loc("close") %]</button>
</div> </div>
</div> </div>
[% END %] [% END %]
...@@ -71,15 +71,15 @@ ...@@ -71,15 +71,15 @@
<div class="row"> <div class="row">
<div class="callout alert-callout-border warning"> <div class="callout alert-callout-border warning">
<p>[% lh.maketext("Note that these test accounts will automatically expire in [_1] days and that they can only be used to test federated login to your service provider <strong>[_2]</strong>.", days, sp.entityid) %]</p> <p>[% c.loc("Note that these test accounts will automatically expire in [_1] days and that they can only be used to test federated login to your service provider <strong>[_2]</strong>.", days, sp.entityid) %]</p>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="callout alert-callout-border primary text-center"> <div class="callout alert-callout-border primary text-center">
<strong>[% lh.maketext("Thank you for using the [_1] service", app.name) %]</strong> <strong>[% c.loc("Thank you for using the [_1] service", app.name) %]</strong>
</div> </div>
</div> </div>
<p class="text-center"><a href="[% app.url %]?action=select_sp" class="button">[% lh.maketext("Test another service") %]</a></p> <p class="text-center"><a href="[% c.url_for('step1') %]" class="button">[% c.loc("Test another service") %]</a></p>
[% END %] [% END %]
[% WRAPPER index.html.tt2 %]
<div class="small-12 medium-8 medium-centered columns">
<p class="callout alert-callout-border alert text-center">
<strong>[% c.loc("Error:") %]</strong>
[% IF error == 'unknown_action' %]
[% c.loc("unknown action") %]
[% ELSIF error == 'internal' %]
[% c.loc("internal error") %]
[% ELSIF error == 'mail_notification_failure' %]
[% c.loc("mail notification failure") %]
[% ELSIF error == 'accounts_creation_failure' %]
[% c.loc("test accounts creation failure") %]
[% ELSIF error == 'wrong_token' %]
[% c.loc("the validation token you provided is incorrect or it has already been used") %]
[% ELSIF error == 'wrong_token_for_sp' %]
[% c.loc("the validation token you provided cannot be used for this service provider ([_1])", entityid) %]
[% ELSIF error == 'unauthenticated' %]
[% c.loc("you need to authenticate to access this page") %]
[% ELSIF (matches = err.match('missing_(\w+)')) %]
[% c.loc("missing parameter '[_1]'", matches.0) %]
[% ELSE %]
[% err %]
[% END %]
</p>
[% c.loc("You can report the issue to the administrators") %] (<a href="mailto:[% app.support_email %]">[% app.support_email %]</a>).
</div>
[% END %]
[% WRAPPER index.tt2.html %]
<div class="small-12 medium-8 medium-centered columns">
[% FOREACH err IN errors %]
<p class="callout alert-callout-border alert text-center">
<strong>[% lh.maketext("Error:") %]</strong>
[% IF err == 'unknown_action' %]
[% lh.maketext("unknown action") %]
[% ELSIF err == 'internal' %]
[% lh.maketext("internal error") %]
[% ELSIF err == 'mail_notification_failure' %]
[% lh.maketext("mail notification failure") %]
[% ELSIF err == 'accounts_creation_failure' %]
[% lh.maketext("test accounts creation failure") %]
[% ELSIF err == 'wrong_token' %]
[% lh.maketext("the validation token you provided is incorrect or it has already been used") %]
[% ELSIF err == 'wrong_token_for_sp' %]
[% lh.maketext("the validation token you provided cannot be used for this service provider ([_1])", entityid) %]
[% ELSIF err == 'unauthenticated' %]
[% lh.maketext("you need to authenticate to access this page") %]
[% ELSIF (matches = err.match('missing_(\w+)')) %]
[% lh.maketext("missing parameter '[_1]'", matches.0) %]
[% ELSE %]
[% err %]
[% END %]
</p>
[% END %]
[% lh.maketext("You can report the issue to the administrators") %] (<a href="mailto:[% app.support_email %]">[% app.support_email %]</a>).
</div>
[% END %]
[% WRAPPER index.html.tt2 %]
<h2>[% c.loc("Objective") %]</h2>
<p>[% c.loc("RENATER Access Check is a service based on eduGAIN Access Check software, allowing administrators of service providers registered in Education-Research Federation to safely test their service behavior.") %]</p>
<p><a href="https://wiki.geant.org/display/eduGAIN/eduGAIN+Access+Check">[% c.loc("More information") %]</a></p>
<h2>[% c.loc("Functionning") %]</h2>
<img class="float-center" alt="RENATER Access Check" src="images/edugain_test_idp_basics.png" height="50%" width="50%"/>
<h2>[% c.loc("Get started") %]</h2>
<p>[% c.loc("To start testing your own services, start by selecting one your are administrator for.") %]</p>
<p class="text-center"><a href="[% IF app.login_url %][% app.login_url %]?target=[% c.url_for('step1') %][% ELSE %][% c.url_for('step1') %][% END %]" class="button">[% c.loc("Get started") %]</a></p>
[% END %]
[% WRAPPER index.tt2.html %]
<h2>[% lh.maketext("Objective") %]</h2>
<p>[% lh.maketext("RENATER Access Check is a service based on eduGAIN Access Check software, allowing administrators of service providers registered in Education-Research Federation to safely test their service behavior.") %]</p>
<p><a href="https://wiki.geant.org/display/eduGAIN/eduGAIN+Access+Check">[% lh.maketext("More information") %]</a></p>
<h2>[% lh.maketext("Functionning") %]</h2>
<img class="float-center" alt="RENATER Access Check" src="images/edugain_test_idp_basics.png" height="50%" width="50%"/>
<h2>[% lh.maketext("Get started") %]</h2>
<p>[% lh.maketext("To start testing your own services, start by selecting one your are administrator for.") %]</p>
<p class="text-center"><a href="[% IF app.login_url %][% app.login_url %]?target=[% app.url %]%3Faction%3Dselect_sp[% ELSE %][% app.url %]?action=select_sp[% END %]" class="button">[% lh.maketext("Get started") %]</a></p>
[% END %]
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<button class="menu-icon top-bar-right" type="button" data-toggle></button> <button class="menu-icon top-bar-right" type="button" data-toggle></button>
<div class="title-bar-title top-bar-right"></div> <div class="title-bar-title top-bar-right"></div>
<div class="top-bar-left"> <div class="top-bar-left">
<a href="[% app.url %]" title="Accueil"> <a href="[% c.url_for('home') %]" title="Accueil">
<img src="images/logo-federation.svg" alt="Logo Fédération" data-options="disable_for_touch:true"> <img src="images/logo-federation.svg" alt="Logo Fédération" data-options="disable_for_touch:true">
</a> </a>
</div> </div>
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<menu class="top-bar-left"> <menu class="top-bar-left">
<ul class="menu" data-dropdown-menu> <ul class="menu" data-dropdown-menu>
<li class="menu-text hide-for-small-only"> <li class="menu-text hide-for-small-only">
<a href="[% app.url %]" title="Accueil"> <a href="[% c.url_for('home') %]" title="Accueil">
<img src="images/logo-federation.svg" alt="Logo Fédération" data-options="disable_for_touch:true"> <img src="images/logo-federation.svg" alt="Logo Fédération" data-options="disable_for_touch:true">
</a> </a>
</li> </li>
...@@ -50,38 +50,26 @@ ...@@ -50,38 +50,26 @@
<menu class="top-bar-right"> <menu class="top-bar-right">
<ul class="menu icon-top" data-back-button="<li class='js-drilldown-back'><a tabindex='0'>Back</a></li>" data-responsive-menu="drilldown medium-dropdown"> <ul class="menu icon-top" data-back-button="<li class='js-drilldown-back'><a tabindex='0'>Back</a></li>" data-responsive-menu="drilldown medium-dropdown">
<li> <li>
<a href="[% app.url %]" title="Accueil" data-tooltip class="left"> <a href="[% c.url_for('home') %]" title="Accueil" data-tooltip class="left">
<img class="hide-for-small-only home_img" src="images/home.svg" alt="Accueil" data-options="disable_for_touch:true"/> <img class="hide-for-small-only home_img" src="images/home.svg" alt="Accueil" data-options="disable_for_touch:true"/>
<label class="show-for-small-only">Accueil</label> <label class="show-for-small-only">Accueil</label>
</a> </a>
</li> </li>
<li class="has-submenu" data-action="select_language"> <li class="has-submenu" data-action="select_language">
<a href="#" title="[% lh.maketext("Language") %]"> <a href="#" title="[% c.loc("Language") %]">
<img class="lang_img" src="images/lang.svg" alt="[% lh.maketext("Language") %]" data-options="disable_for_touch:true"/> <img class="lang_img" src="images/lang.svg" alt="[% c.loc("Language") %]" data-options="disable_for_touch:true"/>
<label class="show-for-small-only">[% lh.maketext("Language") %]</label> <label class="show-for-small-only">[% c.loc("Language") %]</label>
</a> </a>
<ul class="submenu vertical" data-submenu> <ul class="submenu vertical" data-submenu>
<li> <li>
<a <a [% IF lh.language_tag() == "en" %]class="nocursor"[% ELSE %]href="[% c.url_with().query(lang => 'en') %]"[% END %] data-lang="en" title="English">
[% IF lh.language_tag() == "en" %]
class="nocursor"
[% ELSE %]
href="[% app.url %]?action=[% action %]&federation=[% federation %]&entityid=[% entityid %]&email=[% email %]&token=[% token %]&lang=en"
[% END %]
data-lang="en" title="English">
<img src="images/en.png" /> <img src="images/en.png" />
<label>English</label> <label>English</label>
[% IF lh.language_tag() == "en" %]<span class="fa fa-check"></span>[% END %] [% IF lh.language_tag() == "en" %]<span class="fa fa-check"></span>[% END %]
</a> </a>
</li> </li>
<li> <li>
<a <a [% IF lh.language_tag() == "fr" %]class="nocursor"[% ELSE %]href="[% c.url_with().query(lang => 'fr') %]"[% END %] data-lang="fr" title="Français">
[% IF lh.language_tag() == "fr" %]
class="nocursor"
[% ELSE %]
href="[% app.url %]?action=[% action %]&federation=[% federation %]&entityid=[% entityid %]&email=[% email %]&token=[% token %]&lang=fr"
[% END %]
data-lang="fr" title="Français">
<img src="images/fr.png" /> <img src="images/fr.png" />
<label>Français</label> <label>Français</label>
[% IF lh.language_tag() == "fr" %]<span class="fa fa-check"></span>[% END %] [% IF lh.language_tag() == "fr" %]<span class="fa fa-check"></span>[% END %]
...@@ -123,23 +111,23 @@ ...@@ -123,23 +111,23 @@
</article> </article>
<aside> <aside>
<p class="row small-collapse medium-uncollapse"> <p class="row small-collapse medium-uncollapse">
<span class="small-12 medium-5 columns text-left">&copy; RENATER 2018 - [% lh.maketext("All rights reserved") %]</span> <span class="small-12 medium-5 columns text-left">&copy; RENATER 2018 - [% c.loc("All rights reserved") %]</span>
<span class="small-12 medium-7 columns"> <span class="small-12 medium-7 columns">
<a href="#" data-open="legal_reveal" title="[% lh.maketext("Legal mentions") %]">[% lh.maketext("Legal mentions") %]</a> | <a href="#" data-open="legal_reveal" title="[% c.loc("Legal mentions") %]">[% c.loc("Legal mentions") %]</a> |
<a href="#" data-open="about_reveal" title="[% lh.maketext("About") %]">[% lh.maketext("About") %]</a> | <a href="#" data-open="about_reveal" title="[% c.loc("About") %]">[% c.loc("About") %]</a> |
<a id="feedback" class="tip-top" data-tooltip="" data-options="disable_for_touch:true" data-trigger-class="none" <a id="feedback" class="tip-top" data-tooltip="" data-options="disable_for_touch:true" data-trigger-class="none"
aria-haspopup="true" target="_blank" href="https://feedback.renater.fr/?service=federation" aria-haspopup="true" target="_blank" href="https://feedback.renater.fr/?service=federation"
title="[% lh.maketext("Users feedback") %]">[% lh.maketext("Users feedback") %]</a> | title="[% c.loc("Users feedback") %]">[% c.loc("Users feedback") %]</a> |
<a href="https://www.renater.fr/" target="_blank">www.renater.fr</a> <a href="https://www.renater.fr/" target="_blank">www.renater.fr</a>
</span> </span>
</p> </p>
</aside> </aside>
</footer> </footer>
<div class="reveal" id="about_reveal" data-reveal> <div class="reveal" id="about_reveal" data-reveal>
<p class="text-center">[% app.name %] [% app.version %] - <a href="mailto:[% app.support_email %]">[% lh.maketext("contact us") %]</a></p> <p class="text-center">[% app.name %] [% app.version %] - <a href="mailto:[% app.support_email %]">[% c.loc("contact us") %]</a></p>
</div> </div>
<div class="reveal" id="legal_reveal" data-reveal> <div class="reveal" id="legal_reveal" data-reveal>
<p class="text-center">[% lh.maketext("As part of the GÉANT 2020 Framework Partnership Agreement (FPA), this project receives funding from the European Union’s Horizon 2020 research and innovation programme under Grant Agreement No. 731122 (GN4-2)." ) %]</p> <p class="text-center">[% c.loc("As part of the GÉANT 2020 Framework Partnership Agreement (FPA), this project receives funding from the European Union’s Horizon 2020 research and innovation programme under Grant Agreement No. 731122 (GN4-2)." ) %]</p>
</div> </div>
</body> </body>
</html> </html>
[% WRAPPER index.tt2.html %] [% WRAPPER index.html.tt2 %]
<form class="wizard clearfix" action="[% app.url %]" method="get"> <form class="wizard clearfix" action="[% c.url_for('step3') %]" method="get">
<div class="steps clearfix"> <div class="steps clearfix">
<ol> <ol>
<li class="done">[% lh.maketext("Select your service provider") %]</li> <li class="done">[% c.loc("Select your service provider") %]</li>
<li class="current">[% lh.maketext("Select your email address") %]</li> <li class="current">[% c.loc("Select your email address") %]</li>
<li class="disabled">[% lh.maketext("Complete email challenge") %]</li> <li class="disabled">[% c.loc("Complete email challenge") %]</li>
</ol> </ol>
</div> </div>
<div class="content clearfix"> <div class="content clearfix">
<h2>[% lh.maketext("Select your email address") %]</h2> <h2>[% c.loc("Select your email address") %]</h2>
<p>[% lh.maketext("Before you can create test accounts at this Identity Provider, we need to ensure you are a legitimate administrator of the Service Provider <strong>[_1]</strong>.", entityid) %]</p> <p>[% c.loc("Before you can create test accounts at this Identity Provider, we need to ensure you are a legitimate administrator of the Service Provider <strong>[_1]</strong>.", entityid) %]</p>
[% IF sp.contacts.defined %] [% IF sp.contacts.defined %]
<fieldset> <fieldset>
<legend>[% lh.maketext("Select the email address where an email challenge can be sent to validate your identity:") %]</legend> <legend>[% c.loc("Select the email address where an email challenge can be sent to validate your identity:") %]</legend>
[% 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"/>
<label for="[% email %]">[% email %]</label> <label for="[% email %]">[% email %]</label>
...@@ -24,24 +24,24 @@ ...@@ -24,24 +24,24 @@
<input type="hidden" name="federation" value="[% federation %]"/> <input type="hidden" name="federation" value="[% federation %]"/>
<input type="hidden" name="entityid" value="[% sp.entityid %]"/> <input type="hidden" name="entityid" value="[% sp.entityid %]"/>
</fieldset> </fieldset>
<div class="callout primary">[% lh.maketext("Those email addresses have been extracted from your service metadata.") %]</div> <div class="callout alert-callout-border primary">[% c.loc("Those email addresses have been extracted from your service metadata.") %]</div>
[% ELSE %] [% ELSE %]
<p> <p>
[% lh.maketext("No ContactPerson element could be found in your service metadata, therefore we are unable to provide test accounts for this service.") %] [% c.loc("No ContactPerson element could be found in your service metadata, therefore we are unable to provide test accounts for this service.") %]
[% lh.maketext("Please contact your federation administrators to add needed information to the metadata.") %] [% c.loc("Please contact your federation administrators to add needed information to the metadata.") %]
</p> </p>
[% END %] [% END %]
</div> </div>
<div class="actions clearfix"> <div class="actions clearfix">
<button type="submit" class="button" name="action" value="select_sp" formnovalidate>[% lh.maketext("Previous") %]</button> <button type="submit" class="button" name="action" value="select_sp" formnovalidate>[% c.loc("Previous") %]</button>
<button type="submit" class="button" name="action" value="complete_challenge">[% lh.maketext("Next") %]</button> <button type="submit" class="button" name="action" value="complete_challenge">[% c.loc("Next") %]</button>
</div> </div>
</form> </form>
<script type="text/javascript"> <script type="text/javascript">
$( document ).ready(function() { $( document ).ready(function() {
$.validator.messages.required = "[% lh.maketext("This information is required") %]"; $.validator.messages.required = "[% c.loc("This information is required") %]";
$("form").validate(); $("form").validate();
}); });
</script> </script>
... ...
......
[% WRAPPER index.tt2.html %] [% WRAPPER index.html.tt2 %]
<form class="wizard clearfix" action="[% app.url %]" method="get"> <form class="wizard clearfix" action="[% c.url_for('step2') %]" method="get">
<div class="steps clearfix"> <div class="steps clearfix">
<ol> <ol>
<li class="current">[% lh.maketext("Select your service provider") %]</li> <li class="current">[% c.loc("Select your service provider") %]</li>
<li class="disabled">[% lh.maketext("Select your email address") %]</li> <li class="disabled">[% c.loc("Select your email address") %]</li>
<li class="disabled">[% lh.maketext("Complete email challenge") %]</li> <li class="disabled">[% c.loc("Complete email challenge") %]</li>
</ol> </ol>
</div> </div>
<div class="content clearfix"> <div class="content clearfix">
<h2>[% lh.maketext("Select your service provider") %]</h2> <h2>[% c.loc("Select your service provider") %]</h2>
<p> <p>
[% lh.maketext("Please select the service provider you want to test in one of the lists below.") %]&nbsp; [% c.loc("Please select the service provider you want to test in one of the lists below.") %]&nbsp;
[% lh.maketext("You must be an administrator of that service to continue afterwards.") %] [% c.loc("You must be an administrator of that service to continue afterwards.") %]
</p> </p>
[% IF idp %] [% IF idp %]
<fieldset> <fieldset>
<legend>[% lh.maketext("Service providers from my own organization") %]</legend> <legend>[% c.loc("Service providers from my own organization") %]</legend>
<select id="self" name="self"> <select id="self" name="self">
<option value=""></option> <option value=""></option>
[% organization_url = idp.organization_url() %] [% organization_url = idp.organization_url() %]
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
[% END %] [% END %]
<fieldset> <fieldset>
<legend>[% lh.maketext("All service providers registered in Education-Research federation") %]</legend> <legend>[% c.loc("All service providers registered in Education-Research federation") %]</legend>
<select id="renater" name="renater"> <select id="renater" name="renater">
<option value=""></option> <option value=""></option>
[% FOREACH sp IN sps %] [% FOREACH sp IN sps %]
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</fieldset> </fieldset>
<fieldset> <fieldset>
<legend>[% lh.maketext("All service providers registered in test federation") %]</legend> <legend>[% c.loc("All service providers registered in test federation") %]</legend>
<select id="test" name="test"> <select id="test" name="test">
<option value=""></option> <option value=""></option>
[% FOREACH sp IN sps %] [% FOREACH sp IN sps %]
...@@ -52,18 +52,18 @@ ...@@ -52,18 +52,18 @@
</fieldset> </fieldset>
<fieldset> <fieldset>
<legend>[% lh.maketext("All service providers registered in eduGAIN federation") %]</legend> <legend>[% c.loc("All service providers registered in eduGAIN federation") %]</legend>
<a class="button" href="https://access-check.edugain.org">[% lh.maketext("eduGAIN Access Check") %]</a> <a class="button" href="https://access-check.edugain.org">[% c.loc("eduGAIN Access Check") %]</a>
</fieldset> </fieldset>
<input type="hidden" id="entityid" name="entityid"/> <input type="hidden" id="entityid" name="entityid"/>
<div class="callout alert-callout-border primary">[% lh.maketext("Those service providers have been extracted from federation metadata.") %]</div> <div class="callout alert-callout-border primary">[% c.loc("Those service providers have been extracted from federation metadata.") %]</div>
</div> </div>
<div class="actions clearfix"> <div class="actions clearfix">
<button type="submit" class="button" name="action" value="" formnovalidate>[% lh.maketext("Previous") %]</button> <button type="submit" class="button" name="action" value="" formnovalidate>[% c.loc("Previous") %]</button>
<button type="submit" class="button" name="action" value="select_email">[% lh.maketext("Next") %]</button> <button type="submit" class="button" name="action" value="select_email">[% c.loc("Next") %]</button>
</div> </div>
</form> </form>
...@@ -216,7 +216,7 @@ $( document ).ready(function() { ...@@ -216,7 +216,7 @@ $( document ).ready(function() {
$("#renater").combobox(); $("#renater").combobox();
$("#test").combobox(); $("#test").combobox();
$.validator.messages.required = "[% lh.maketext("This information is required") %]"; $.validator.messages.required = "[% c.loc("This information is required") %]";
$("form").validate(); $("form").validate();
}); });
</script> </script>
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment