{% extends 'base/base.html' %}
{% block title %}Edit Profile - CryptoSignals Pro{% endblock %}

{% block content %}
<div class="container-fluid">
    <h1 class="page-title">Edit Profile</h1>
    
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">
                    <h5 class="mb-0 custom-text-white">Edit Profile</h5>
                </div>
                <div class="card-body">
                    <form method="post" enctype="multipart/form-data">
                        {% csrf_token %}
                        
                        <div class="mb-3">
                            <label class="form-label">First Name</label>
                            {{ form.first_name }}
                        </div>
                        
                        <div class="mb-3">
                            <label class="form-label">Last Name</label>
                            {{ form.last_name }}
                        </div>
                        
                        <div class="mb-3">
                            <label class="form-label">Email</label>
                            {{ form.email }}
                        </div>
                        
                        <div class="mb-3">
                            <label class="form-label">Phone</label>
                            {{ form.phone }}
                        </div>
                        
                        <div class="mb-3">
                            <label class="form-label">Country</label>
                            {{ form.country }}
                        </div>
                        
                        <div class="mb-3">
                            <label class="form-label">City</label>
                            {{ form.city }}
                        </div>
                        
                        <div class="mb-3">
                            <label class="form-label">Postal Code</label>
                            {{ form.postal_code }}
                        </div>
                        
                        <div class="mb-3">
                            <label class="form-label">Address</label>
                            {{ form.address }}
                        </div>
                        
                        <div class="mb-3">
                            <label class="form-label">Date of Birth</label>
                            {{ form.date_of_birth }}
                        </div>
                        
                        <div class="mb-3">
                            <label class="form-label">Profile Image</label>
                            {{ form.profile_image }}
                        </div>
                        
                        <div class="mb-3">
                            <label class="form-label">Bio</label>
                            {{ form.bio }}
                        </div>
                        
                        <div class="d-flex gap-2">
                            <button type="submit" class="btn btn-primary">Save Changes</button>
                            <a href="{% url 'profile' %}" class="btn btn-outline-primary">Cancel</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
