initialize project documentation and setup instructions

This commit is contained in:
itsmeabimanyu
2026-03-01 07:03:16 +07:00
parent df7071f519
commit 6fdf9d5b62
146 changed files with 89855 additions and 1 deletions

View File

@@ -0,0 +1,149 @@
{% load static %}
<!-- topbar-right -->
<div class="topbar-right">
<a href="/" class="text-decoration-none">
<div class="d-flex align-items-center gap-2">
<img src="{% static 'images/logo.png' %}" alt="logo-icon">
<div class="d-flex flex-column">
<h5 class="small mb-0 fw-bold text-light text-uppercase" style="font-size: .8rem; opacity: .9;">
{{ brand }}
</h5>
</div>
</div>
</a>
<button id="toggleSidebarRight" class="btn btn-sm toggle-btn">
<i class="ri-arrow-left-s-line chevron"></i>
</button>
</div>
<!-- topbar-main -->
<div class="topbar-main">
<div class="d-flex align-items-center gap-3" style="height: 79px;">
<img class="d-lg-none" src="{% static 'images/logo.png' %}" alt="logo-icon">
<button id="mobileToogle" class="btn btn-topbar d-lg-none d-flex align-items-center justify-content-center">
<i class="ri-menu-2-line"></i>
</button>
<div class="vr d-lg-none"></div>
<h5 class="fw-bold mb-0 text-uppercase fs-6 d-flex align-items-center">
{{ name_apps }}
</h5>
</div>
<div class="d-flex align-items-center gap-3">
<!-- User Profile -->
<button
class="btn btn-link text-secondary text-decoration-none d-flex align-items-center gap-3 p-0"
type="button"
data-bs-toggle="offcanvas"
data-bs-target="#profileOffcanvas"
aria-controls="profileOffcanvas"
>
<img src="{% static 'images/profile.png' %}" alt="Profile Avatar" class="image-profile rounded-circle">
<div class="d-lg-flex align-items-center gap-1 d-none">
<div class="d-flex flex-column align-items-start lh-sm">
<div class="fw-bold" style="font-size: 1rem;">{{ user.first_name }} {% if user.last_name %}{{ user.last_name|slice:":1" }}.{% endif %}</div>
<div class="text-muted small opacity-75">{% if user.is_superuser %}Superuser{% else %}Admin{% endif %}</div>
</div>
<!-- <i class="ti ti-chevron-down align-middle"></i> -->
</div>
</button>
</div>
</div>
<!-- topbar-secondary -->
<div class="topbar-secondary d-flex align-items-center justify-content-between">
<div class="d-flex align-items-center">
<a href="javascript:history.back()" class="btn-back d-none d-lg-block">
<i class="ri-arrow-left-double-line"></i>
</a>
<div class="vr mx-3 d-none d-lg-block"></div>
<h5 class="fw-medium mb-0 fs-6 text-light">{{ menu }}</h5>
</div>
<nav>
<ul class="nav nav-pills d-none d-lg-flex overflow-auto flex-nowrap align-items-center">
{% for menu in context_topbar %}
<li class="nav-item" role="presentation">
<a href="{{ menu.url }}" class="nav-link {% if menu.url == '#' %}disabled active{% endif %}">{{ menu.title }}</a>
</li>
{% endfor %}
{% if additional_button and context_topbar %}<div class="vr me-3 align-self-center bg-light" style="height: 18px; opacity: 0.4;"></div>{% endif %}
{% if additional_button %}
<li class="nav-item">{{ additional_button|safe }}</li>
{% endif %}
</ul>
{% if additional_button and context_topbar %}
<div class="dropdown d-lg-none">
<button class="btn text-light border-0 p-2" type="button" data-bs-toggle="dropdown" aria-expanded="false">
<i class="ri-menu-line fs-5"></i>
</button>
<ul class="dropdown-menu dropdown-menu-end shadow-sm bz-dropdown-menu">
{% for menu in context_topbar %}
<li>
<a class="dropdown-item {% if menu.url == '#' %}disabled active{% endif %}" href="{{ menu.url }}">{{ menu.title }}</a>
</li>
{% endfor %}
{% if additional_button and context_topbar %}<li class="px-2"><hr class="dropdown-divider my-2 opacity-25 border-light"></li>{% endif %}
{% if additional_button %}
<li>
{{ additional_button|safe }}
</li>
{% endif %}
</ul>
</div>
{% endif %}
</nav>
</div>
<!-- Offcanvas Profile Panel -->
<div class="offcanvas offcanvas-end" tabindex="-1" id="profileOffcanvas" aria-labelledby="profileOffcanvasLabel">
<div class="offcanvas-header border-bottom">
<div class="d-flex align-items-center w-100">
<div class="flex-grow-1">
<p class="offcanvas-title mb-0 fw-bold" id="profileOffcanvasLabel">
Your Account
</p>
<div class="fsmall mb-0">Last sign-in: {{ user.last_login|date:"d/m/Y H:i" }}</div>
</div>
<button type="button" class="btn-close btn-close-white small" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
</div>
<div class="offcanvas-body p-0">
<div class="p-4 text-center text-account-dropdown">
<div class="position-relative d-inline-block mx-auto">
<div class="profile-img-container">
<img src="{% static 'images/profile.png' %}" class="img img-thumbnail rounded-circle w-50" alt="Profile Avatar">
</div>
</div>
<div class="fw-bold mt-3 mb-2 opacity-75" style="font-size: 1rem;">{{ user.get_full_name|upper }}</div>
<div class="mt-2">
<div class="small text-muted opacity-75">
<span>{% if user.is_superuser %}Superuser{% else %}Admin{% endif %}</span>
</div>
<div class="small text-muted opacity-75">
{{ user.email }}
</div>
</div>
<div class="mt-3 text-center">
<button type="button" class="btn btn-danger btn-bz-size" onclick="location.href='{% url 'logout' %}'">
<i class="ri-logout-box-r-line"></i> Sign Out
</button>
</div>
</div>
</div>
<!-- Copyright -->
<div class="offcanvas-footer p-3 bg-light"> <div class="text-center text-muted small" style="font-size: 0.75rem;">
<div class="fw-semibold text-dark mb-1">
{{ brand_copyright|safe }}
</div>
<div class="mb-1">
{{ repository|safe }}
</div>
<div class="d-inline-flex align-items-center justify-content-center">
Built with
<img src="{% static 'images/skoci.ico' %}" alt="Icon" width="14" height="14" class="mx-1">
<span class="fw-semibold text-dark">Skoci Admin</span>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,133 @@
<!--
* © 2025-2026 Skoci Admin
* Designed and Developed by Abimanyu
* Contact : abimanyuag12@gmail.com
* All Rights Reserved
-->
{% load static %}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>{{ alt_name_apps }} | {{ menu|title }}</title>
<link rel="icon" type="image/x-icon" href="{% static 'images/favicon.ico' %}">
<!-- CSS: Framework -->
<link rel="stylesheet" href="{% static 'vendor/bootstrap/bootstrap.min.css' %}">
<!-- CSS: Icons -->
<link rel="stylesheet" href="{% static 'vendor/remixicon/remixicon.css' %}">
<!-- CSS: Custom -->
<link href="{% static 'css/style.css' %}" rel="stylesheet">
{% block style %}<style>html, body { margin: 0; padding: 0; height: 100%; }</style>{% endblock style %}
</head>
<body>
<div id="bz-preloader">
<div class="bz-spinner"></div>
</div>
<div class="split-login-container p-4">
<div class="card shadow-lg border-0 login-card-container">
<div class="row g-0 h-100" style="min-height: 550px;">
<div class="col-md-6 login-logo-section text-center d-none d-md-flex flex-column justify-content-center align-items-center">
<div class="p-4 w-100">
<img src="{% static 'images/logo-1.png' %}" class="img-fluid mb-4 w-50" alt="Logo">
<h5 class="fw-bold mb-1 text-uppercase text-white">{{ name_apps }}</h5>
<div class="small text-white-50 mb-4">
<span>{{ version }}</span>
</div>
<div class="text-center mt-5">
<div class="small opacity-50 text-white text-uppercase" style="font-size: .6875rem;">
{{ brand_copyright|safe }}
</div>
</div>
</div>
</div>
<div class="col-md-6 login-form-section d-flex align-items-center justify-content-center">
<div class="card-body p-4 p-md-5 w-100 position-relative" style="max-width: 450px;">
<div class="login-brand-wrapper d-md-none">
<div class="login-brand-circle">
<img src="{% static 'images/logo-1.png' %}" class="w-75" alt="Logo Icon">
</div>
<h5 class="fw-bolder mt-2 mb-0 text-uppercase text-dark">{{ name_apps }}</h5>
<div class="small opacity-50 mb-3">
<span>{{ version }}</span>
</div>
</div>
<h4 class="mb-1 fw-bold text-dark mt-md-0 mt-3 text-center text-md-start">{{ menu }}</h4>
<p class="text-muted mb-4 small text-center text-md-start">{% if menu == 'Sign In' %}Access your account{% else %}Join us{% endif %} to continue.</p>
{% if messages %}
{% for message in messages %}
<div class="alert bz-alert bz-alert-{% if message.tags == 'error' %}danger{% else %}{{ message.tags }}{% endif %} alert-dismissible fade show mb-3" role="alert">
<div class="alert-content">
<h5 class="fw-bold"><i class="ri-information-fill"></i> {{ message.tags|title }}</h5>
<p class="mb-0">{{ message|safe }}</p>
</div>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
{% endfor %}
{% endif %}
<form method="POST" autocomplete="off">
{% csrf_token %}
<!-- Hidden input untuk redirect setelah login -->
<input type="hidden" name="next" value="{{ request.GET.next }}">
{% for field in form %}
<div class="mb-3 text-start"> <label for="{{ field.id_for_label }}" class="form-label fw-semibold small">{{ field.label }}</label>
{% if field.name == "password" %}
<div class="input-group">
{{ field }}
<button class="btn btn-secondary" type="button" id="togglePassword">
<i class="ri-eye-off-line"></i>
</button>
</div>
{% else %}
{{ field }}
{% endif %}
{% if field.errors %}
<div class="text-danger small mt-1">{{ field.errors }}</div>
{% endif %}
</div>
{% endfor %}
<div class="d-grid mt-4">
<button type="submit" class="btn bz-btn-primary shadow-sm py-2">
{{ icon }} {{ menu }}
</button>
</div>
</form>
<div class="d-md-none text-center mt-5">
<hr class="text-muted opacity-25">
<div class="small opacity-50 text-uppercase" style="font-size: .75rem;">
{{ brand_copyright|safe }}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- jQuery -->
<script src="{% static 'vendor/jquery/jquery.min.js' %}"></script>
<!-- Bootstrap -->
<script src="{% static 'vendor/bootstrap/js/bootstrap.bundle.min.js' %}"></script>
<!-- Custom -->
<script src="{% static 'js/main.js' %}"></script>
{% block script %}
<script>
const togglePassword = document.querySelector('#togglePassword');
const password = document.querySelector('input[name="password"]');
if (togglePassword) {
togglePassword.addEventListener('click', function (e) {
const type = password.getAttribute('type') === 'password' ? 'text' : 'password';
password.setAttribute('type', type);
this.querySelector('i').classList.toggle('ri-eye-line');
this.querySelector('i').classList.toggle('ri-eye-off-line');
});
}
</script>
{% endblock script %}
</body>
</html>

View File

@@ -0,0 +1,26 @@
<!-- sidebar-right -->
<div class="sidebar-right">
<ul class="nav flex-column">
<li class="sidebar-title">
<span>Overview</span>
</li>
<li class="nav-item">
<a href="{% if '/dashboard/' in request.path %}#{% else %}{% url 'dashboard' %}{% endif %}"
class="nav-link {% if '/dashboard/' in request.path %}active{% endif %}" data-tooltip="Dashboard">
<i class="ri-apps-fill"></i>
<span class="text-wrapper">
<span class="text-inner">Dashboard</span>
</span>
</a>
</li>
<li class="nav-item">
<a href="{% if '/form/' in request.path %}#{% else %}{% url 'form' %}{% endif %}"
class="nav-link {% if '/form/' in request.path %}active{% endif %}" data-tooltip="Form">
<i class="ri-apps-fill"></i>
<span class="text-wrapper">
<span class="text-inner">Form</span>
</span>
</a>
</li>
</ul>
</div>