Angebote mit Kalkulation: Leistungsverzeichnis, Kostenzeilen, Versandprüfung, Annehmen macht den Auftrag (0.16.0)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
@@ -184,12 +184,14 @@ export async function bearbeiten(pfad: string, titel: string, felder: Feld[], ze
|
||||
}
|
||||
|
||||
/** Hinweis, der nach dem nächsten Neuaufbau der Seite oben steht */
|
||||
export const hinweis = { text: "" };
|
||||
export const hinweis = { text: "", gut: false };
|
||||
export const hinweisHtml = () => (hinweis.text ? `<div class="${hinweis.gut ? "erfolg" : "warnung"}" role="status">${esc(hinweis.text)}</div>` : "");
|
||||
|
||||
// Kopf wie bei Plancraft: Titel links, Hauptknopf rechts; darunter eine Leiste für Filter
|
||||
export function seite(titel: string, knopf?: { text: string; aktion: () => void }): HTMLElement {
|
||||
inhalt.innerHTML = `<div class="kopf"><h1>${esc(titel)}</h1></div>${hinweis.text ? `<div class="warnung">${esc(hinweis.text)}</div>` : ""}`;
|
||||
inhalt.innerHTML = `<div class="kopf"><h1>${esc(titel)}</h1></div>${hinweisHtml()}`;
|
||||
hinweis.text = "";
|
||||
hinweis.gut = false;
|
||||
if (knopf) {
|
||||
const b = document.createElement("button");
|
||||
b.className = "haupt";
|
||||
|
||||
Reference in New Issue
Block a user