cqtu/templates/registration/profile.html

37 lines
853 B
HTML
Raw Normal View History

2017-01-22 22:54:57 +01:00
{% extends "base.html" %}
{% load crispy_forms_tags %}
{% block content %}
<div class="row">
<div class="col-sm-6">
<div class="panel panel-default">
<div class="panel-heading">User Info</div>
<div class="panel-body">
<p>
<dl class="dl-horizontal">
<dt>Username</dt>
<dd>{{ user }}</td>
<dt>Exchange</dt>
<dd>{{ user.ref|default:"Not registered" }}</td>
</dl>
</p>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="panel panel-default">
<div class="panel-heading">Change Password</div>
<div class="panel-body">
<form method="POST" action="{% url "profile" %}">
{% csrf_token %}
{{ pwForm|crispy }}
<button type="submit" class="btn btn-primary" name="form" value="pwchange">Change Password</button>
</form>
</div>
</div>
</div>
</div>
{% endblock %}