First round

This commit is contained in:
Flatlogic Bot 2025-11-28 05:35:59 +00:00
parent 40e5455967
commit b545d0aaef
59 changed files with 1657 additions and 197 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -58,6 +58,8 @@ INSTALLED_APPS = [
'core',
]
AUTH_USER_MODEL = 'core.User'
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
@ -110,6 +112,8 @@ DATABASES = {
},
}
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
# Password validation
# https://docs.djangoproject.com/en/5.2/ref/settings/#auth-password-validators
@ -180,3 +184,8 @@ if EMAIL_USE_SSL:
# https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
LOGIN_URL = 'login'
LOGIN_REDIRECT_URL = 'core:index'
LOGOUT_REDIRECT_URL = 'login'

View File

@ -22,6 +22,7 @@ from django.conf.urls.static import static
urlpatterns = [
path("admin/", admin.site.urls),
path("", include("core.urls")),
path("", include("django.contrib.auth.urls")),
]
if settings.DEBUG:

View File

Binary file not shown.

View File

View File

@ -0,0 +1,32 @@
from django.core.management.base import BaseCommand
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group
User = get_user_model()
class Command(BaseCommand):
help = 'Assign a user to a group'
def add_arguments(self, parser):
parser.add_argument('username', type=str, help='The username of the user')
parser.add_argument('group_name', type=str, help='The name of the group')
def handle(self, *args, **options):
username = options['username']
group_name = options['group_name']
try:
user = User.objects.get(username=username)
except User.DoesNotExist:
self.stdout.write(self.style.ERROR(f'User "{username}" does not exist'))
return
try:
group = Group.objects.get(name=group_name)
except Group.DoesNotExist:
self.stdout.write(self.style.ERROR(f'Group "{group_name}" does not exist'))
return
user.groups.add(group)
self.stdout.write(self.style.SUCCESS(f'Successfully assigned user "{username}" to group "{group_name}"'))

View File

@ -0,0 +1,55 @@
# Generated by Django 5.2.7 on 2025-11-27 23:25
import django.contrib.auth.models
import django.contrib.auth.validators
import django.db.models.deletion
import django.utils.timezone
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations = [
migrations.CreateModel(
name='Organization',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('logo', models.ImageField(blank=True, null=True, upload_to='organization_logos/')),
],
),
migrations.CreateModel(
name='User',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('password', models.CharField(max_length=128, verbose_name='password')),
('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')),
('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')),
('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')),
('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')),
('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')),
('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')),
('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
('user_type', models.CharField(choices=[('internal', 'Internal'), ('client', 'Client')], max_length=10)),
('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='core_user_set', related_query_name='user', to='auth.group', verbose_name='groups')),
('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='core_user_set', related_query_name='user', to='auth.permission', verbose_name='user permissions')),
('organization', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='users', to='core.organization')),
],
options={
'verbose_name': 'user',
'verbose_name_plural': 'users',
'abstract': False,
},
managers=[
('objects', django.contrib.auth.models.UserManager()),
],
),
]

View File

@ -0,0 +1,29 @@
# Generated by Django 5.2.7 on 2025-11-27 23:25
from django.db import migrations
ROLES = [
"Super admin",
"Org admin",
"Senior_appraiser",
"Junior_appraiser",
"Designated_appraiser",
"Client_user",
"Client_manager",
"Client_admin",
]
def create_groups(apps, schema_editor):
Group = apps.get_model('auth', 'Group')
for role in ROLES:
Group.objects.create(name=role)
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.RunPython(create_groups),
]

View File

@ -0,0 +1,42 @@
# Generated by Django 5.2.7 on 2025-11-27 23:32
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0002_create_groups'),
]
operations = [
migrations.CreateModel(
name='Property',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('address', models.CharField(max_length=255)),
('city', models.CharField(max_length=255)),
('state', models.CharField(max_length=2)),
('zip_code', models.CharField(max_length=10)),
('property_type', models.CharField(choices=[('SINGLE_FAMILY', 'Single Family'), ('MULTI_FAMILY', 'Multi-Family'), ('COMMERCIAL', 'Commercial')], max_length=20)),
('square_footage', models.PositiveIntegerField()),
('bedrooms', models.PositiveIntegerField()),
('bathrooms', models.DecimalField(decimal_places=1, max_digits=3)),
('year_built', models.PositiveIntegerField()),
('description', models.TextField()),
('status', models.CharField(choices=[('FOR_SALE', 'For Sale'), ('FOR_RENT', 'For Rent'), ('SOLD', 'Sold')], max_length=20)),
('organization', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='properties', to='core.organization')),
],
),
migrations.CreateModel(
name='PropertyPhoto',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('image', models.ImageField(upload_to='property_photos/')),
('caption', models.CharField(blank=True, max_length=255)),
('property', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='photos', to='core.property')),
],
),
]

View File

@ -0,0 +1,47 @@
# Generated by Django 5.2.7 on 2025-11-28 02:14
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0003_property_propertyphoto'),
]
operations = [
migrations.CreateModel(
name='Project',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255)),
('description', models.TextField(blank=True)),
('start_date', models.DateField()),
('end_date', models.DateField(blank=True, null=True)),
],
),
migrations.CreateModel(
name='Appraisal',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('appraisal_date', models.DateField()),
('appraised_value', models.DecimalField(decimal_places=2, max_digits=12)),
('notes', models.TextField(blank=True)),
('appraiser', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='appraisals', to=settings.AUTH_USER_MODEL)),
('property', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='appraisals', to='core.property')),
],
),
migrations.CreateModel(
name='Invoice',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('invoice_number', models.CharField(max_length=50)),
('amount', models.DecimalField(decimal_places=2, max_digits=10)),
('due_date', models.DateField()),
('status', models.CharField(choices=[('DRAFT', 'Draft'), ('SENT', 'Sent'), ('PAID', 'Paid'), ('CANCELLED', 'Cancelled')], default='DRAFT', max_length=20)),
('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='invoices', to='core.project')),
],
),
]

