Skip to content
Snippets Groups Projects
select_email.tt2.html 2.38 KiB
[% WRAPPER index.tt2.html %]
<form class="wizard clearfix" action="[% app.url %]" method="get">
    <div class="steps clearfix">
        <ol>
            <li class="done">[% lh.maketext("Select a federation") %]</li>
            <li class="done">[% lh.maketext("Select your service") %]</li>
            <li class="current">[% lh.maketext("Select your email address") %]</li>
            <li class="disabled">[% lh.maketext("Complete email challenge") %]</li>
        </ol>
    </div>

    <div class="content clearfix">
        <h2>[% lh.maketext("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 '[_1]'.", sp.displayname) %]</p>

    [% IF sp.contacts.defined %]
        <fieldset>
            <legend>[% lh.maketext("Select the email address where an email challenge can be sent to validate your identity:") %]</legend>
        [% FOREACH email IN sp.contacts.sort %]
            <input id="[% email %]" name="email" value="[% email %]" type="radio" class="required"/>
            <label for="[% email %]">[% email %]</label>
            <br/>
        [% END %]
            <label for="email" class="error"></label>
            <input type="hidden" name="federation" value="[% federation %]"/>
            <input type="hidden" name="entityid" value="[% sp.entityid %]"/>
        </fieldset>
        <div class="callout alert-callout-border primary">[% lh.maketext("Those email addresses have been extracted from your service metadata.") %]</div>
    [% ELSE %]
        <p>
        [% lh.maketext("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.") %]
        </p>
[% END %]
    </div>

    <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="complete_challenge">[% lh.maketext("Next") %]</button>
    </div>
</form>

<script type="text/javascript">
$( document ).ready(function() {
    $.validator.messages.required = "[% lh.maketext("This information is required") %]";
    $("form").validate();
});
</script>
[% END %]