event.stopPropagation()}>
@@ -280,7 +280,7 @@ export default function Page() {
{ header: "Nume cladire", key: "name", render: (item) =>
},
{
- header: "Facultati",
+ header: "Facultăți",
key: "faculties",
render: (item) => (
@@ -291,7 +291,7 @@ export default function Page() {
),
},
{
- header: "Actiuni",
+ header: "Acțiuni",
key: "actions",
render: (item) => (
event.stopPropagation()}>
@@ -313,10 +313,10 @@ export default function Page() {
-
-
+
+
-
+
{errorMessage && (
@@ -339,8 +339,8 @@ export default function Page() {
diff --git a/Frontend/Dashboard/dashboard-insideugal/app/harti/page.tsx b/Frontend/Dashboard/dashboard-insideugal/app/harti/page.tsx
index 55eb3dea..e4b20543 100644
--- a/Frontend/Dashboard/dashboard-insideugal/app/harti/page.tsx
+++ b/Frontend/Dashboard/dashboard-insideugal/app/harti/page.tsx
@@ -94,10 +94,6 @@ function CladireForm({
setFormState({ ...formState, name: event.target.value })} className="w-full p-2 rounded-lg border border-border bg-background text-sm" />
-
-
- setFormState({ ...formState, faculty_ids: event.target.value })} placeholder="Ex: 1, 4, 10" className="w-full p-2 rounded-lg border border-border bg-background text-sm" />
-
@@ -114,8 +110,8 @@ function CladireForm({
-
-
+
+
);
@@ -254,7 +250,7 @@ export default function HartiPage() {
const columns: Column
[] = [
{
- header: "Cladire",
+ header: "Clădire",
key: "name",
render: (item) => (
@@ -275,12 +271,12 @@ export default function HartiPage() {
),
},
{
- header: "Actiuni",
+ header: "Acțiuni",
key: "id",
render: (item) => (
-
+
),
},
@@ -292,23 +288,11 @@ export default function HartiPage() {
-
-
-
- {tab === "harta" && (
-
- )}
-
+
+
+
+
+
{errorMessage && (
@@ -335,11 +319,11 @@ export default function HartiPage() {
)}
- setShowAddModal(false)} title="Adauga cladire" className="max-w-lg">
+ setShowAddModal(false)} title="Adaugă Clădire" className="max-w-lg">
void handleAdd()} onCancel={() => setShowAddModal(false)} />
- setShowEditModal(false)} title="Editare cladire" className="max-w-lg">
+ setShowEditModal(false)} title="Editare Clădire" className="max-w-lg">
void handleEditSave()} onCancel={() => setShowEditModal(false)} />
diff --git a/Frontend/Dashboard/dashboard-insideugal/app/page.tsx b/Frontend/Dashboard/dashboard-insideugal/app/page.tsx
index b6a49646..21c33a34 100644
--- a/Frontend/Dashboard/dashboard-insideugal/app/page.tsx
+++ b/Frontend/Dashboard/dashboard-insideugal/app/page.tsx
@@ -139,7 +139,7 @@ export default function Page() {
onClick={() => router.push("/noutati")}
>
- Anunțuri Noi
+ Număr Noutăți
@@ -149,7 +149,7 @@ export default function Page() {
stats.anunturi
)}
- Noutăți și anunțuri publicate
+ Noutăți publicate
diff --git a/Frontend/Dashboard/dashboard-insideugal/app/sesizari/page.tsx b/Frontend/Dashboard/dashboard-insideugal/app/sesizari/page.tsx
index ca0d910f..3d4cba54 100644
--- a/Frontend/Dashboard/dashboard-insideugal/app/sesizari/page.tsx
+++ b/Frontend/Dashboard/dashboard-insideugal/app/sesizari/page.tsx
@@ -8,7 +8,7 @@ import { apiBaseUrl, getAuthHeaders } from "@/lib/api-client";
import { canAccessComplaints, useRequireDashboardAccess } from "@/lib/dashboard-auth";
type ComplaintStatus = "in_asteptare" | "in_lucru" | "finalizat" | "respins" | "solutionat";
-type TicketStatus = "In asteptare" | "In lucru" | "Respins" | "Inchis";
+type TicketStatus = "În așteptare" | "În lucru" | "Respins" | "Închis";
type TicketTab = "all" | "active" | "closed";
type PaginatedResponse
= {
@@ -69,11 +69,11 @@ const emptyForm: TicketFormState = {
};
const statusOptions: Array<{ value: ComplaintStatus; label: TicketStatus }> = [
- { value: "in_asteptare", label: "In asteptare" },
- { value: "in_lucru", label: "In lucru" },
+ { value: "in_asteptare", label: "În așteptare" },
+ { value: "in_lucru", label: "În lucru" },
{ value: "respins", label: "Respins" },
- { value: "finalizat", label: "Inchis" },
- { value: "solutionat", label: "Inchis" },
+ { value: "finalizat", label: "Închis" },
+ { value: "solutionat", label: "Închis" },
];
function itemsFromResponse(payload: PaginatedResponse | T[]): T[] {
@@ -81,21 +81,21 @@ function itemsFromResponse(payload: PaginatedResponse | T[]): T[] {
}
function statusToLabel(status: ComplaintStatus): TicketStatus {
- if (status === "in_lucru") return "In lucru";
+ if (status === "in_lucru") return "În lucru";
if (status === "respins") return "Respins";
- if (status === "finalizat" || status === "solutionat") return "Inchis";
- return "In asteptare";
+ if (status === "finalizat" || status === "solutionat") return "Închis";
+ return "În așteptare";
}
function getStatusClass(status: TicketStatus) {
switch (status) {
- case "In asteptare":
+ case "În așteptare":
return "bg-amber-50 text-amber-700 border-amber-100";
- case "In lucru":
+ case "În lucru":
return "bg-blue-50 text-blue-700 border-blue-100";
case "Respins":
return "bg-red-50 text-red-700 border-red-100";
- case "Inchis":
+ case "Închis":
return "bg-background text-muted border-border";
}
}
@@ -188,9 +188,9 @@ export default function SesizariPage() {
const filteredTickets = useMemo(() => {
switch (activeTab) {
case "active":
- return tickets.filter((t) => t.status === "In asteptare" || t.status === "In lucru");
+ return tickets.filter((t) => t.status === "În așteptare" || t.status === "În lucru");
case "closed":
- return tickets.filter((t) => t.status === "Inchis" || t.status === "Respins");
+ return tickets.filter((t) => t.status === "Închis" || t.status === "Respins");
default:
return tickets;
}
@@ -295,7 +295,7 @@ export default function SesizariPage() {
header: "Titlu",
key: "title",
render: (item) => {
- const isClosed = item.status === "Inchis" || item.status === "Respins";
+ const isClosed = item.status === "Închis" || item.status === "Respins";
return (
{item.title}
@@ -305,7 +305,7 @@ export default function SesizariPage() {
},
},
{
- header: "Locatie Cladire",
+ header: "Locație Clădire",
key: "building",
render: (item) =>
{item.building},
},
@@ -329,7 +329,7 @@ export default function SesizariPage() {
),
},
{
- header: "Actiuni",
+ header: "Acțiuni",
key: "actions",
render: (item) => (
e.stopPropagation()}>
@@ -337,7 +337,7 @@ export default function SesizariPage() {
Editare
),
@@ -361,7 +361,7 @@ export default function SesizariPage() {
>
{tab === "all" && "Toate"}
{tab === "active" && "Active"}
- {tab === "closed" && "Inchise"}
+ {tab === "closed" && "Închise"}
))}
@@ -371,7 +371,7 @@ export default function SesizariPage() {
onClick={handleOpenAddModal}
className="bg-brand text-white px-5 py-2.5 rounded-xl text-sm font-bold cursor-pointer hover:opacity-90 transition-all shadow-md self-end md:self-auto"
>
- Adauga Sesizare
+ Adaugă Sesizare