2019-10-29 14:57:13 +01:00
|
|
|
<?php
|
|
|
|
//Template dashboard
|
|
|
|
|
|
|
|
$this->render('incs/head', ['title' => 'Profile - Show'])
|
|
|
|
?>
|
|
|
|
<div id="wrapper">
|
|
|
|
<?php
|
|
|
|
$this->render('incs/nav', ['page' => 'Account - Show']);
|
|
|
|
?>
|
|
|
|
<div id="page-wrapper">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<!-- Page Heading -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<h1 class="page-header">
|
|
|
|
Dashboard <small>Profil</small>
|
|
|
|
</h1>
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li>
|
2019-11-07 17:52:33 +01:00
|
|
|
<i class="fa fa-dashboard"></i> <a href="<?php echo \descartes\Router::url('Dashboard', 'show'); ?>">Dashboard</a>
|
2019-10-29 14:57:13 +01:00
|
|
|
</li>
|
|
|
|
<li class="active">
|
|
|
|
<i class="fa fa-user"></i> Profil
|
|
|
|
</li>
|
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /.row -->
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title"><i class="fa fa-user fa-fw"></i> Mon profil</h3>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="col-xs-12 col-md-6">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h4 class="panel-title"><i class="fa fa-child fa-fw"></i> Mes données</h4>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<strong>Adresse e-mail :</strong> <?php $this->s($_SESSION['user']['email']); ?><br/>
|
|
|
|
<strong>Niveau administrateur :</strong> <?php echo $_SESSION['user']['admin'] ? 'Oui' : 'Non'; ?><br/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h4 class="panel-title"><i class="fa fa-key fa-fw"></i> Modifier mot de passe</h4>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
2019-11-10 00:27:42 +01:00
|
|
|
<form action="<?php echo \descartes\Router::url('Account', 'update_password', ['csrf' => $_SESSION['csrf']]); ?>" method="POST">
|
2019-10-29 14:57:13 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label>Mot de passe :</label>
|
|
|
|
<input name="password" type="password" class="form-control" placeholder="Nouveau mot de passe" />
|
|
|
|
</div>
|
|
|
|
<div class="text-center">
|
|
|
|
<button class="btn btn-success">Mettre à jour les données</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h4 class="panel-title"><i class="fa fa-trash-o fa-fw"></i> Supprimer ce compte</h4>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
2019-11-07 17:52:33 +01:00
|
|
|
<form action="<?php echo \descartes\Router::url('Account', 'delete', ['csrf' => $_SESSION['csrf']]); ?>" method="POST">
|
2019-10-29 14:57:13 +01:00
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
|
|
|
<input name="delete_account" type="checkbox" value="1" /> Je suis totalement sûr de vouloir supprimer ce compte
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
<div class="text-center">
|
|
|
|
<button class="btn btn-danger">Supprimer ce compte</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-12 col-md-6">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h4 class="panel-title"><i class="fa fa-at fa-fw"></i> Modifier e-mail</h4>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
2019-11-10 00:27:42 +01:00
|
|
|
<form action="<?php echo \descartes\Router::url('Account', 'update_email', ['csrf' => $_SESSION['csrf']]); ?>" method="POST">
|
2019-10-29 14:57:13 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label>Adresse e-mail :</label>
|
|
|
|
<input name="email" type="email" class="form-control" placeholder="Nouvelle adresse e-mail" />
|
|
|
|
</div>
|
|
|
|
<div class="text-center">
|
|
|
|
<button class="btn btn-success">Mettre à jour les données</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h4 class="panel-title"><i class="fa fa-share fa-fw"></i> Transfert des SMS par e-mail</h4>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
2019-11-10 00:27:42 +01:00
|
|
|
<form action="<?php echo \descartes\Router::url('Account', 'update_transfer', ['csrf' => $_SESSION['csrf']]); ?>" method="POST">
|
2019-10-29 14:57:13 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label>Transfert activé : </label>
|
|
|
|
<select name="transfer" class="form-control">
|
|
|
|
<option value="0">Non</option>
|
|
|
|
<option value="1" <?php echo $_SESSION['user']['transfer'] ? 'selected' : ''; ?>>Oui</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="text-center">
|
|
|
|
<button class="btn btn-success">Mettre à jour les données</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
jQuery(document).ready(function ()
|
|
|
|
{
|
|
|
|
jQuery('.action-dropdown a').on('click', function (e)
|
|
|
|
{
|
|
|
|
e.preventDefault();
|
|
|
|
var target = jQuery(this).parents('.action-dropdown').attr('target');
|
|
|
|
var url = jQuery(this).attr('href');
|
|
|
|
jQuery(target).find('input:checked').each(function ()
|
|
|
|
{
|
|
|
|
url += '/' + jQuery(this).val();
|
|
|
|
});
|
|
|
|
window.location = url;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<?php
|
|
|
|
$this->render('incs/footer');
|