View File

@ -0,0 +1,18 @@
# Generated by Django 5.2.7 on 2025-11-28 04:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0004_project_appraisal_invoice'),
]
operations = [
migrations.AddField(
model_name='user',
name='user_role_temp',
field=models.CharField(choices=[('ORG_ADMIN', 'Org admin'), ('SUPER_ADMIN', 'Super admin'), ('JUNIOR_APPRAISER', 'Junior appraiser'), ('SENIOR_APPRAISER', 'Senior appraiser'), ('DESIGNATED_APPRAISER', 'Designated appraiser'), ('CLIENT_USER', 'Client user'), ('CLIENT_MANAGER', 'Client manager'), ('CLIENT_ADMIN', 'Client admin')], default='CLIENT_USER', max_length=20),
),
]

View File

@ -0,0 +1,18 @@
# Generated by Django 5.0.6 on 2025-11-28 20:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0005_user_user_role_temp'),
]
operations = [
migrations.RenameField(
model_name='user',
old_name='user_role_temp',
new_name='role',
),
]

View File

@ -1,3 +1,113 @@
from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
class Organization(models.Model):
name = models.CharField(max_length=255)
logo = models.ImageField(upload_to='organization_logos/', null=True, blank=True)
def __str__(self):
return self.name
class User(AbstractUser):
ROLE_CHOICES = [
('ORG_ADMIN', 'Org admin'),
('SUPER_ADMIN', 'Super admin'),
('JUNIOR_APPRAISER', 'Junior appraiser'),
('SENIOR_APPRAISER', 'Senior appraiser'),
('DESIGNATED_APPRAISER', 'Designated appraiser'),
('CLIENT_USER', 'Client user'),
('CLIENT_MANAGER', 'Client manager'),
('CLIENT_ADMIN', 'Client admin'),
]
organization = models.ForeignKey(Organization, on_delete=models.CASCADE, related_name='users', null=True, blank=True)
user_type = models.CharField(max_length=10, choices=[('internal', 'Internal'), ('client', 'Client')])
role = models.CharField(max_length=20, choices=ROLE_CHOICES, default='CLIENT_USER')
# Add related_name to avoid clashes with default User model's groups and user_permissions
groups = models.ManyToManyField(
'auth.Group',
verbose_name='groups',
blank=True,
help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.',
related_name="core_user_set",
related_query_name="user",
)
user_permissions = models.ManyToManyField(
'auth.Permission',
verbose_name='user permissions',
blank=True,
help_text='Specific permissions for this user.',
related_name="core_user_set",
related_query_name="user",
)
class Property(models.Model):
PROPERTY_TYPE_CHOICES = [
('SINGLE_FAMILY', 'Single Family'),
('MULTI_FAMILY', 'Multi-Family'),
('COMMERCIAL', 'Commercial'),
]
STATUS_CHOICES = [
('FOR_SALE', 'For Sale'),
('FOR_RENT', 'For Rent'),
('SOLD', 'Sold'),
]
organization = models.ForeignKey(Organization, on_delete=models.CASCADE, related_name='properties')
name = models.CharField(max_length=255)
address = models.CharField(max_length=255)
city = models.CharField(max_length=255)
state = models.CharField(max_length=2)
zip_code = models.CharField(max_length=10)
property_type = models.CharField(max_length=20, choices=PROPERTY_TYPE_CHOICES)
square_footage = models.PositiveIntegerField()
bedrooms = models.PositiveIntegerField()
bathrooms = models.DecimalField(max_digits=3, decimal_places=1)
year_built = models.PositiveIntegerField()
description = models.TextField()
status = models.CharField(max_length=20, choices=STATUS_CHOICES)
def __str__(self):
return self.name
class PropertyPhoto(models.Model):
property = models.ForeignKey(Property, on_delete=models.CASCADE, related_name='photos')
image = models.ImageField(upload_to='property_photos/')
caption = models.CharField(max_length=255, blank=True)
def __str__(self):
return f"Photo for {self.property.name}"
class Appraisal(models.Model):
property = models.ForeignKey(Property, on_delete=models.CASCADE, related_name='appraisals')
appraiser = models.ForeignKey(User, on_delete=models.CASCADE, related_name='appraisals')
appraisal_date = models.DateField()
appraised_value = models.DecimalField(max_digits=12, decimal_places=2)
notes = models.TextField(blank=True)
def __str__(self):
return f"Appraisal for {self.property.name} on {self.appraisal_date}"
class Project(models.Model):
name = models.CharField(max_length=255)
description = models.TextField(blank=True)
start_date = models.DateField()
end_date = models.DateField(null=True, blank=True)
def __str__(self):
return self.name
class Invoice(models.Model):
STATUS_CHOICES = [
('DRAFT', 'Draft'),
('SENT', 'Sent'),
('PAID', 'Paid'),
('CANCELLED', 'Cancelled'),
]
project = models.ForeignKey(Project, on_delete=models.CASCADE, related_name='invoices')
invoice_number = models.CharField(max_length=50)
amount = models.DecimalField(max_digits=10, decimal_places=2)
due_date = models.DateField()
status = models.CharField(max_length=20, choices=STATUS_CHOICES, default='DRAFT')
def __str__(self):
return f"Invoice {self.invoice_number} for {self.project.name}"

