Skip to content
Snippets Groups Projects
Commit 8147c93f authored by Alexander Purr's avatar Alexander Purr Committed by Robert Lange
Browse files

refs #20733 [finc] move change pin template into finc

* move translations into new text domain LiberoAccount
parent 70bdeee5
Branches
Tags
No related merge requests found
# Change pin account action
change_user_pin = "PIN für Selbstverbuchung ändern"
new_pin = "Neue PIN"
confirm_new_pin = "Neue PIN bestätigen"
new_pin_missmatch = "PIN Eingaben stimmen nicht überein"
set_pin_success = "Die PIN wurde erfolgreich geändert"
set_pin_error = "Änderung der PIN gescheitert. Wenden Sie sich bitte an das Bibliothekspersonal."
set_pin_note = "Hinweis: Die PIN muss vierstellig sein und darf nur aus Ziffern bestehen."
# Change pin account action
change_user_pin = "Change PIN"
new_pin = "New PIN"
confirm_new_pin = "Confirm new PIN"
new_pin_missmatch = "Confirmation of PIN is not valid. Please try it again"
set_pin_success = "New PIN was set successfully"
set_pin_error = "Errors occurred while changing PIN. Please ask on the service desk."
set_pin_note = "Please note that the PIN must consist of four digits only (no letters, no symbols ...)."
<!-- finc: myresearch - setpin -->
<?php
// Set up page title:
$this->headTitle($this->translate('LiberoAccount::change_user_pin'));
// Set up breadcrumbs:
$this->layout()->breadcrumbs = '<li><a href="' . $this->url('myresearch-home') . '">' . $this->transEsc('Your Account') . '</a></li>'
. '<li class="active">' . $this->transEsc('LiberoAccount::change_user_pin') . '</li>';
?>
<?php if ($this->auth()->isLoggedIn()): ?>
<a class="search-filter-toggle visible-xs" href="#myresearch-sidebar" data-toggle="offcanvas" aria-label="<?=$this->transEsc('sidebar_expand')?>">
<?=$this->transEsc('Your Account') ?>
</a>
<div class="<?=$this->layoutClass('mainbody')?>">
<?php endif; ?>
<h1><?=$this->transEsc('LiberoAccount::change_user_pin')?></h1>
<p class="alert alert-info"><?=$this->transEsc('LiberoAccount::set_pin_note')?></p>
<?=$this->flashmessages()?>
<?php if (!$this->auth()->getManager()->supportsPasswordChange($this->auth_method)): ?>
<div class="error"><?=$this->transEsc('recovery_new_disabled')?></div>
<?php elseif (!isset($this->hash)): ?>
<div class="error"><?=$this->transEsc('recovery_user_not_found')?></div>
<?php else: ?>
<form id="setpin" class="form-set-pin" action="<?=$this->url('myresearch-setpin')?>" method="post" data-toggle="validator" role="form">
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->auth()->getManager()->getCsrfHash(true))?>" name="csrf"/>
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->hash)?>" name="hash"/>
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->username)?>" name="username"/>
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->auth_method)?>" name="auth_method"/>
<?php if (isset($this->cat_username)): ?>
<div class="form-group">
<label class="control-label"><?=$this->transEsc('Username')?>:</label>
<p class="form-control"><?=$this->cat_username?></p>
</div>
<?php endif; ?>
<div class="form-group">
<label for="pin" class="control-label"><?=$this->transEsc('LiberoAccount::new_pin')?>:</label>
<input type="password" id="pin" name="pin" class="form-control" required aria-required="true" aria-describedby="pin-policy-error"
<?=isset($this->passwordPolicy['minLength']) ? ' data-minlength="' . $this->passwordPolicy['minLength'] . '" data-minlength-error="' . $this->escapeHtmlAttr($this->translate('password_minimum_length', array('%%minlength%%' => $this->passwordPolicy['minLength']))) . '"' : ''?>
<?=isset($this->passwordPolicy['maxLength']) ? ' maxlength="' . $this->passwordPolicy['maxLength'] . '"' : ''?> pattern="[0-9]{4}" />
<div id="pin-policy-error" class="help-block with-errors"></div>
</div>
<div class="form-group">
<label for="confirm-pin" class="control-label"><?=$this->transEsc('LiberoAccount::confirm_new_pin')?>:</label>
<input type="password" id="confirm-pin" name="pin2" class="form-control" required aria-required="true" data-match="#pin" data-match-error="<?=$this->escapeHtmlAttr($this->translate('LiberoAccount::new_pin_missmatch'))?>" aria-describedby="pin-confirmation-error"/>
<div id="pin-confirmation-error" class="help-block with-errors"></div>
</div>
<div class="form-group">
<input class="btn btn-primary" name="submit" type="submit" value="<?=$this->transEsc('LiberoAccount::change_user_pin')?>"/>
</div>
</form>
<?php endif; ?>
<?php if ($this->auth()->isLoggedIn()): ?>
</div>
<div class="<?=$this->layoutClass('sidebar')?>">
<?=$this->context($this)->renderInContext("myresearch/menu.phtml", ['active' => 'setpin'])?>
</div>
<?php endif; ?>
<!-- finc: myresearch - setpin - END -->
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