cqtu/templates/registration/profile.html

43 lines
1.4 KiB
HTML
Raw Permalink 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">
2017-01-23 03:04:46 +01:00
<div class="form-group">
2017-01-26 20:36:55 +01:00
<label class="control-label">User <span class="glyphicon glyphicon-ok-sign text-success"></span></label>
2017-01-23 03:04:46 +01:00
<p class="form-control-static">{{ user }}</p>
</div>
<div class="form-group">
2017-01-26 20:36:55 +01:00
<label class="control-label">Exchange <span class="glyphicon {% if user.ref %}glyphicon-ok-sign text-success{% else %}glyphicon-remove-sign text-danger{% endif %}"></span></label>
2017-01-23 03:04:46 +01:00
<p class="form-control-static">{{ user.ref|default:"Not registered" }}</p>
</div>
2017-01-26 20:36:55 +01:00
<div class="form-group">
<label class="control-label">Contest Entry <span class="glyphicon {% if user.cat %}glyphicon-ok-sign text-success{% else %}glyphicon-remove-sign text-danger{% endif %}"></span></label>
<p>
{% crispy catForm %}
</p>
</div>
2017-01-22 22:54:57 +01:00
</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 }}
2017-01-26 20:36:55 +01:00
<button type="submit" class="btn btn-primary" name="submit" value="pwchange">Change Password</button>
2017-01-22 22:54:57 +01:00
</form>
</div>
</div>
</div>
</div>
{% endblock %}