View File

@ -2,24 +2,126 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{% block title %}Knowledge Base{% endblock %}</title>
{% if project_description %}
<meta name="description" content="{{ project_description }}">
<meta property="og:description" content="{{ project_description }}">
<meta property="twitter:description" content="{{ project_description }}">
{% endif %}
{% if project_image_url %}
<meta property="og:image" content="{{ project_image_url }}">
<meta property="twitter:image" content="{{ project_image_url }}">
{% endif %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}Veracity Real Estate Solutions{% endblock %}</title>
<meta name="description" content="A comprehensive Canadian real estate appraisal management SaaS platform.">
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@600;700&display=swap" rel="stylesheet">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<!-- Custom CSS -->
{% load static %}
<link rel="stylesheet" href="{% static 'css/custom.css' %}?v={{ deployment_timestamp }}">
<link rel="stylesheet" href="{% static 'css/custom.css' %}">
{% block head %}{% endblock %}
</head>
<body>
{% block content %}{% endblock %}
<body style="display: flex; min-height: 100vh; flex-direction: column;">
<div class="sidebar bg-light border-end" style="width: 280px; position: fixed; top: 0; left: 0; height: 100vh;">
<div class="p-3">
<a class="navbar-brand" href="{% url 'core:index' %}" style="color: #0A2342; font-weight: 600; font-family: 'Poppins', sans-serif;">Veracity</a>
<ul class="nav flex-column mt-4">
<li class="nav-item">
<a class="nav-link" href="#">
Dashboard
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
Open Appraisals
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
Pending Orders
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
In Review
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
Upcoming Deadlines
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'core:property_list' %}">
Properties
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'core:appraisal_list' %}">
Appraisals
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'core:user_list' %}">
Users
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'core:project_list' %}">
Projects
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'core:invoice_list' %}">
Invoices
</a>
</li>
</ul>
</div>
</div>
<div class="main-content" style="margin-left: 280px; flex-grow: 1; display: flex; flex-direction: column;">
<header class="navbar navbar-expand-lg navbar-light bg-white border-bottom">
<div class="container-fluid">
<span class="navbar-brand">Organization Logo</span>
<ul class="navbar-nav ms-auto d-flex flex-row">
<li class="nav-item me-3">
<a class="nav-link" href="#">Notifications</a>
</li>
<li class="nav-item me-3">
<a class="nav-link" href="#">Messages</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Profile</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'logout' %}">Logout</a>
</li>
</ul>
</div>
</header>
<main class="flex-grow-1 p-4">
{% block content %}
{% endblock %}
</main>
<footer class="py-3 mt-auto bg-light border-top">
<div class="container-fluid text-center">
<small class="text-muted">
&copy; {% now "Y" %} Veracity Real Estate Solutions. All Rights Reserved.
</small>
</div>
</footer>
</div>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
</body>
</html>
</html>

View File

@ -0,0 +1,8 @@
{% extends 'base.html' %}
{% block content %}
<div class="container">
<h1>Admin Dashboard</h1>
<p>Welcome, {{ user.username }}!</p>
</div>
{% endblock %}

View File

