78 lines
3.9 KiB
HTML
78 lines
3.9 KiB
HTML
|
{% extends "layout/default.html" %}
|
||
|
{% block title %}self service{% endblock %}
|
||
|
{% block content %}
|
||
|
<form action="{{ url_for("selfservice") }}" method="post" class="row g-3 needs-validation">
|
||
|
<fieldset>
|
||
|
<legend>user data</legend>
|
||
|
|
||
|
<div class="row mb-3">
|
||
|
<label for="uid" class="form-label col-sm-2">uid</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input type="text" name="uid" id="uid" value="{{ CURRENT_USER["uid"]|e }}" disabled readonly class="form-control" aria-describedby="uidHelp">
|
||
|
<div id="uidHelp" class="form-text">contact an administrator if you want to change this</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row mb-3">
|
||
|
<label for="cn" class="form-label col-sm-2">common name</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input type="text" name="cn" id="cn" value="{{ CURRENT_USER["cn"]|e }}" disabled readonly class="form-control" aria-describedby="cnHelp">
|
||
|
<div id="cnHelp" class="form-text">gets adjusted automatically</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row mb-3">
|
||
|
<label for="sn" class="form-label col-sm-2">surname</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input type="text" name="sn" id="sn" value="{{ CURRENT_USER["sn"]|e }}" required class="form-control">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row mb-3">
|
||
|
<label for="givenName" class="form-label col-sm-2">given name</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input type="text" name="givenName" id="givenName" value="{{ CURRENT_USER["givenName"]|e }}" required class="form-control">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row mb-3">
|
||
|
<label for="mail" class="form-label col-sm-2">email address</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input type="email" name="mail" id="mail" value="{{ CURRENT_USER["mail"]|e }}" required class="form-control">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<input type="submit" value="update" class="btn btn-primary mb-3"><br>
|
||
|
</fieldset>
|
||
|
</form>
|
||
|
|
||
|
<form action="{{ url_for("selfservice") }}" method="post">
|
||
|
<fieldset>
|
||
|
<legend>password</legend>
|
||
|
|
||
|
<div class="row mb-3">
|
||
|
<label for="current" class="form-label col-sm-2">current password</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input type="password" name="current" id="current" value="" class="form-control">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row mb-3">
|
||
|
<label for="new" class="form-label col-sm-2">new password</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input type="password" name="new" id="new" value="" class="form-control">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="row mb-3">
|
||
|
<label for="repeat" class="form-label col-sm-2">repeat new password</label>
|
||
|
<div class="col-sm-10">
|
||
|
<input type="password" name="repeat" id="repeat" value="" class="form-control">
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<input type="submit" value="change password" class="btn btn-primary mb-3"><br>
|
||
|
</fieldset>
|
||
|
</form>
|
||
|
{% endblock %}
|