105 lines
2.9 KiB
Smarty
105 lines
2.9 KiB
Smarty
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="robots" content="noindex, nofollow">
|
|
|
|
<title>{{ str['welcome'] }}</title>
|
|
|
|
<link rel="stylesheet" href="{{ url('static', filename='style.css') }}">
|
|
</head>
|
|
|
|
<body>
|
|
<main>
|
|
<h1>{{ str['welcome'] }} <span class="username">{{ data['username'] }}</span></h1>
|
|
|
|
<div class="grid-container">
|
|
<div class="grid-item item1">
|
|
<div class="user account">
|
|
<h5>{{ str['usr'] }}</h5>
|
|
<p>{{ data['firstname'] }} {{ data['surname'] }}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid-item item2">
|
|
% if data['fakeCn'] == True:
|
|
<a href="/edit_fullname" class="edit">{{ str['edit'] }}</a>
|
|
% end
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid-container">
|
|
<div class="grid-item item1">
|
|
<div class="email account">
|
|
<h5>{{ str['email'] }}</h5>
|
|
<p>{{ data['mail'] }}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid-item item2">
|
|
<a href="/edit_email">{{ str['edit'] }}</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid-container">
|
|
<div class="grid-item item1">
|
|
<div class="account">
|
|
<h5>{{ str['pwd'] }}</h5>
|
|
<p>********</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid-item item2">
|
|
<a href="/change_pwd">{{ str['edit'] }}</a>
|
|
</div>
|
|
|
|
<div class="grid-item item3">
|
|
<a href="/_2fa"><button class="green" type="button">2FA gaitu</button></a>
|
|
</div>
|
|
</div>
|
|
<!--
|
|
<div class="grid-container">
|
|
<div class="grid-item item1">
|
|
<div class="account">
|
|
<h5>2FA</h5>
|
|
<p>Bi urratseko autentifikazioa {{data['secureAuth']}}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid-item item2">
|
|
<input type="checkbox" id="2fa" name="2fa" value="2fa" {{!'checked="checked"' if data['secureAuth'] == True else ""}} >
|
|
</div>
|
|
</div>
|
|
-->
|
|
<div class="grid-container">
|
|
<div class="grid-item item1">
|
|
<div class="account">
|
|
<h5>{{ str['logs'] }}</h5>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid-item item2">
|
|
<a href="/logs">{{ str['show'] }}</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid-container">
|
|
<div class="account">
|
|
<a href="/logout"><button class="green" type="button">{{ str['log-out'] }}</button></a>
|
|
<a href="/delete"><button class="red" type="button">{{ str['del'] }}</button></a>
|
|
</div>
|
|
</div>
|
|
|
|
%for type, text, animation in get('alerts', []):
|
|
<div class="alerts {{ animation }}">
|
|
<div class="alert {{ type }}">{{ text }}</div>
|
|
</div>
|
|
%end
|
|
|
|
</main>
|
|
|
|
</body>
|
|
</html>
|