- Remove the admin "Koordinaten nachladen" button, /actions/backfill-coords endpoint, geocode.py, googlemaps dep, GMAPS_API_KEY plumbing in the web service, and the map diagnostic line. Going-forward geocoding happens in alert on scrape; upsert_flat backfill on re-submit remains for edge cases - Remove the OpenRailwayMap transit overlay (visually noisy); keep CartoDB Voyager as the sole basemap - Profile + notifications forms get autocomplete="off" + data-lpignore + data-1p-ignore at form and field level to keep password managers from popping open on /einstellungen; immomio_password uses autocomplete=new-password Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
46 lines
2.4 KiB
HTML
46 lines
2.4 KiB
HTML
<h2 class="font-semibold mb-2">Benachrichtigungen</h2>
|
|
<p class="text-sm text-slate-600 mb-4">
|
|
Wähle einen Kanal und entscheide, welche Events dich erreichen sollen.
|
|
</p>
|
|
|
|
<form method="post" action="/actions/notifications" class="space-y-4 max-w-xl"
|
|
autocomplete="off" data-lpignore="true" data-1p-ignore data-form-type="other">
|
|
<input type="hidden" name="csrf" value="{{ csrf }}">
|
|
|
|
<div>
|
|
<label class="block text-xs uppercase text-slate-500 mb-1">Kanal</label>
|
|
<select class="input" name="channel">
|
|
<option value="ui" {% if notifications.channel == 'ui' %}selected{% endif %}>Nur im Dashboard (kein Push)</option>
|
|
<option value="telegram" {% if notifications.channel == 'telegram' %}selected{% endif %}>Telegram</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div>
|
|
<label class="block text-xs uppercase text-slate-500 mb-1">Telegram Bot-Token</label>
|
|
<input class="input" name="telegram_bot_token" value="{{ notifications.telegram_bot_token }}"
|
|
placeholder="123456:ABC..." autocomplete="off" data-lpignore="true" data-1p-ignore>
|
|
<p class="text-xs text-slate-500 mt-1">Bot bei @BotFather anlegen, Token hier eintragen.</p>
|
|
</div>
|
|
<div>
|
|
<label class="block text-xs uppercase text-slate-500 mb-1">Telegram Chat-ID</label>
|
|
<input class="input" name="telegram_chat_id" value="{{ notifications.telegram_chat_id }}"
|
|
placeholder="987654321" autocomplete="off" data-lpignore="true" data-1p-ignore>
|
|
</div>
|
|
|
|
<div class="border-t border-soft pt-4 space-y-2">
|
|
<label class="flex items-center gap-2">
|
|
<input type="checkbox" name="notify_on_match" {% if notifications.notify_on_match %}checked{% endif %}>
|
|
<span>Bei passender Wohnung</span>
|
|
</label>
|
|
<label class="flex items-center gap-2">
|
|
<input type="checkbox" name="notify_on_apply_success" {% if notifications.notify_on_apply_success %}checked{% endif %}>
|
|
<span>Bei erfolgreicher Bewerbung</span>
|
|
</label>
|
|
<label class="flex items-center gap-2">
|
|
<input type="checkbox" name="notify_on_apply_fail" {% if notifications.notify_on_apply_fail %}checked{% endif %}>
|
|
<span>Bei fehlgeschlagener Bewerbung</span>
|
|
</label>
|
|
</div>
|
|
|
|
<button class="btn btn-primary" type="submit">Speichern</button>
|
|
</form>
|