-
Analyzing your requirements and generating your app…
-
-
Loading…
+
+
-
AppWizzy AI is collecting your requirements and applying the first changes.
-
This page will refresh automatically as the plan is implemented.
-
- Runtime: Django {{ django_version }} · Python {{ python_version }}
- — UTC {{ current_time|date:"Y-m-d H:i:s" }}
-
-
-
-
-{% endblock %}
\ No newline at end of file
+
+
+
+
Welcome to your CRM
+
Manage your clients and leads effectively.
+
+
+
+
+
+
+
+
Clients
+
+
+
+ | Name |
+ Email |
+ Phone |
+ Status |
+
+
+
+ {% for client in clients %}
+
+ | {{ client.first_name }} {{ client.last_name }} |
+ {{ client.email }} |
+ {{ client.phone }} |
+ {{ client.get_status_display }} |
+
+ {% endfor %}
+
+
+
+
+
+
+
+
+
+{% endblock %}
diff --git a/core/urls.py b/core/urls.py
index 6299e3d..55777f9 100644
--- a/core/urls.py
+++ b/core/urls.py
@@ -1,7 +1,6 @@
from django.urls import path
-
-from .views import home
+from .views import index
urlpatterns = [
- path("", home, name="home"),
-]
+ path('', index, name='index'),
+]
\ No newline at end of file
diff --git a/core/views.py b/core/views.py
index c9aed12..16d02a9 100644
--- a/core/views.py
+++ b/core/views.py
@@ -1,25 +1,15 @@
-import os
-import platform
+from django.shortcuts import render, redirect
+from .models import Client
+from .forms import ClientForm
-from django import get_version as django_version
-from django.shortcuts import render
-from django.utils import timezone
-
-
-def home(request):
- """Render the landing screen with loader and environment details."""
- host_name = request.get_host().lower()
- agent_brand = "AppWizzy" if host_name == "appwizzy.com" else "Flatlogic"
- now = timezone.now()
-
- context = {
- "project_name": "New Style",
- "agent_brand": agent_brand,
- "django_version": django_version(),
- "python_version": platform.python_version(),
- "current_time": now,
- "host_name": host_name,
- "project_description": os.getenv("PROJECT_DESCRIPTION", ""),
- "project_image_url": os.getenv("PROJECT_IMAGE_URL", ""),
- }
- return render(request, "core/index.html", context)
+def index(request):
+ if request.method == 'POST':
+ form = ClientForm(request.POST)
+ if form.is_valid():
+ form.save()
+ return redirect('index')
+ else:
+ form = ClientForm()
+
+ clients = Client.objects.all()
+ return render(request, 'core/index.html', {'form': form, 'clients': clients})
\ No newline at end of file
diff --git a/static/css/custom.css b/static/css/custom.css
index 925f6ed..0a2751f 100644
--- a/static/css/custom.css
+++ b/static/css/custom.css
@@ -1,4 +1,36 @@
-/* Custom styles for the application */
body {
- font-family: system-ui, -apple-system, sans-serif;
+ font-family: 'Lato', sans-serif;
+ background-color: #f7fafc;
}
+
+h1, h2, h3, h4, h5, h6 {
+ font-family: 'Poppins', sans-serif;
+}
+
+.sidebar {
+ background-color: #1a202c;
+ width: 250px;
+}
+
+.hero-section {
+ background: linear-gradient(45deg, #1a202c, #4299e1);
+}
+
+.main-content .card {
+ border: none;
+ box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
+}
+
+.btn-primary {
+ background-color: #4299e1;
+ border-color: #4299e1;
+}
+
+.badge.bg-primary {
+ background-color: #4299e1 !important;
+}
+
+.form-control:focus {
+ border-color: #4299e1;
+ box-shadow: 0 0 0 0.25rem rgba(66, 153, 225, 0.25);
+}
\ No newline at end of file