selectsource.tpl.php 1.1 KB
Newer Older
1
2
3
4
5
<?php
$this->data['header'] = $this->t('{multiauth:multiauth:select_source_header}');
$this->includeAtTemplateBase('includes/header.php');
?>

6
<h2><?php echo 'Identity Provider auswählen' ?></h2>
7

8
<p><?php echo 'Bitte wählen Sie eienn Identity-Provider aus, mit dem Sie sich authentifiizieren wollen:' ?></p>
9
10
11
12
13

<form action="/idp/module.php/multiauth/selectsource.php" method="get">
    <input type="hidden" name="AuthState" value="<?php echo htmlspecialchars($this->data['authstate']); ?>" />
    <ul>
<?php
Wolfgang Knopki's avatar
Wolfgang Knopki committed
14
echo '<div>';
15
16
17
18
19
20
21
foreach ($this->data['sources'] as $source) {
    if ($source['source'] === $this->data['preferred']) {
        $autofocus = ' autofocus="autofocus"';
    } else {
        $autofocus = '';
    }
    $name = 'src-'.base64_encode($source['source']);
Wolfgang Knopki's avatar
Wolfgang Knopki committed
22
    echo '<input type="submit" class="'.htmlspecialchars($source['css_class']).'"  name="'.htmlspecialchars($name).'"'.$autofocus.' '.
23
24
25
        'id="button-'.htmlspecialchars($source['source']).'" '.
        'value="'.htmlspecialchars($source['text']).'" />';
}
Wolfgang Knopki's avatar
Wolfgang Knopki committed
26
echo '</div>';
27
28
29
30
?>
    </ul>
</form>
<?php $this->includeAtTemplateBase('includes/footer.php');