@ -0,0 +1,79 @@
{% extends "base.html" %}
{% block content %}
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h3 class="card-title">Appraisals</h3>
</div>
<div class="card-body">
<div class="row mb-3">
<div class="col-md-12">
<form method="get">
<div class="row">
<div class="col-md-3">
<input type="text" name="q" class="form-control" placeholder="Search..." value="{{ request.GET.q }}">
</div>
<div class="col-md-2">
<select name="property_type" class="form-control">
<option value="">Property Type</option>
{% for pt in property_types %}
<option value="{{ pt.0 }}" {% if request.GET.property_type == pt.0 %}selected{% endif %}>{{ pt.1 }}</option>
{% endfor %}
</select>
</div>
<div class="col-md-2">
<select name="appraiser" class="form-control">
<option value="">Appraiser</option>
{% for appraiser in appraisers %}
<option value="{{ appraiser.id }}" {% if request.GET.appraiser == appraiser.id|stringformat:"s" %}selected{% endif %}>{{ appraiser.username }}</option>
{% endfor %}
</select>
</div>
<div class="col-md-2">
<input type="date" name="start_date" class="form-control" value="{{ request.GET.start_date }}">
</div>
<div class="col-md-2">
<input type="date" name="end_date" class="form-control" value="{{ request.GET.end_date }}">
</div>
<div class="col-md-1">
<button type="submit" class="btn btn-primary">Filter</button>
</div>
<div class="col-md-2 text-right">
<a href="#" class="btn btn-success">Add New Appraisal</a>
</div>
</div>
</form>
</div>
</div>
<table class="table table-bordered">
<thead>
<tr>
<th>Property</th>
<th>Appraiser</th>
<th>Appraisal Date</th>
<th>Appraised Value</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for appraisal in appraisals %}
<tr>
<td>{{ appraisal.property.name }}</td>
<td>{{ appraisal.appraiser.username }}</td>
<td>{{ appraisal.appraisal_date }}</td>
<td>{{ appraisal.appraised_value }}</td>
<td>
<a href="#" class="btn btn-sm btn-primary">View</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -0,0 +1,46 @@
{% extends 'base.html' %}
{% load static %}
{% block title %}Client Dashboard - Veracity Real Estate{% endblock %}
{% block content %}
<div class="container-fluid mt-4">
<div class="d-flex justify-content-between align-items-center mb-4">
<h2 style="color: #0A2342;">My Appraisal Orders</h2>
<a href="{% url 'order_form' %}" class="btn btn-primary" style="background-color: #3498DB; border-color: #3498DB;">Request New Appraisal</a>
</div>
<div class="card shadow-sm">
<div class="card-body">
<div class="table-responsive">
<table class="table table-hover align-middle">
<thead class="table-light">
<tr>
<th scope="col">Order ID</th>
<th scope="col">Property Address</th>
<th scope="col">Status</th>
<th scope="col">Date Submitted</th>
</tr>
</thead>
<tbody>
{% for order in orders %}
<tr>
<td>{{ order.id }}</td>
<td>{{ order.property_address }}</td>
<td><span class="badge bg-secondary">{{ order.status }}</span></td>
<td>{{ order.created_at|date:"Y-m-d H:i" }}</td>
</tr>
{% empty %}
<tr>
<td colspan="4" class="text-center py-5">
<p class="text-muted">You have not submitted any orders yet.</p>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -1,145 +1,41 @@
{% extends "base.html" %}
{% block title %}{{ project_name }}{% endblock %}
{% block head %}
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap" rel="stylesheet">
<style>
:root {
--bg-color-start: #6a11cb;
--bg-color-end: #2575fc;
--text-color: #ffffff;
--card-bg-color: rgba(255, 255, 255, 0.01);
--card-border-color: rgba(255, 255, 255, 0.1);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: 'Inter', sans-serif;
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
color: var(--text-color);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
text-align: center;
overflow: hidden;
position: relative;
}
body::before {
content: '';
position: absolute;
inset: 0;
background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><path d='M-10 10L110 10M10 -10L10 110' stroke-width='1' stroke='rgba(255,255,255,0.05)'/></svg>");
animation: bg-pan 20s linear infinite;
z-index: -1;
}
@keyframes bg-pan {
0% {
background-position: 0% 0%;
}
100% {
background-position: 100% 100%;
}
}
main {
padding: 2rem;
}
.card {
background: var(--card-bg-color);
border: 1px solid var(--card-border-color);
border-radius: 16px;
padding: 2.5rem 2rem;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}
h1 {
font-size: clamp(2.2rem, 3vw + 1.2rem, 3.2rem);
font-weight: 700;
margin: 0 0 1.2rem;
letter-spacing: -0.02em;
}
p {
margin: 0.5rem 0;
font-size: 1.1rem;
opacity: 0.92;
}
.loader {
margin: 1.5rem auto;
width: 56px;
height: 56px;
border: 4px solid rgba(255, 255, 255, 0.25);
border-top-color: #fff;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.runtime code {
background: rgba(0, 0, 0, 0.25);
padding: 0.15rem 0.45rem;
border-radius: 4px;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
footer {
position: absolute;
bottom: 1rem;
width: 100%;
text-align: center;
font-size: 0.85rem;
opacity: 0.75;
}
</style>
{% endblock %}
{% extends 'login_base.html' %}
{% load static %}
{% block content %}
<main>
<div class="card">
<h1>Analyzing your requirements and generating your app…</h1>
<div class="loader" role="status" aria-live="polite" aria-label="Applying initial changes">
<span class="sr-only">Loading…</span>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header text-center">
<h3 style="color: #0A2342;">Veracity Real Estate Solutions</h3>
<p class="text-muted">Please sign in to continue</p>
</div>
<div class="card-body">
{% if form.errors %}
<div class="alert alert-danger" role="alert">
Your username and password didn't match. Please try again.
</div>
{% endif %}
<form method="post" action="{% url 'login' %}">
{% csrf_token %}
<div class="mb-3">
<label for="id_username" class="form-label">Username</label>
<input type="text" name="username" id="id_username" class="form-control" required>
</div>
<div class="mb-3">
<label for="id_password" class="form-label">Password</label>
<input type="password" name="password" id="id_password" class="form-control" required>
</div>
<div class="d-grid">
<button type="submit" class="btn btn-primary" style="background-color: #0A2342; border-color: #0A2342;">Login</button>
</div>
<div class="text-center mt-3">
<a href="{% url 'password_reset' %}">Forgot password?</a>
</div>
</form>
</div>
</div>
</div>
</div>
<p class="hint">AppWizzy AI is collecting your requirements and applying the first changes.</p>
<p class="hint">This page will refresh automatically as the plan is implemented.</p>
<p class="runtime">
Runtime: Django <code>{{ django_version }}</code> · Python <code>{{ python_version }}</code>
— UTC <code>{{ current_time|date:"Y-m-d H:i:s" }}</code>
</p>
</div>
</main>
<footer>
Page updated: {{ current_time|date:"Y-m-d H:i:s" }} (UTC)
</footer>
</div>
{% endblock %}

View File

@ -0,0 +1,73 @@
{% extends "base.html" %}
{% block content %}
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h3 class="card-title">Invoices</h3>
</div>
<div class="card-body">
<div class="row mb-3">
<div class="col-md-12">
<form method="get">
<div class="row">
<div class="col-md-3">
<input type="text" name="q" class="form-control" placeholder="Search..." value="{{ request.GET.q }}">
</div>
<div class="col-md-2">
<select name="status" class="form-control">
<option value="">Status</option>
{% for status in statuses %}
<option value="{{ status.0 }}" {% if request.GET.status == status.0 %}selected{% endif %}>{{ status.1 }}</option>
{% endfor %}
</select>
</div>
<div class="col-md-2">
<input type="date" name="start_date" class="form-control" placeholder="Start Date" value="{{ request.GET.start_date }}">
</div>
<div class="col-md-2">
<input type="date" name="end_date" class="form-control" placeholder="End Date" value="{{ request.GET.end_date }}">
</div>
<div class="col-md-1">
<button type="submit" class="btn btn-primary">Filter</button>
</div>
<div class="col-md-2 text-right">
<a href="#" class="btn btn-success">Add New Invoice</a>
</div>
</div>
</form>
</div>
</div>
<table class="table table-bordered">
<thead>
<tr>
<th>Invoice Number</th>
<th>Project</th>
<th>Amount</th>
<th>Due Date</th>
<th>Status</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for invoice in invoices %}
<tr>
<td>{{ invoice.invoice_number }}</td>
<td>{{ invoice.project.name }}</td>
<td>{{ invoice.amount }}</td>
<td>{{ invoice.due_date }}</td>
<td>{{ invoice.get_status_display }}</td>
<td>
<a href="#" class="btn btn-sm btn-primary">View</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -0,0 +1,39 @@
{% extends 'base.html' %}
{% block title %}Request an Appraisal - Veracity{% endblock %}
{% block content %}
<div class="container my-5">
<div class="row justify-content-center">
<div class="col-md-8 col-lg-6">
<div class="card border-0 shadow-sm">
<div class="card-body p-5">
<h2 class="card-title text-center text-primary mb-4">New Appraisal Order</h2>
<form method="post">
{% csrf_token %}
<div class="mb-3">
<label for="client_name" class="form-label">Full Name</label>
<input type="text" class="form-control" id="client_name" name="client_name" required>
</div>
<div class="mb-3">
<label for="client_email" class="form-label">Email Address</label>
<input type="email" class="form-control" id="client_email" name="client_email" required>
</div>
<div class="mb-3">
<label for="property_address" class="form-label">Property Address for Appraisal</label>
<textarea class="form-control" id="property_address" name="property_address" rows="3" required></textarea>
</div>
<div class="mb-4">
<label for="description" class="form-label">Additional Information (Optional)</label>
<textarea class="form-control" id="description" name="description" rows="4"></textarea>
</div>
<div class="d-grid">
<button type="submit" class="btn btn-primary btn-lg">Submit Order</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -0,0 +1,18 @@
{% extends 'base.html' %}
{% block title %}Order Submitted - Veracity{% endblock %}
{% block content %}
<div class="container my-5 text-center">
<div class="row justify-content-center">
<div class="col-md-7">
<h1 class="text-primary">Thank You!</h1>
<p class="lead my-3">Your appraisal order has been successfully submitted.</p>
<p>We will review your request shortly and be in touch. You can now safely close this page.</p>
<div class="mt-4">
<a href="{% url 'home' %}" class="btn btn-secondary">Return to Homepage</a>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -0,0 +1,63 @@
{% extends "base.html" %}
{% block content %}
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h3 class="card-title">Projects</h3>
</div>
<div class="card-body">
<div class="row mb-3">
<div class="col-md-12">
<form method="get">
<div class="row">
<div class="col-md-3">
<input type="text" name="q" class="form-control" placeholder="Search..." value="{{ request.GET.q }}">
</div>
<div class="col-md-2">
<input type="date" name="start_date" class="form-control" placeholder="Start Date" value="{{ request.GET.start_date }}">
</div>
<div class="col-md-2">
<input type="date" name="end_date" class="form-control" placeholder="End Date" value="{{ request.GET.end_date }}">
</div>
<div class="col-md-1">
<button type="submit" class="btn btn-primary">Filter</button>
</div>
<div class="col-md-4 text-right">
<a href="#" class="btn btn-success">Add New Project</a>
</div>
</div>
</form>
</div>
</div>
<table class="table table-bordered">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th>Start Date</th>
<th>End Date</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for project in projects %}
<tr>
<td>{{ project.name }}</td>
<td>{{ project.description }}</td>
<td>{{ project.start_date }}</td>
<td>{{ project.end_date }}</td>
<td>
<a href="#" class="btn btn-sm btn-primary">View</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -0,0 +1,77 @@
{% extends "base.html" %}
{% block content %}
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h3 class="card-title">Properties</h3>
</div>
<div class="card-body">
<div class="row mb-3">
<div class="col-md-12">
<form method="get">
<div class="row">
<div class="col-md-3">
<input type="text" name="q" class="form-control" placeholder="Search..." value="{{ request.GET.q }}">
</div>
<div class="col-md-2">
<select name="status" class="form-control">
<option value="">Status</option>
{% for status in statuses %}
<option value="{{ status.0 }}" {% if request.GET.status == status.0 %}selected{% endif %}>{{ status.1 }}</option>
{% endfor %}
</select>
</div>
<div class="col-md-2">
<select name="property_type" class="form-control">
<option value="">Property Type</option>
{% for pt in property_types %}
<option value="{{ pt.0 }}" {% if request.GET.property_type == pt.0 %}selected{% endif %}>{{ pt.1 }}</option>
{% endfor %}
</select>
</div>
<div class="col-md-2">
<input type="date" name="start_date" class="form-control" value="{{ request.GET.start_date }}">
</div>
<div class="col-md-2">
<input type="date" name="end_date" class="form-control" value="{{ request.GET.end_date }}">
</div>
<div class="col-md-1">
<button type="submit" class="btn btn-primary">Filter</button>
</div>
<div class="col-md-2 text-right">
<a href="#" class="btn btn-success">Add New Property</a>
</div>
</div>
</form>
</div>
</div>
<table class="table table-bordered">
<thead>
<tr>
<th>Name</th>
<th>City</th>
<th>Status</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for property in properties %}
<tr>
<td>{{ property.name }}</td>
<td>{{ property.city }}</td>
<td>{{ property.get_status_display }}</td>
<td>
<a href="#" class="btn btn-sm btn-primary">View</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -0,0 +1,63 @@
{% extends "base.html" %}
{% block content %}
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h3 class="card-title">Users</h3>
</div>
<div class="card-body">
<div class="row mb-3">
<div class="col-md-12">
<form method="get">
<div class="row">
<div class="col-md-3">
<input type="text" name="q" class="form-control" placeholder="Search..." value="{{ request.GET.q }}">
</div>
<div class="col-md-2">
<select name="role" class="form-control">
<option value="">Role</option>
{% for role in roles %}
<option value="{{ role.0 }}" {% if request.GET.role == role.0 %}selected{% endif %}>{{ role.1 }}</option>
{% endfor %}
</select>
</div>
<div class="col-md-1">
<button type="submit" class="btn btn-primary">Filter</button>
</div>
<div class="col-md-6 text-right">
<a href="#" class="btn btn-success">Add New User</a>
</div>
</div>
</form>
</div>
</div>
<table class="table table-bordered">
<thead>
<tr>
<th>Username</th>
<th>Email</th>
<th>Role</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td>{{ user.username }}</td>
<td>{{ user.email }}</td>
<td>{{ user.get_role_display }}</td>
<td>
<a href="#" class="btn btn-sm btn-primary">View</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}Veracity Real Estate Solutions{% endblock %}</title>
<meta name="description" content="A comprehensive Canadian real estate appraisal management SaaS platform.">
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@600;700&display=swap" rel="stylesheet">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<!-- Custom CSS -->
{% load static %}
<link rel="stylesheet" href="{% static 'css/custom.css' %}">
{% block head %}{% endblock %}
</head>
<body class="bg-light login-page d-flex align-items-center vh-100">
<main class="w-100">
{% block content %}
{% endblock %}
</main>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
</body>
</html>

