Skip to content
Snippets Groups Projects
Commit 1a3e08e2 authored by Olav Morken's avatar Olav Morken
Browse files

IdP discovery service: Add autofocus.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@647 44740490-163a-0410-bde0-09ae8108e29a
parent 825729f6
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,8 @@ if(!array_key_exists('header', $this->data)) {
}
$this->data['header'] = $this->t($this->data['header']);
$this->data['autofocus'] = 'selectbutton';
$this->includeAtTemplateBase('includes/header.php');
foreach ($this->data['idplist'] AS $idpentry) {
......@@ -41,7 +43,7 @@ foreach ($this->data['idplist'] AS $idpentry) {
}
?>
</select>
<input type="submit" value="<?php echo $this->t('select'); ?>"/>
<input id="selectbutton" type="submit" value="<?php echo $this->t('select'); ?>"/>
</form>
......
......@@ -5,6 +5,8 @@ if(!array_key_exists('header', $this->data)) {
}
$this->data['header'] = $this->t($this->data['header']);
$this->data['autofocus'] = 'preferredidp';
$this->includeAtTemplateBase('includes/header.php');
foreach ($this->data['idplist'] AS $idpentry) {
......@@ -39,7 +41,7 @@ foreach ($this->data['idplist'] AS $idpentry) {
echo htmlspecialchars($this->t('idpname_' . $idpentry['entityid'])) . '</h3>';
echo ' <p>' . htmlspecialchars($this->t('idpdesc_' . $idpentry['entityid'])) . '<br />';
echo ' [ <a href="' . $this->data['urlpattern'] . htmlspecialchars($idpentry['entityid']) . '">Select this IdP</a>]</p>';
echo ' [ <a id="preferredidp" href="' . $this->data['urlpattern'] . htmlspecialchars($idpentry['entityid']) . '">Select this IdP</a>]</p>';
echo '</div>';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment