Skip to content
Snippets Groups Projects
Commit b9929178 authored by Robert Lange's avatar Robert Lange
Browse files

refs #19431 [finc, BARF] add autocomplete for password input in login template

* overwrite bootstrap version of login fields
** loginfields for MultiILS
** loginFields for catalogue login
** add autofocus to username
parent a92cd1c0
No related merge requests found
<!-- finc-accessibility: auth - abstractbase - loginfields.phtml -->
<?php /* copied /themes/bootstrap3/templates/myresearch/loginfields.phtml to add autocomplete */ ?>
<div class="form-group">
<label class="control-label" for="login_<?=$this->escapeHtmlAttr($topClass)?>_username"><?=$this->transEsc('Username')?>:</label>
<input type="text" name="username" id="login_<?=$this->escapeHtmlAttr($topClass)?>_username" value="<?=$this->escapeHtmlAttr($this->request->get('username'))?>" class="form-control" autofocus/>
</div>
<div class="form-group">
<label class="control-label" for="login_<?=$this->escapeHtmlAttr($topClass)?>_password"><?=$this->transEsc('Password')?>:</label>
<input type="password" name="password" id="login_<?=$this->escapeHtmlAttr($topClass)?>_password" class="form-control" autocomplete="current-password"/>
</div>
<!-- finc-accessibility: auth - abstractbase - loginfields.phtml - END -->
<!-- finc-accessibility: auth - multiils - loginfields.phtml -->
<?php /* copied from /themes/bootstrap3/templates/Auth/MultiILS/loginfields.phtml to add autocomplete */ ?>
<div class="form-group">
<label class="control-label" for="login_target"><?=$this->transEsc('login_target')?>:</label>
<?php $currentTarget = $this->request->get('target'); if (!$currentTarget) $currentTarget = $this->auth()->getManager()->getDefaultLoginTarget();?>
<select id="login_target" name="target" class="form-control">
<?php foreach ($this->auth()->getManager()->getLoginTargets() as $target):?>
<option value="<?=$this->escapeHtmlAttr($target)?>"<?=($target == $currentTarget ? ' selected="selected"' : '')?>><?=$this->transEsc("source_$target", null, $target)?></option>
<?php endforeach ?>
</select>
</div>
<div class="form-group">
<label class="control-label" for="login_<?=$this->escapeHtmlAttr($topClass)?>_username"><?=$this->transEsc('Username')?>:</label>
<input id="login_<?=$this->escapeHtmlAttr($topClass)?>_username" type="text" name="username" value="<?=$this->escapeHtmlAttr($this->request->get('username'))?>" class="form-control" autofocus/>
</div>
<div class="form-group">
<label class="control-label" for="login_<?=$this->escapeHtmlAttr($topClass)?>_password"><?=$this->transEsc('Password')?>:</label>
<input id="login_<?=$this->escapeHtmlAttr($topClass)?>_password" type="password" name="password" class="form-control" autocomplete="current-password"/>
</div>
<!-- finc-accessibility: auth - multiils - loginfields.phtml - END -->
\ No newline at end of file
......@@ -34,7 +34,7 @@
</div>
<div class="form-group">
<label class="control-label" for="profile_cat_password"><?=$this->transEsc('Library Catalog Password')?>:</label>
<input id="profile_cat_password" type="password" name="cat_password" value="" class="form-control"/>
<input id="profile_cat_password" type="password" name="cat_password" value="" class="form-control" autocomplete="current-password"/>
</div>
<div class="form-group">
<input class="btn btn-primary" type="submit" name="processLogin" value="<?=$this->transEsc('Login')?>">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment