ldap-frontend/ldap_frontend/templates/selfservice.html

78 lines
3.9 KiB
HTML
Raw Normal View History

2021-12-21 07:30:36 +00:00
{% 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>
2021-12-21 08:58:57 +00:00
<input type="submit" name="userdata" value="update" class="btn btn-primary mb-3"><br>
2021-12-21 07:30:36 +00:00
</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>
2021-12-21 08:58:57 +00:00
<input type="submit" name="passwordchange" value="change password" class="btn btn-primary mb-3"><br>
2021-12-21 07:30:36 +00:00
</fieldset>
</form>
{% endblock %}