ldapweb/webapp/templates/passwd.html

57 lines
1.6 KiB
HTML

{% extends 'basic.html' %}
{% block content %}
<form action="" method="POST" class="form-passwd">
<h2>Password Change</h2>
<label for="current" class="sr-only">Current password</label>
<input type="password" name="current" class="form-control" placeholder="Current password" required>
<label for="new" class="sr-only">New password</label>
<input type="password" name="new" class="form-control" placeholder="New password" required>
<label for="confirm" class="sr-only">Confirm password</label>
<input type="password" name="confirm" class="form-control" placeholder="Confirm password" required>
<button class="btn btn-lg btn-danger btn-block" type="submit">Change</button>
</form>
{% endblock %}
{% block head %}
<style type="text/css">
.form-passwd {
max-width: 330px;
padding: 15px;
margin: 0 auto;
}
.form-passwd .form-passwd-heading,
.form-passwd .checkbox {
margin-bottom: 10px;
}
.form-passwd .checkbox {
font-weight: normal;
}
.form-passwd .form-control {
position: relative;
height: auto;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 10px;
font-size: 16px;
}
.form-passwd .form-control:focus {
z-index: 2;
}
.form-passwd input[type="password"]:nth-of-type(1) {
margin-bottom: -1px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.form-passwd input[type="password"]:nth-of-type(2) {
border-radius: 0;
margin-bottom: -1px;
}
.form-passwd input[type="password"]:nth-of-type(3) {
margin-bottom: 10px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
</style>
{% endblock %}