{% extends "base.html" %}
{% load static %}
{% block title %}Edit profile{% endblock %}
{% block content %}
<form action="." method="post" enctype="multipart/form-data">
<section class="page-top-section set-bg" data-setbg="{% static 'blog/img/header-bg/1.jpg' %}">
<div class="container">
<h2>Edit profile</h2>
</div>
</section>
<section class="characters-section character-one">
<div class="container">
<div class="row">
<div class="col-lg-7">
<div class="character-info">
<img src='{{ request.user.profile.photo.url }}' class="img-photo">
<h5>{{ profile_form.photo }}</h5>
<!--<input class="site-btn" type="file" accept="image/*" value="sd"> -->
<h2>First_name: {{ user_form.first_name }}</h2>
<h5>Email: {{ user_form.email }}</h5>
<h5>Date of Birth: {{ profile_form.data_of_birth }}</h5>
<h5>Gender: {{ profile_form.gender }}</h5>
<h5>Facebook url: {{ profile_form.Facebookurl }}</h5>
<h5>Steam url: {{ profile_form.steamurl }}</h5>
<h5>Twitter url: {{ profile_form.twitterurl }}</h5>
{% csrf_token %}
<input class="site-btn" type="submit" value="Save changes">
</div>
</div>
</div>
<div class="character-img">
<img src="{{ request.user.profile.backimage.image.url }}" class="img-backimg">
</div>
</div>
</section>
</form>
{% endblock %}