{% extends "fruit/mystore.html" %}
{% load static %}
{% load crispy_forms_tags %}

{% block header %}
{{ form1.media }}
{{ form2.media }}
{% endblock %}

{% block store_main %}
<form  method="post">
    {% csrf_token %}
    <dl>
        <dt>Email:</dt>
        <dd>
            {{ user.email }}</dd>
        <dt>User name:</dt>
        <dd>
            {{ user.username }}</dd>
        <dt>Role</td>
        <dd>
            {{ user.profile.get_roles_display }}</dd>
    </dl>
    {{ form1 | crispy }}
    {{ form2 | crispy }}
    <br>
    <input type='submit' class='btn btn-primary' name='updateProfile' value="Update" />

</form>
{% endblock %}