View File

@ -0,0 +1,41 @@
{% extends 'login_base.html' %}
{% load static %}
{% block content %}
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header text-center">
<h3 style="color: #0A2342;">Veracity Real Estate Solutions</h3>
<p class="text-muted">Please sign in to continue</p>
</div>
<div class="card-body">
{% if form.errors %}
<div class="alert alert-danger" role="alert">
Your username and password didn't match. Please try again.
</div>
{% endif %}
<form method="post" action="{% url 'login' %}">
{% csrf_token %}
<div class="mb-3">
<label for="id_username" class="form-label">Username</label>
<input type="text" name="username" id="id_username" class="form-control" required>
</div>
<div class="mb-3">
<label for="id_password" class="form-label">Password</label>
<input type="password" name="password" id="id_password" class="form-control" required>
</div>
<div class="d-grid">
<button type="submit" class="btn btn-primary" style="background-color: #0A2342; border-color: #0A2342;">Login</button>
</div>
<div class="text-center mt-3">
<a href="{% url 'password_reset' %}">Forgot password?</a>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -0,0 +1,21 @@
{% extends 'login_base.html' %}
{% block content %}
<div class="container">
<div class="row justify-content-center">
<div class="col-md-6">
<div class="card">
<div class="card-header text-center">
<h3>Password Reset Complete</h3>
</div>
<div class="card-body">
<p>Your password has been set. You may go ahead and log in now.</p>
<div class="d-grid">
<a href="{% url 'login' %}" class="btn btn-primary">Log in</a>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -0,0 +1,29 @@
{% extends 'login_base.html' %}
{% block content %}
<div class="container">
<div class="row justify-content-center">
<div class="col-md-6">
<div class="card">
<div class="card-header text-center">
<h3>Reset Your Password</h3>
</div>
<div class="card-body">
{% if validlink %}
<p>Please enter your new password twice so we can verify you typed it in correctly.</p>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<div class="d-grid">
<button type="submit" class="btn btn-primary">Reset Password</button>
</div>
</form>
{% else %}
<p>The password reset link was invalid, possibly because it has already been used. Please request a new password reset.</p>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -0,0 +1,19 @@
{% extends 'login_base.html' %}
{% block content %}
<div class="container">
<div class="row justify-content-center">
<div class="col-md-6">
<div class="card">
<div class="card-header text-center">
<h3>Check Your Inbox</h3>
</div>
<div class="card-body">
<p>We've emailed you instructions for setting your password. You should receive them shortly.</p>
<p>If you don't receive an email, please make sure you've entered the address you registered with, and check your spam folder.</p>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -0,0 +1,25 @@
{% extends 'login_base.html' %}
{% block content %}
<div class="container">
<div class="row justify-content-center">
<div class="col-md-6">
<div class="card">
<div class="card-header text-center">
<h3>Forgot Your Password?</h3>
</div>
<div class="card-body">
<p>Enter your email address below, and we'll email instructions for setting a new one.</p>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<div class="d-grid">
<button type="submit" class="btn btn-primary">Send Instructions</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@ -1,7 +1,29 @@
from django.urls import path
from django.contrib.auth.views import LoginView, LogoutView
from .views import index, admin_dashboard, health_check, property_list, appraisal_list, user_list, project_list, invoice_list
from .views import home
app_name = 'core'
urlpatterns = [
path("", home, name="home"),
]
# Entrypoint
path("", index, name="index"),
# Health Check
path("health_check/", health_check, name='health_check'),
# Authentication
path("login/", LoginView.as_view(
template_name='registration/login.html',
redirect_authenticated_user=True), name='login'),
path("logout/", LogoutView.as_view(next_page='login'), name='logout'),
# Dashboards
path("admin_dashboard/", admin_dashboard, name='admin_dashboard'),
path("properties/", property_list, name='property_list'),
path("appraisals/", appraisal_list, name='appraisal_list'),
path("users/", user_list, name='user_list'),
path("projects/", project_list, name='project_list'),
path("invoices/", invoice_list, name='invoice_list'),
]

