Halte die Vorgangsleiste sichtbar und nimm die ueberfluessigen Kapitelworte weg, damit Datum, Bezuege, Titel und mehrere Belege direkt gesetzt werden koennen.
Deploy Development / deploy (push) Successful in 30s
Test Suite / pytest-backend (push) Successful in 1m28s
Test Suite / smoke-dev (push) Successful in 0s
Test Suite / frontend-build (push) Successful in 8s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-10-17 22:46:12 +02:00
1 parent cbd45a8997
commit deb5d662fe
13 files changed
+423 -101

No files matched your search

+13
View File
@@ -1497,6 +1497,19 @@ def update_summary(conn, actor: UUID, element_id: UUID, expected: int, summary:
return get_element(conn, element_id)
def update_title(conn, actor: UUID, element_id: UUID, expected: int, title: str, context: Ctx | None) -> dict:
element, rights = require_element(conn, actor, element_id, context, "edit")
if not rights.edit:
raise forbidden()
cleaned = title.strip()
if not cleaned or len(cleaned) > 200:
raise unprocessable("Der Titel fehlt oder ist zu lang.")
bump_version(conn, "elements", element_id, expected)
conn.execute("UPDATE elements SET title = %s WHERE id = %s", (cleaned, element_id))
audit(conn, actor, element["home_scope_id"], "title_changed", "element", element_id, context)
return get_element(conn, element_id)
def move_binding_chapter(conn, actor: UUID, binding_id: UUID, expected: int, chapter_id: UUID | None, context: Ctx | None) -> int:
"""Move one visible binding inside its container. No new binding and no grant."""
binding = conn.execute("SELECT * FROM bindings WHERE id = %s", (binding_id,)).fetchone()