style: revert Admin UI to main website dark theme color schema
This commit is contained in:
+11
-17
@@ -17,8 +17,6 @@ const loginForm = document.querySelector("#loginForm");
|
||||
const loginError = document.querySelector("#loginError");
|
||||
const rotateForm = document.querySelector("#rotateForm");
|
||||
const rotateError = document.querySelector("#rotateError");
|
||||
const loginSubmit = document.querySelector("#loginSubmit");
|
||||
const rotateSubmit = document.querySelector("#rotateSubmit");
|
||||
const logoutBtn = document.querySelector("#logoutBtn");
|
||||
const changePwBtn = document.querySelector("#changePwBtn");
|
||||
const adminWho = document.querySelector("#adminWho");
|
||||
@@ -43,10 +41,6 @@ const photoInput = document.querySelector("#photoInput");
|
||||
const photoPreview = document.querySelector("#photoPreview");
|
||||
const tableBody = document.querySelector("#adminTable tbody");
|
||||
|
||||
loginSubmit?.addEventListener("click", () => loginForm.requestSubmit());
|
||||
rotateSubmit?.addEventListener("click", () => rotateForm.requestSubmit());
|
||||
saveBtn?.addEventListener("click", () => vehicleForm.requestSubmit());
|
||||
|
||||
// ----- State -----
|
||||
const state = {
|
||||
user: null,
|
||||
@@ -210,8 +204,8 @@ function renderVehicles() {
|
||||
<td>€ ${v.daily_price_eur}</td>
|
||||
<td>${v.is_active ? "✅" : "—"}</td>
|
||||
<td style="white-space:nowrap;">
|
||||
<fluent-button appearance="outline" data-edit="${v.id}">Edit</fluent-button>
|
||||
<fluent-button appearance="accent" data-del="${v.id}">Del</fluent-button>
|
||||
<button class="btn small ghost" data-edit="${v.id}">Edit</button>
|
||||
<button class="btn small danger" data-del="${v.id}">Del</button>
|
||||
</td>`;
|
||||
tableBody.appendChild(tr);
|
||||
}
|
||||
@@ -358,12 +352,12 @@ function renderLeads() {
|
||||
<td>${esc(l.date_from || "—")} → ${esc(l.date_to || "—")}</td>
|
||||
<td><span class="pill pill-${esc(l.status)}">${esc(l.status)}</span></td>
|
||||
<td style="white-space:nowrap;">
|
||||
<fluent-button appearance="outline" data-open="${l.id}">Details</fluent-button>
|
||||
<button class="btn small ghost" data-open="${l.id}">Details</button>
|
||||
${wantActive ? `
|
||||
<fluent-button appearance="accent" data-qual="${l.id}">Qualifizieren</fluent-button>
|
||||
<fluent-button appearance="outline" data-disq="${l.id}">Ablehnen</fluent-button>
|
||||
<button class="btn small" data-qual="${l.id}">Qualifizieren</button>
|
||||
<button class="btn small danger" data-disq="${l.id}">Ablehnen</button>
|
||||
` : `
|
||||
<fluent-button appearance="outline" data-reopen="${l.id}">Wieder oeffnen</fluent-button>
|
||||
<button class="btn small ghost" data-reopen="${l.id}">Wieder oeffnen</button>
|
||||
`}
|
||||
</td>`;
|
||||
leadsTableBody.appendChild(tr);
|
||||
@@ -391,9 +385,9 @@ function openLead(id) {
|
||||
</dl>
|
||||
<div style="display:flex;gap:0.5rem;justify-content:flex-end;margin-top:0.8rem;">
|
||||
${l.is_active ? `
|
||||
<fluent-button appearance="outline" id="dlgDisq">Ablehnen</fluent-button>
|
||||
<fluent-button appearance="accent" id="dlgQual">Qualifizieren</fluent-button>
|
||||
` : `<fluent-button appearance="outline" id="dlgReopen">Wieder oeffnen</fluent-button>`}
|
||||
<button class="btn danger" id="dlgDisq">Ablehnen</button>
|
||||
<button class="btn" id="dlgQual">Qualifizieren</button>
|
||||
` : `<button class="btn ghost" id="dlgReopen">Wieder oeffnen</button>`}
|
||||
</div>`;
|
||||
leadDialog.showModal();
|
||||
const note = () => document.querySelector("#leadNote").value;
|
||||
@@ -453,9 +447,9 @@ function renderCustomers() {
|
||||
<td><code class="muted">${esc(c.lead_id?.slice(0, 8) || "—")}</code></td>
|
||||
<td><span class="pill pill-${esc(c.status)}">${esc(c.status)}</span></td>
|
||||
<td style="white-space:nowrap;">
|
||||
<fluent-button appearance="outline" data-toggle="${c.id}" data-status="${c.status}">
|
||||
<button class="btn small ghost" data-toggle="${c.id}" data-status="${c.status}">
|
||||
${c.status === "active" ? "Inaktiv setzen" : "Aktiv setzen"}
|
||||
</fluent-button>
|
||||
</button>
|
||||
</td>`;
|
||||
customersTableBody.appendChild(tr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user