96 lines
4.3 KiB
HTML
96 lines
4.3 KiB
HTML
{% extends "layouts/base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block title %}{% trans "Account Activation" %}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="min-h-screen bg-gradient-to-br from-light to-blue-50 flex items-center justify-center py-12 px-4">
|
|
<div class="max-w-2xl w-full">
|
|
<div class="bg-white rounded-3xl shadow-xl p-8 md:p-12">
|
|
<!-- Header -->
|
|
<div class="text-center mb-8">
|
|
<div class="inline-flex items-center justify-center w-20 h-20 bg-gradient-to-br from-blue to-orange-500 rounded-full mb-6">
|
|
<i data-lucide="user-plus" class="w-10 h-10 text-white"></i>
|
|
</div>
|
|
<h1 class="text-3xl md:text-4xl font-bold text-gray-800 mb-3">
|
|
{% trans "Create Your Account" %}
|
|
</h1>
|
|
<p class="text-gray-500">
|
|
{% trans "Set up your account to get started" %}
|
|
</p>
|
|
</div>
|
|
|
|
<!-- Progress -->
|
|
<div class="mb-8">
|
|
<div class="flex items-center justify-between mb-2">
|
|
<span class="text-sm font-medium text-gray-500">{% trans "Step 1 of 3" %}</span>
|
|
<span class="text-sm font-medium text-navy">33%</span>
|
|
</div>
|
|
<div class="w-full bg-gray-200 h-2 rounded-full overflow-hidden">
|
|
<div class="bg-gradient-to-r from-navy to-orange-500 h-full w-1/3"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Form -->
|
|
<form method="post" class="space-y-6">
|
|
{% csrf_token %}
|
|
|
|
<div>
|
|
<label class="block text-gray-700 font-medium mb-2">
|
|
{% trans "Full Name" %}
|
|
</label>
|
|
<input type="text" name="full_name" value="{{ provisional_account.full_name }}" readonly
|
|
class="w-full px-4 py-3 bg-gray-50 border border-gray-200 rounded-xl text-gray-600 cursor-not-allowed">
|
|
</div>
|
|
|
|
<div>
|
|
<label class="block text-gray-700 font-medium mb-2">
|
|
{% trans "Email Address" %}
|
|
</label>
|
|
<input type="email" name="email" value="{{ provisional_account.email }}" readonly
|
|
class="w-full px-4 py-3 bg-gray-50 border border-gray-200 rounded-xl text-gray-600 cursor-not-allowed">
|
|
</div>
|
|
|
|
<div>
|
|
<label class="block text-gray-700 font-medium mb-2">
|
|
{% trans "Password" %}
|
|
</label>
|
|
<input type="password" name="password" required
|
|
class="w-full px-4 py-3 border border-gray-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-navy focus:border-transparent"
|
|
placeholder="{% trans 'Create a strong password' %}">
|
|
</div>
|
|
|
|
<div>
|
|
<label class="block text-gray-700 font-medium mb-2">
|
|
{% trans "Confirm Password" %}
|
|
</label>
|
|
<input type="password" name="confirm_password" required
|
|
class="w-full px-4 py-3 border border-gray-200 rounded-xl focus:outline-none focus:ring-2 focus:ring-navy focus:border-transparent"
|
|
placeholder="{% trans 'Confirm your password' %}">
|
|
</div>
|
|
|
|
{% if form.errors %}
|
|
<div class="bg-red-50 border border-red-200 rounded-xl p-4">
|
|
<p class="text-red-700 text-sm">
|
|
{% for error in form.non_field_errors %}
|
|
{{ error }}
|
|
{% endfor %}
|
|
</p>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<button type="submit" class="w-full bg-gradient-to-r from-navy to-orange-500 text-white px-6 py-4 rounded-xl font-bold hover:from-navy hover:to-orange-600 transition shadow-lg shadow-blue-200">
|
|
{% trans "Continue" %}
|
|
<i data-lucide="arrow-right" class="w-5 h-5 inline ml-2"></i>
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
lucide.createIcons();
|
|
});
|
|
</script>
|
|
{% endblock %} |