You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

35 lines
1.2 KiB

{% extends 'base.html' %}
{% load static %}
{% block content %}
<h2>Profile</h2>
{% for field in form %}
{{ field.error }}
{% endfor %}
<div class="user_data">
<p>Username: {{ user.username }}</p>
<p>Email: {{ user.email }}</p>
<p>Phone: {{ profile.phone }}</p>
<p>Site: {{ profile.website }}</p>
<p>City: {{ profile.city }}</p>
<p>Parent: {{ profile.parent.username }}</p>
<!--<div class="discount_code">-->
<!--<p>Discount code: {{ discount.code }}</p>-->
<!--<form action="{% url 'discount:create' %}" method="post">{% csrf_token %}-->
<!--<input type="submit" name="discount" value="GetDC" />-->
<!--</form>-->
<!--</div>-->
<div class="user_profile_points">
<p>Points: {{ profile.user_points }}</p>
<form action="{% url 'profile:pick_up_points' %}">
<input type="submit" name="pick_up_points" value="Pick Up Points" />
</form>
</div>
<form action="{% url 'profile:update_profile' %}">
<input type="submit" name="update_profile" value="Update Profile" />
</form>
</div>
{% endblock %}