ldap-python-webui/user.tpl
2023-04-07 15:21:44 +02:00

83 lines
2.1 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">
<div class="user account">
<h5>{{ str['usr'] }}</h5>
<p>{{ data['firstname'] }} {{ data['surname'] }}</p>
</div>
</div>
<div class="grid-item">
% if data['fakeCn'] == True:
<a href="/edit_fullname" class="edit">{{ str['edit'] }}</a>
% end
</div>
<div class="grid-item">
<div class="email account">
<h5>{{ str['email'] }}</h5>
<p>{{ data['mail'] }}</p>
</div>
</div>
<div class="grid-item">
<a href="/edit_email">{{ str['edit'] }}</a>
</div>
<div class="grid-item">
<div class="account">
<h5>{{ str['pwd'] }}</h5>
<p>********</p>
</div>
</div>
<div class="grid-item">
<a href="/change_pwd">{{ str['edit'] }}</a>
</div>
<div class="grid-item">
<div class="account">
<h5>{{ str['logs'] }}</h5>
</div>
</div>
<div class="grid-item">
<a href="/logs">{{ str['show'] }}</a>
</div>
<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>