View File

@ -1,25 +1,280 @@
import os
import platform
from django import get_version as django_version
from django.shortcuts import render
from django.utils import timezone
from django.db import models
from django.shortcuts import render, redirect
from django.contrib.auth.decorators import login_required, user_passes_test
from django.http import HttpResponseForbidden
from functools import wraps
from .models import Property, Appraisal, User, Project, Invoice
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()
def group_required(*group_names):
"""Requires user membership in at least one of the groups passed in."""
def in_groups(user):
if user.is_authenticated and (user.is_superuser or bool(user.groups.filter(name__in=group_names))):
return True
return False
return user_passes_test(in_groups, login_url='login')
@login_required
@group_required('Org admin')
def admin_dashboard(request):
"""Displays the admin dashboard."""
return render(request, "core/admin_dashboard.html")
from django.http import HttpResponse
def health_check(request):
return HttpResponse("OK")
def index(request):
if request.user.is_authenticated:
if request.user.groups.filter(name='Org admin').exists():
return redirect('core:admin_dashboard')
# elif request.user.groups.filter(name='Client').exists():
# return redirect('client_dashboard')
else:
# Fallback for users with no assigned group
return redirect('login')
return render(request, "core/index.html")
@login_required
def property_list(request):
properties = Property.objects.all()
statuses = Property.STATUS_CHOICES
property_types = Property.PROPERTY_TYPE_CHOICES
q = request.GET.get('q')
status = request.GET.get('status')
property_type = request.GET.get('property_type')
if q:
properties = properties.filter(
models.Q(name__icontains=q) |
models.Q(address__icontains=q) |
models.Q(city__icontains=q) |
models.Q(state__icontains=q) |
models.Q(zip_code__icontains=q) |
models.Q(description__icontains=q)
)
if status:
properties = properties.filter(status=status)
if property_type:
properties = properties.filter(property_type=property_type)
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", ""),
'properties': properties,
'statuses': statuses,
'property_types': property_types,
}
return render(request, "core/index.html", context)
return render(request, 'core/property_list.html', context)
@login_required
def appraisal_list(request):
appraisals = Appraisal.objects.all()
property_types = Property.PROPERTY_TYPE_CHOICES
appraisers = User.objects.filter(groups__name='Internal')
q = request.GET.get('q')
property_type = request.GET.get('property_type')
appraiser_id = request.GET.get('appraiser')
start_date = request.GET.get('start_date')
end_date = request.GET.get('end_date')
if q:
appraisals = appraisals.filter(
models.Q(property__name__icontains=q) |
models.Q(appraiser__username__icontains=q) |
models.Q(notes__icontains=q)
)
if property_type:
appraisals = appraisals.filter(property__property_type=property_type)
if appraiser_id:
appraisals = appraisals.filter(appraiser__id=appraiser_id)
if start_date:
appraisals = appraisals.filter(appraisal_date__gte=start_date)
if end_date:
appraisals = appraisals.filter(appraisal_date__lte=end_date)
context = {
'appraisals': appraisals,
'property_types': property_types,
'appraisers': appraisers
}
return render(request, 'core/appraisal_list.html', context)
@login_required
def user_list(request):
users = User.objects.all()
roles = User.ROLE_CHOICES
q = request.GET.get('q')
role = request.GET.get('role')
if q:
users = users.filter(
models.Q(username__icontains=q) |
models.Q(first_name__icontains=q) |
models.Q(last_name__icontains=q) |
models.Q(email__icontains=q)
)
if role:
users = users.filter(role=role)
context = {
'users': users,
'roles': roles,
}
return render(request, 'core/user_list.html', context)
@login_required
def project_list(request):
projects = Project.objects.all()
q = request.GET.get('q')
start_date = request.GET.get('start_date')
end_date = request.GET.get('end_date')
if q:
projects = projects.filter(
models.Q(name__icontains=q) | models.Q(description__icontains=q)
)
if start_date:
projects = projects.filter(start_date__gte=start_date)
if end_date:
projects = projects.filter(end_date__lte=end_date)
context = {
'projects': projects,
}
return render(request, 'core/project_list.html', context)
@login_required
def invoice_list(request):
invoices = Invoice.objects.all()
statuses = Invoice.STATUS_CHOICES
q = request.GET.get('q')
status = request.GET.get('status')
start_date = request.GET.get('start_date')
end_date = request.GET.get('end_date')
if q:
invoices = invoices.filter(
models.Q(invoice_number__icontains=q) |
models.Q(project__name__icontains=q)
)
if status:
invoices = invoices.filter(status=status)
if start_date:
invoices = invoices.filter(due_date__gte=start_date)
if end_date:
invoices = invoices.filter(due_date__lte=end_date)
context = {
'invoices': invoices,
'statuses': statuses,
}
return render(request, 'core/invoice_list.html', context)

