HH/templates/accounts/onboarding/step_checklist.html
2026-02-22 08:35:53 +03:00

94 lines
4.2 KiB
HTML

{% extends "layouts/base.html" %}
{% load i18n %}
{% block title %}{% trans "Onboarding Checklist" %}{% 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-3xl 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="clipboard-list" class="w-10 h-10 text-white"></i>
</div>
<h1 class="text-3xl md:text-4xl font-bold text-gray-800 mb-3">
{% trans "Complete Your Checklist" %}
</h1>
<p class="text-gray-500">
{% trans "Please complete the following onboarding tasks" %}
</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 2 of 3" %}</span>
<span class="text-sm font-medium text-navy">66%</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-2/3"></div>
</div>
</div>
<!-- Checklist Items -->
<form method="post" class="space-y-4 mb-8">
{% csrf_token %}
<div class="space-y-3">
{% for item in checklist_items %}
<label class="flex items-start gap-4 p-4 border border-gray-200 rounded-xl hover:bg-gray-50 transition cursor-pointer">
<input type="checkbox" name="completed_items" value="{{ item.id }}"
{% if item.id in completed_items %}checked{% endif %}
class="w-5 h-5 mt-0.5 text-navy border-gray-300 rounded focus:ring-navy">
<div class="flex-1">
<div class="font-medium text-gray-800">{{ item.title }}</div>
{% if item.description %}
<p class="text-sm text-gray-500 mt-1">{{ item.description }}</p>
{% endif %}
</div>
<span class="text-xs bg-gray-100 text-gray-500 px-2 py-1 rounded-full">
Step {{ item.step }}
</span>
</label>
{% endfor %}
</div>
{% if form.errors %}
<div class="bg-red-50 border border-red-200 rounded-xl p-4 mt-6">
<p class="text-red-700 text-sm">
{% for error in form.non_field_errors %}
{{ error }}
{% endfor %}
</p>
</div>
{% endif %}
</form>
<!-- Actions -->
<div class="flex gap-4">
<button type="submit" formmethod="post" class="flex-1 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>
</div>
<!-- Help Tip -->
<div class="bg-blue-50 border border-blue-200 rounded-xl p-4 mt-6">
<div class="flex items-start gap-3">
<i data-lucide="info" class="w-5 h-5 text-blue-500 mt-0.5 flex-shrink-0"></i>
<p class="text-sm text-blue-700">
{% trans "You can complete these tasks later from your dashboard if needed." %}
</p>
</div>
</div>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
lucide.createIcons();
});
</script>
{% endblock %}