Skip to content

Commit

Permalink
updated db.sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
NexusGKSoftwares committed Dec 9, 2024
1 parent 0413675 commit 542b6a4
Show file tree
Hide file tree
Showing 15 changed files with 78 additions and 57 deletions.
2 changes: 1 addition & 1 deletion admin_panel/templates/admin_panel/add_job.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h2 class="text-center">Add Job</h2>
<textarea class="form-control" id="description" name="description" rows="5" required></textarea>
</div>
<div class="mb-3">
<label for="budget" class="form-label">Budget ($)</label>
<label for="budget" class="form-label">Budget (Kshs)</label>
<input type="number" class="form-control" id="budget" name="budget" min="1" required>
</div>
<div class="mb-3">
Expand Down
2 changes: 1 addition & 1 deletion admin_panel/templates/admin_panel/admin_manage_users.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="card shadow-sm">
<div class="card-header bg-primary text-white d-flex justify-content-between align-items-center">
<h4>
<i class="bi bi-people-fill me-2"></i> User Management
<i class="bi bi-people-fill text-white me-2"></i> User Management
</h4>
<a href="{% url 'add_user' %}" class="btn btn-light btn-sm">
<i class="bi bi-plus-circle me-2"></i>Add New User
Expand Down
29 changes: 15 additions & 14 deletions admin_panel/templates/admin_panel/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

{% block content %}
<style>

