# =============================================================
# PIETEIKUMU MODULIS — Uzstādīšanas Instrukcija
# =============================================================


## 1. core/settings.py — pievieno 'pieteikumi'

INSTALLED_APPS = [
    ...
    'mim_auth',
    'projects',
    'invoices',
    'pieteikumi',    # ← PIEVIENO
    'telegram_bot',
]

# Pievieno arī ADMIN_EMAIL (kur sūtīt paziņojumus par jauniem pieteikumiem):
ADMIN_EMAIL = "tavs@epasts.lv"   # ← PIEVIENO


## 2. core/urls.py — pievieno pieteikumi URL

urlpatterns = [
    path('admin/',            admin.site.urls),
    path('api/auth/',         include('mim_auth.urls')),
    path('api/projects/',     include('projects.urls')),
    path('api/invoices/',     include('invoices.urls')),
    path('api/pieteikumi/',   include('pieteikumi.urls')),  # ← PIEVIENO
    path('webhook/',          include('telegram_bot.urls')),
]


## 3. Migrācijas — cPanel "Execute python script"

# manage.py → Arguments: makemigrations pieteikumi
# manage.py → Arguments: migrate


## 4. Frontend faili

# NewRequest.jsx  → src/components/dashboard/NewRequest.jsx
# Dashboard.jsx   → src/pages/Dashboard.jsx  (aizstāj)


## 5. Dashboard.jsx izmaiņas (ja izmanto jau atjaunoto versiju)

# Pievieno importu:
import NewRequest from "../components/dashboard/NewRequest";

# Pievieno NavButton:
<NavButton title="PIETEIKUMI" icon={<FaPaperPlane />} />

# Pievieno FaPaperPlane importu:
import { ..., FaPaperPlane } from "react-icons/fa";

# Pievieno case renderContent() switch:
case "PIETEIKUMI":
    return <NewRequest isAdmin={isAdmin} />;
