Initial Commit
This commit is contained in:
@@ -0,0 +1,100 @@
|
||||
<div class="login-box">
|
||||
<div class="login-logo">
|
||||
|
||||
<?php if(file_exists(APPLICATION_PATH . "/../public/baseImg/logo.png")): ?>
|
||||
<img class="center-block" src="../baseImg/logo.png" />
|
||||
<?php else: ?>
|
||||
<img class="center-block" src="../baseImg/no_logo.png" />
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $nomeSito = explode('.',$this->datiAziendali['NomeBreve']); ?>
|
||||
<?php if(count($nomeSito) > 1): ?>
|
||||
<a href="<?= $this->url(array(),'default',true); ?>"><b><?= ucfirst($nomeSito[0]); ?></b>.<?= $nomeSito[1] ?></a>
|
||||
<?php else: ?>
|
||||
<a href="<?= $this->url(array(),'default',true); ?>"><b><?= ucfirst($nomeSito[0]); ?></b></a>
|
||||
<?php endif; ?>
|
||||
|
||||
</div><!-- /.login-logo -->
|
||||
|
||||
<div class="card-body login-card-body">
|
||||
|
||||
<?php if(!$this->rcode): ?>
|
||||
<p class="login-box-msg">Inserisci l'email con cui sei registrato per il reset password</p>
|
||||
<?php else: ?>
|
||||
<p class="login-box-msg">Inserisci la nuova password</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->errorMessage): ?>
|
||||
<div class="alert alert-danger"><?= $this->errorMessage; ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->warningMessage): ?>
|
||||
<div class="alert alert-warning"><?= $this->warningMessage; ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->successMessage): ?>
|
||||
<div class="alert alert-success"><?= $this->successMessage; ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(!$this->rcode && !$this->hideForm): ?>
|
||||
|
||||
<form action="<?= $this->url(array(), 'resetpassword',true); ?>" method="post" autocomplete="off">
|
||||
<div class="input-group mb-3">
|
||||
<input type="email" class="form-control" value="<?= $this->formData['Email']; ?>" autocomplete="off"
|
||||
name="Email" placeholder="Email"/>
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
<span class="fas fa-envelope"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<button type="submit" class="btn btn-brand btn-block text-uppercase">Richiedi Reset</button>
|
||||
</div><!-- /.col -->
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->rcode && !$this->hideForm): ?>
|
||||
|
||||
<form action="<?= $this->url(array('rcode'=>$this->rcode), 'resetpassword',true); ?>" method="post" autocomplete="off">
|
||||
<div class="input-group mb-3">
|
||||
<input type="password" class="form-control <?= ($this->errorForm['password']) ? 'is-invalid' : ''; ?>" value="" autocomplete="off" id="password"
|
||||
name="password" placeholder="Nuova password"/>
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
<span class="fas fa-lock"></span>
|
||||
</div>
|
||||
</div>
|
||||
<?php foreach ((array)$this->errorForm['password'] as $error): ?>
|
||||
<span class="error invalid-feedback text-right"><?= $error; ?></span>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
<div class="input-group mb-3">
|
||||
<input type="password" class="form-control <?= ($this->errorForm['password2']) ? 'is-invalid' : ''; ?>" value="" autocomplete="off" id="password2"
|
||||
name="password2" placeholder="Ripeti password"/>
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
<span class="fas fa-lock"></span>
|
||||
</div>
|
||||
</div>
|
||||
<?php foreach ((array)$this->errorForm['password2'] as $error): ?>
|
||||
<span class="error invalid-feedback text-right"><?= $error; ?></span>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<button type="submit" class="btn btn-brand btn-block text-uppercase">Reimposta Password</button>
|
||||
</div><!-- /.col -->
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div><!-- /.login-box-body -->
|
||||
<p class="footer-login text-muted">© Copyright <?= date('Y');?> - Adriatica Sistemi soc. coop.</p>
|
||||
</div><!-- /.login-box -->
|
||||
Reference in New Issue
Block a user