.card {
background: linear-gradient(to bottom right, #f0f4c3, #3256ce); /* Default gradient */
border: none;
Expand All @@ -19,12 +20,12 @@
}

.gradient-manage-users {
background: linear-gradient(to bottom right, #2196f3, #64b5f6);
background: linear-gradient(to bottom right, #008afc, #2700b3);
color: #fff;
}

.gradient-job-postings {
background: linear-gradient(to bottom right, #4caf50, #81c784);
background: linear-gradient(to bottom right, #24eb2b, #5c8f5f);
color: #fff;
}

Expand Down Expand Up @@ -74,7 +75,7 @@ <h4 class="mb-0">Welcome, Admin!</h4>
<div class="card-body">
<i class="fas fa-users fa-3x"></i>
<h5 class="card-title mt-3">Manage Users</h5>
<p class="card-text">View and manage all platform users.</p>
<p class="card-text" style="color: white;" style="color: white;">View and manage all platform users.</p>
<a href="{% url 'admin_manage_users' %}" class="btn btn-outline-light">View Users</a>
</div>
</div>
Expand All @@ -85,7 +86,7 @@ <h5 class="card-title mt-3">Manage Users</h5>
<div class="card-body">
<i class="fas fa-clipboard-list fa-3x"></i>
<h5 class="card-title mt-3">Job Postings Overview</h5>
<p class="card-text">Monitor all job postings and their statuses.</p>
<p class="card-text" style="color: white;">Monitor all job postings and their statuses.</p>
<a href="{% url 'job_postings' %}" class="btn btn-outline-light">View Jobs</a>
</div>
</div>
Expand All @@ -97,7 +98,7 @@ <h5 class="card-title mt-3">Job Postings Overview</h5>
<div class="card-body">
<i class="fas fa-dollar-sign fa-3x"></i>
<h5 class="card-title mt-3">Payment Management</h5>
<p class="card-text">Manage and review all platform payments.</p>
<p class="card-text" style="color: white;">Manage and review all platform payments.</p>
<a href="{% url 'admin_payments' %}" class="btn btn-outline-light">Manage Payments</a>
</div>
</div>
Expand All @@ -109,7 +110,7 @@ <h5 class="card-title mt-3">Payment Management</h5>
<div class="card-body">
<i class="fas fa-cogs fa-3x"></i>
<h5 class="card-title mt-3">System Activity</h5>
<p class="card-text">Monitor system performance and user activities.</p>
<p class="card-text" style="color: white;">Monitor system performance and user activities.</p>
<a href="{% url 'admin_system_activity' %}" class="btn btn-outline-light">View Activity</a>
</div>
</div>
Expand All @@ -123,7 +124,7 @@ <h5 class="card-title mt-3">System Activity</h5>
<div class="card-body">
<i class="fas fa-chart-line fa-3x"></i>
<h5 class="card-title mt-3">Analytics</h5>
<p class="card-text">View platform performance, traffic, and growth metrics.</p>
<p class="card-text" style="color: white;">View platform performance, traffic, and growth metrics.</p>
<a href="{% url 'admin_analytics' %}" class="btn btn-outline-light">View Analytics</a>
</div>
</div>
Expand All @@ -135,7 +136,7 @@ <h5 class="card-title mt-3">Analytics</h5>
<div class="card-body">
<i class="fas fa-bell fa-3x"></i>
<h5 class="card-title mt-3">Notifications</h5>
<p class="card-text">Manage and view system notifications for admin actions.</p>
<p class="card-text" style="color: white;">Manage and view system notifications for admin actions.</p>
<a href="{% url 'admin_notifications' %}" class="btn btn-outline-light">Manage Notifications</a>
</div>
</div>
Expand All @@ -147,7 +148,7 @@ <h5 class="card-title mt-3">Notifications</h5>
<div class="card-body">
<i class="fas fa-headset fa-3x"></i>
<h5 class="card-title mt-3">Support Tickets</h5>
<p class="card-text">Manage support tickets submitted by users or freelancers.</p>
<p class="card-text" style="color: white;">Manage support tickets submitted by users or freelancers.</p>
<a href="{% url 'admin_support_tickets' %}" class="btn btn-outline-light">View Tickets</a>
</div>
</div>
Expand All @@ -159,7 +160,7 @@ <h5 class="card-title mt-3">Support Tickets</h5>
<div class="card-body">
<i class="fas fa-comments fa-3x"></i>
<h5 class="card-title mt-3">User Feedback</h5>
<p class="card-text">View and manage user feedback and reviews.</p>
<p class="card-text" style="color: white;">View and manage user feedback and reviews.</p>
<a href="{% url 'admin_user_feedback' %}" class="btn btn-outline-dark">View Feedback</a>
</div>
</div>
Expand All @@ -174,7 +175,7 @@ <h5 class="card-title mt-3">User Feedback</h5>
<div class="card-body">
<i class="fas fa-user-tie fa-3x"></i>
<h5 class="card-title mt-3">Manage Freelancers</h5>
<p class="card-text">Monitor and manage freelancer profiles and activities.</p>
<p class="card-text" style="color: white;">Monitor and manage freelancer profiles and activities.</p>
<a href="{% url 'admin_manage_freelancers' %}" class="btn btn-outline-light">View Freelancers</a>
</div>
</div>
Expand All @@ -186,7 +187,7 @@ <h5 class="card-title mt-3">Manage Freelancers</h5>
<div class="card-body">
<i class="fas fa-users-cog fa-3x"></i>
<h5 class="card-title mt-3">Manage Clients</h5>
<p class="card-text">View and manage client accounts and their projects.</p>
<p class="card-text" style="color: white;">View and manage client accounts and their projects.</p>
<a href="{% url 'admin_manage_clients' %}" class="btn btn-outline-light">View Clients</a>
</div>
</div>
Expand All @@ -198,7 +199,7 @@ <h5 class="card-title mt-3">Manage Clients</h5>
<div class="card-body">
<i class="fas fa-heartbeat fa-3x"></i>
<h5 class="card-title mt-3">System Health</h5>
<p class="card-text">Check the health and uptime of the system.</p>
<p class="card-text" style="color: white;">Check the health and uptime of the system.</p>
<a href="{% url 'admin_system_health' %}" class="btn btn-outline-light">View Health</a>
</div>
</div>
Expand All @@ -210,7 +211,7 @@ <h5 class="card-title mt-3">System Health</h5>
<div class="card-body">
<i class="fas fa-user-plus fa-3x"></i>
<h5 class="card-title mt-3">New Registrations</h5>
<p class="card-text">View and manage new freelancer and client registrations.</p>
<p class="card-text" style="color: white;">View and manage new freelancer and client registrations.</p>
<a href="{% url 'admin_new_registrations' %}" class="btn btn-outline-light">View Registrations</a>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion admin_panel/templates/admin_panel/delete_job.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h2 class="text-center">Delete Job</h2>
<form method="post">
{% csrf_token %}
<button type="submit" class="btn btn-danger">Yes, Delete</button>
<a href="{% url 'admin_job_postings' %}" class="btn btn-secondary">Cancel</a>
<a href="{% url 'job_postings' %}" class="btn btn-secondary">Cancel</a>
</form>
</div>
{% endblock %}
2 changes: 1 addition & 1 deletion admin_panel/templates/admin_panel/edit_job.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h2 class="text-center">Edit Job</h2>
<textarea class="form-control" id="description" name="description" rows="5" required>{{ job.description }}</textarea>
</div>
<div class="mb-3">
<label for="budget" class="form-label">Budget ($)</label>
<label for="budget" class="form-label">Budget (Kshs)</label>
<input type="number" class="form-control" id="budget" name="budget" value="{{ job.budget }}" min="1" required>
</div>
<div class="mb-3">
Expand Down
30 changes: 11 additions & 19 deletions admin_panel/templates/admin_panel/navbar.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
<!-- Add Font Awesome and Animate.css link -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">

<nav class="navbar navbar-expand-lg bg-primary">
<style>
.navbar {
background: #030250;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
</style>
<nav class="navbar navbar-expand-lg ">
<div class="container-fluid" data-collapse="medium" data-animation="default" data-duration="400" class="navbar w-nav">
<!-- Brand and toggle for mobile -->
<a class="navbar-brand text-light" href="#">
<i class="fas fa-cogs"></i> Admin Panel
<a class="navbar-brand text-white fw-bold" href="{% url 'freelancer_dashboard' %}">
<img src="http://uploads.webflow.com/5862ff0a48ddaea33e96e0ef/587523cda9cb9b0448b0f616_Logo.png" width="50" />
Freelancer Admin Panel
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
Expand Down Expand Up @@ -73,22 +79,8 @@
</li>
</ul>

<!-- Dark Mode Toggle -->
<div class="form-check form-switch text-light ms-2">
<input class="form-check-input" type="checkbox" id="darkModeToggle">
<label class="form-check-label" for="darkModeToggle">Dark Mode</label>
</div>
</div>
</div>
</nav>

<!-- Optional Dark Mode Script -->
<script>
const darkModeToggle = document.getElementById('darkModeToggle');
darkModeToggle.addEventListener('change', () => {
document.body.classList.toggle('bg-dark', darkModeToggle.checked);
document.body.classList.toggle('text-light', darkModeToggle.checked);
const navbar = document.querySelector('.navbar');
navbar.classList.toggle('bg-dark', darkModeToggle.checked);
});
</script>

6 changes: 3 additions & 3 deletions admin_panel/templates/admin_panel/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<!-- Normal Sidebar for Large Screens -->
<nav id="sidebarMenu" class=" sidebar" style="background: linear-gradient(45deg, #1e3c72, #1f63d8); height:100%; color: white;">
<nav id="sidebarMenu" class=" sidebar" style="background: #030250; height:100%; color: white;">
<div class="position-sticky pt-3">
<ul class="nav flex-column">
<!-- Dashboard -->
<li class="nav-item">
<a class="nav-link active" href="/admin_panel/dashboard/" style="color: white;">
<i class="fa fa-tachometer" style="color: white;"></i>
<span class="menu-text">Dashboard</span>
<span class="menu-text" >Dashboard</span>
</a>
</li>

<!-- User Management -->
<li class="nav-item">
<a class="nav-link" href="/admin_panel/manage_users/" style="color: white;">
<i class="fa fa-users" style="color: white;"></i>
<i class="fa fa-users" style="color: #f3f3f3;"></i>
<span class="menu-text">User Management</span>
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion admin_panel/templates/admin_panel/view_job.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h2 class="text-center">View Job</h2>
<h3>{{ job.title }}</h3>
<p><strong>Category:</strong> {{ job.category }}</p>
<p><strong>Description:</strong> {{ job.description }}</p>
<p><strong>Budget:</strong> ${{ job.budget }}</p>
<p><strong>Budget:</strong> Kshs .{{ job.budget }}</p>
<p><strong>Status:</strong> {{ job.status }}</p>
<p><strong>Created At:</strong> {{ job.created_at|date:"d M Y" }}</p>
<a href="{% url 'admin_edit_job' job.id %}" class="btn btn-warning">Edit</a>
Expand Down
2 changes: 1 addition & 1 deletion admin_panel/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<body>

{% include 'admin_panel/navbar.html' %}
<div class="container-fluid">
<div class="container-fluid" style="background: #01048d; height: 100%;">
<div class="row">
<div class="col-md-2">
{% include 'admin_panel/sidebar.html' %}
Expand Down
Binary file modified db.sqlite3
Binary file not shown.
Binary file modified freelancer/__pycache__/views.cpython-312.pyc
Binary file not shown.
4 changes: 3 additions & 1 deletion freelancer/templates/freelancer/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

{% block content %}
<div class="container">
<br>
<br>
<!-- Banner Section -->
<div class="hero-banner" style="background-image: url('https://cdn.pixabay.com/photo/2021/03/02/13/04/laptop-6062423_960_720.jpg'); background-size: cover; background-position: center; padding: 100px 0; text-align: center; color: white; border-radius: 10px;">
<div class="container text-light">
Expand All @@ -14,7 +16,7 @@ <h1 class="display-3 text-white">Welcome Back, {{ user }}!</h1>
</a>
</div>
</div>

<br><br>
<!-- Header Section -->
<div class="row mb-4 ">
<div class="col-12">
Expand Down
27 changes: 27 additions & 0 deletions freelancer/templates/freelancer/freelancer_ongoing_jobs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{% extends 'freelancer/base.html' %}

{% block content %}
<h1>Ongoing Jobs</h1>
<ul>
{% for job in page_obj %}
<li>
<a href="{% url 'freelancer_job_details' job.id %}">{{ job.title }}</a> - {{ job.description|truncatechars:100 }}
<br><strong>Status:</strong> {{ job.status }}
<br><strong>Start Date:</strong> {{ job.start_date }}
</li>
{% empty %}
<li>No ongoing jobs found.</li>
{% endfor %}
</ul>

<!-- Pagination -->
<div class="pagination">
{% if page_obj.has_previous %}
<a href="?page={{ page_obj.previous_page_number }}">Previous</a>
{% endif %}
<span>Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}</span>
{% if page_obj.has_next %}
<a href="?page={{ page_obj.next_page_number }}">Next</a>
{% endif %}
</div>
{% endblock %}
5 changes: 2 additions & 3 deletions freelancer/templates/freelancer/navbar.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<style>
/* Navbar Styling */
.navbar {
background: linear-gradient(90deg, #4e73df, #1cc88a);
background: #030250;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

Expand Down Expand Up @@ -50,8 +50,7 @@
<!-- Brand -->
<a class="navbar-brand text-white fw-bold" href="{% url 'freelancer_dashboard' %}">
<img src="http://uploads.webflow.com/5862ff0a48ddaea33e96e0ef/587523cda9cb9b0448b0f616_Logo.png" width="50" />
<br>
Freelancer Panel
Freelancer Dashboard
</a>
<!-- Toggler -->
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
Expand Down
Loading

0 comments on commit 542b6a4

Please sign in to comment.