mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 00:09:06 +01:00
- LSlang : Compatibilité sans-JS
This commit is contained in:
parent
45049d719c
commit
0092395c35
3 changed files with 19 additions and 0 deletions
|
@ -85,6 +85,9 @@ var LSdefault = new Class({
|
|||
this.LSlang_select.getElements('img').each(function(img) {
|
||||
img.addEvent('click',this.onSelectLSlangImgClick.bind(this,img));
|
||||
},this);
|
||||
document.getElements('.LSlang_hidden').each(function(el) {
|
||||
el.dispose();
|
||||
},this);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -28,6 +28,14 @@
|
|||
<dd><input type='text' name='LSsession_user' /></dd>
|
||||
<dt>{$loginform_label_pwd}</dt>
|
||||
<dd><input type='password' name='LSsession_pwd' /></dd>
|
||||
<dt class='LSlang_hidden'>{$lang_label}</dt>
|
||||
<dd class='LSlang_hidden'>
|
||||
<select name='lang'>
|
||||
{foreach from=$LSlanguages item=lang}
|
||||
<option value='{$lang}'>{$lang}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</dd>
|
||||
<dd><input type='submit' value='{$loginform_label_submit}' /></dd>
|
||||
</dl>
|
||||
</form>
|
||||
|
|
|
@ -38,6 +38,14 @@
|
|||
</td>
|
||||
<td id='status'>
|
||||
<span>{$lang_label} : <img id='LSlang' src='{$LS_IMAGES_DIR}/{$LSlang}.png' alt='{$LSlang}' title='{$LSlang}'/></span>
|
||||
<form action='' methode='post' style='display: inline' class='LSlang_hidden'/>
|
||||
<select name='lang'>
|
||||
{foreach from=$LSlanguages item=lang}
|
||||
<option value='{$lang}'>{$lang}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
<input type='submit' value='->'/>
|
||||
</form>
|
||||
{$connected_as} <span id='user_name'>{$LSsession_username}</span> <a href='index.php?LSsession_logout'><img src='{$LS_IMAGES_DIR}/logout.png' alt='Logout' title='Logout' /></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in a new issue