diff --git a/themes/bootstrap3/templates/Auth/MultiILS/newpassword.phtml b/themes/bootstrap3/templates/Auth/MultiILS/newpassword.phtml index 1c6e7e2bfba16481a675fb3fd8a1b234f359c2d9..04c0fbce37ed963751cd4dbe8131ab1f727a5745 100644 --- a/themes/bootstrap3/templates/Auth/MultiILS/newpassword.phtml +++ b/themes/bootstrap3/templates/Auth/MultiILS/newpassword.phtml @@ -11,6 +11,7 @@ <label class="col-sm-3 control-label"><?=$this->transEsc('old_password') ?>:</label> <div class="col-sm-9"> <input type="password" name="oldpwd" class="form-control"/> + <div class="help-block with-errors"></div> </div> </div> <? endif; ?> diff --git a/themes/jquerymobile/templates/Auth/ILS/newpassword.phtml b/themes/jquerymobile/templates/Auth/ILS/newpassword.phtml index 4c0b2d107fd35a6b3f22b57495d085c510a06728..7ac88888f698fbc481dc30346f432abdede4823c 100644 --- a/themes/jquerymobile/templates/Auth/ILS/newpassword.phtml +++ b/themes/jquerymobile/templates/Auth/ILS/newpassword.phtml @@ -12,4 +12,4 @@ <input type="password" name="password" id="password" class="ui-input-text ui-body-c ui-corner-all ui-shadow-inset"/><br/> <label for="password2" class="ui-input-text"><?=$this->transEsc('confirm_new_password') ?>:</label> <input type="password" name="password2" id="password2" class="ui-input-text ui-body-c ui-corner-all ui-shadow-inset"/><br/> -</div> \ No newline at end of file +</div> diff --git a/themes/jquerymobile/templates/Auth/MultiILS/loginfields.phtml b/themes/jquerymobile/templates/Auth/MultiILS/loginfields.phtml new file mode 100644 index 0000000000000000000000000000000000000000..1c081bbd2dd567723e95dc5eaf1f226f2b07ffa2 --- /dev/null +++ b/themes/jquerymobile/templates/Auth/MultiILS/loginfields.phtml @@ -0,0 +1,11 @@ +<label for="login_target"><?=$this->transEsc('login_target')?>:</label> +<?$currentTarget = $this->request->get('target'); if (!$currentTarget) $currentTarget = $this->auth()->getManager()->getDefaultLoginTarget();?> +<select id="login_target" name="target"> + <?foreach ($this->auth()->getManager()->getLoginTargets() as $target):?> + <option value="<?=$this->escapeHtmlAttr($target)?>"<?=($target == $currentTarget ? ' selected="selected"' : '')?>><?=$this->transEsc("source_$target", null, $target)?></option> + <? endforeach ?> +</select> +<label for="login_username"><?=$this->transEsc('Username')?>:</label> +<input id="login_username" type="text" name="username" value="<?=$this->escapeHtmlAttr($this->request->get('username'))?>"/> +<label for="login_password"><?=$this->transEsc('Password')?>:</label> +<input id="login_password" type="password" name="password"/> diff --git a/themes/jquerymobile/templates/Auth/MultiILS/newpassword.phtml b/themes/jquerymobile/templates/Auth/MultiILS/newpassword.phtml new file mode 100644 index 0000000000000000000000000000000000000000..7ac88888f698fbc481dc30346f432abdede4823c --- /dev/null +++ b/themes/jquerymobile/templates/Auth/MultiILS/newpassword.phtml @@ -0,0 +1,15 @@ +<div data-role="fieldcontain" class="ui-field-contain ui-body ui-br"> + <? if (isset($this->username)): ?> + <input type="hidden" name="username" value="<?=$this->username ?>"/> + <label class="ui-input-text"><?=$this->transEsc('Username') ?>:</label> + <input type="text" name="username" id="username" value="<?=$this->username ?>" disabled class="ui-input-text ui-body-c ui-corner-all ui-shadow-inset" style="border:1px solid #CCC;box-shadow:rgba(0, 0, 0, 0.1) 0px 1px 4px 0px inset;color:#777"/><br/> + <? endif; ?> + <? if (isset($this->verifyold) && $this->verifyold || isset($this->oldpwd)): ?> + <label for="oldpwd" class="ui-input-text"><?=$this->transEsc('old_password') ?>:</label> + <input type="password" name="oldpwd" id="oldpwd" class="ui-input-text ui-body-c ui-corner-all ui-shadow-inset"/><br/> + <? endif; ?> + <label for="password" class="ui-input-text"><?=$this->transEsc('new_password') ?>:</label> + <input type="password" name="password" id="password" class="ui-input-text ui-body-c ui-corner-all ui-shadow-inset"/><br/> + <label for="password2" class="ui-input-text"><?=$this->transEsc('confirm_new_password') ?>:</label> + <input type="password" name="password2" id="password2" class="ui-input-text ui-body-c ui-corner-all ui-shadow-inset"/><br/> +</div>