View File

@ -1,4 +1,105 @@
/* Custom styles for the application */
body {
font-family: system-ui, -apple-system, sans-serif;
/*
Veracity Real Estate Solutions - Custom Stylesheet
*/
/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@600;700&display=swap');
/* --- Variables --- */
:root {
--primary-color: #0A2342;
--secondary-color: #C4A86A;
--accent-color: #3498DB;
--neutral-color: #F4F6F8;
--text-color: #2D3748;
--white: #FFFFFF;
--heading-font: 'Poppins', sans-serif;
--body-font: 'Lato', sans-serif;
}
/* --- Base & Typography --- */
body {
font-family: var(--body-font);
color: var(--text-color);
background-color: var(--white);
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--heading-font);
color: var(--primary-color);
font-weight: 700;
}
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-neutral { background-color: var(--neutral-color) !important; }
/* --- Buttons --- */
.btn-primary {
background-color: var(--primary-color);
border-color: var(--primary-color);
font-weight: 600;
padding: 0.75rem 1.5rem;
transition: all 0.3s ease;
}
.btn-primary:hover {
background-color: #081b33; /* Darken primary */
border-color: #081b33;
}
.btn-secondary {
background-color: var(--secondary-color);
border-color: var(--secondary-color);
color: var(--white);
font-weight: 600;
padding: 0.75rem 1.5rem;
transition: all 0.3s ease;
}
.btn-secondary:hover {
background-color: #b39556; /* Darken secondary */
border-color: #b39556;
color: var(--white);
}
/* --- Forms --- */
.form-control:focus {
border-color: var(--accent-color);
box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}
/* --- Landing Page --- */
.hero-section {
background: linear-gradient(170deg, var(--neutral-color) 0%, var(--white) 100%);
padding: 6rem 0;
}
.hero-section h1 {
font-size: 3.5rem;
}
/* --- Dashboard --- */
.dashboard-table thead {
background-color: var(--primary-color);
color: var(--white);
}
.dashboard-table .badge {
font-size: 0.9em;
padding: 0.5em 0.75em;
}
/* --- Navbar --- */
.navbar-brand {
font-family: var(--heading-font);
font-weight: 700;
font-size: 1.5rem;
color: var(--primary-color) !important;
}

