ldap-python-webui/edit_fullname.tpl

42 lines
1.2 KiB
Smarty
Raw Normal View History

2022-04-09 17:38:00 +02:00
<!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['edit-fn'] }}</title>
<link rel="stylesheet" href="{{ url('static', filename='style.css') }}">
</head>
<body>
<main>
<h1>{{ str['edit-fn'] }}</h1>
<form name="fullNameForm" method="post" action="/edit_fullname">
<label for="firstname">{{ str['fn'] }}</label>
<input id="firstname" name="firstname" type="text" value="{{ data['firstname'] }}">
<label for="surname">{{ str['sn'] }}</label>
<input id="surname" name="surname" type="text" value="{{ data['surname'] }}" >
<div class="form-buttons">
<a href="/user"><button class="green" type="button">{{ str['back'] }}</button></a>
<button class="green" type="submit">{{ str['update'] }}</button>
</div>
</form>
%for type, text, animation in get('alerts', []):
<div class="alerts {{ animation }}">
<div class="alert {{ type }}">{{ text }}</div>
</div>
%end
</main>
</body>
</html>