simplesamlphp_auth: use a link for the connection button
This commit is contained in:
parent
83b8e5eaf3
commit
fbcc785e5b
|
@ -634,7 +634,7 @@ function simplesamlphp_auth_form_alter(&$form, $form_state, $form_id) {
|
|||
$link = l('Connexion via mon compte citoyen', 'saml_login');
|
||||
//$links = $form['links']['#markup'];
|
||||
//$links = str_replace('</ul>', '<li class="saml">' . $link . '</li></ul>', $links);
|
||||
$button = '<div class="item-list"><ul><li class="first last" style="padding-top: 10px;"><input type="button" class="form-submit" value="Se connecter / S\'inscrire" onClick="document.location.href=\'https://www.montpellier3m.fr/saml_login\'"></li></ul></div>';
|
||||
$button = '<div class="item-list"><ul><li class="first last" style="padding-top: 10px;"><a style="background: none repeat scroll 0 0 #1F4791; color: #FFFFFF; border: medium none; height: 22px; line-height: 22px; width: 200px; margin: 0 10px 10px 10px;" href="https://www.montpellier3m.fr/saml_login">Se connecter / S\'inscrire</a></li></ul></div>';
|
||||
$form['links']['#markup'] = $button;
|
||||
unset($form['pass']);
|
||||
unset($form['name']);
|
||||
|
|
Reference in New Issue