Skip to content
Snippets Groups Projects
select_email.tt2.html 1.38 KiB
<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]'.", provider.displayname) %]</p>

<fieldset class="scrollable">
[% IF provider.contacts.defined %]
    <label for="entityid">[% lh.maketext("Select the email address where an email challenge can be sent to validate your identity:") %]</label>
    <br>
    <div class="radio_inline">
    [% FOREACH email IN provider.contacts.sort %]
        <input name="email" value="[% email %]" type="radio" class="required"/><label for="email">[% email %]</label><br/>
    [% END %]
        <input type="hidden" name="entityid" value="[% provider.entityid %]" id="entityid"/>
    </div>
    <p>[% lh.maketext("Those email addresses have been extracted from your service metadata.") %]</p>

[% 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 %]
</fieldset>

<script type="text/javascript">
    $(function() {
       $('label[for="email"]').on('click', function() {
          var input = $(this).prev();
          input.val([input.attr('value')]);
       });
    });
</script>