From 72d9f808e218a616b7a58118b0bcd54674eb5976 Mon Sep 17 00:00:00 2001 From: EiSiMo Date: Tue, 21 Apr 2026 18:40:42 +0200 Subject: [PATCH] hide Ablehnen button once a flat has been successfully applied to Mirrors the Bewerben-hide behavior: once item.last.success == 1, the Ablehnen form/button doesn't render either, so the row just shows the "beworben" chip without any actions. Co-Authored-By: Claude Opus 4.7 (1M context) --- web/templates/_wohnungen_body.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/templates/_wohnungen_body.html b/web/templates/_wohnungen_body.html index 71d6e33..09c641d 100644 --- a/web/templates/_wohnungen_body.html +++ b/web/templates/_wohnungen_body.html @@ -166,6 +166,7 @@ {% endif %} {% endif %} + {% if not (item.last and item.last.success == 1) %}
@@ -180,6 +181,7 @@ title="{{ partner.name }} hat abgelehnt">{{ partner.initial }} {% endif %}
+ {% endif %}