View File

@ -1,21 +1,105 @@
/*
Veracity Real Estate Solutions - Custom Stylesheet
*/
/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@600;700&display=swap');
/* --- Variables --- */
:root {
--bg-color-start: #6a11cb;
--bg-color-end: #2575fc;
--text-color: #ffffff;
--card-bg-color: rgba(255, 255, 255, 0.01);
--card-border-color: rgba(255, 255, 255, 0.1);
--primary-color: #0A2342;
--secondary-color: #C4A86A;
--accent-color: #3498DB;
--neutral-color: #F4F6F8;
--text-color: #2D3748;
--white: #FFFFFF;
--heading-font: 'Poppins', sans-serif;
--body-font: 'Lato', sans-serif;
}
/* --- Base & Typography --- */
body {
margin: 0;
font-family: 'Inter', sans-serif;
background: linear-gradient(45deg, var(--bg-color-start), var(--bg-color-end));
font-family: var(--body-font);
color: var(--text-color);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
text-align: center;
overflow: hidden;
position: relative;
background-color: var(--white);
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--heading-font);
color: var(--primary-color);
font-weight: 700;
}
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-neutral { background-color: var(--neutral-color) !important; }
/* --- Buttons --- */
.btn-primary {
background-color: var(--primary-color);
border-color: var(--primary-color);
font-weight: 600;
padding: 0.75rem 1.5rem;
transition: all 0.3s ease;
}
.btn-primary:hover {
background-color: #081b33; /* Darken primary */
border-color: #081b33;
}
.btn-secondary {
background-color: var(--secondary-color);
border-color: var(--secondary-color);
color: var(--white);
font-weight: 600;
padding: 0.75rem 1.5rem;
transition: all 0.3s ease;
}
.btn-secondary:hover {
background-color: #b39556; /* Darken secondary */
border-color: #b39556;
color: var(--white);
}
/* --- Forms --- */
.form-control:focus {
border-color: var(--accent-color);
box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}
/* --- Landing Page --- */
.hero-section {
background: linear-gradient(170deg, var(--neutral-color) 0%, var(--white) 100%);
padding: 6rem 0;
}
.hero-section h1 {
font-size: 3.5rem;
}
/* --- Dashboard --- */
.dashboard-table thead {
background-color: var(--primary-color);
color: var(--white);
}
.dashboard-table .badge {
font-size: 0.9em;
padding: 0.5em 0.75em;
}
/* --- Navbar --- */
.navbar-brand {
font-family: var(--heading-font);
font-weight: 700;
font-size: 1.5rem;
color: var(--primary-color) !important;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB