{% load i18n vite %} {% trans "Settings · Sound Signal" %} {% vite_asset "frontend/src/entries/settings.js" %} {% include "js_translations.html" %}

{% trans "Settings" %}

{% trans "Manage your personal preferences." %}

{% if messages %}{% endif %}
{% csrf_token %}

{% trans "Language" %}

{{ language_form.preferred_language }} {{ language_form.preferred_language.errors }}
{% csrf_token %}

{% trans "Notifications / ntfy" %}

{% trans "Use a topic URL from your ntfy server. Test the current URL before saving it." %}

{{ form.ntfy_url }} {{ form.ntfy_url.errors }}
{{ form.ntfy_enabled }}

{% trans "My sensors" %}

{% trans "Manage the devices that authenticate with BoomCast." %}

{% for sensor in sensors %}
{{ sensor.name }} {% with status=sensor.heartbeat_status %}● {{ status.1 }}{% endwith %}

{% if sensor.is_active %}{% trans "Enabled" %}{% else %}{% trans "Disabled" %}{% endif %} · {% trans "Token prefix" %}: {{ sensor.token_prefix|default:"—" }}

{% trans "Last heartbeat" %}: {{ sensor.last_heartbeat|date:"j M Y, H:i"|default:"—" }} · {% trans "Created" %}: {{ sensor.created_at|date:"j M Y" }}

{% trans "Manage" %}
{% empty %}

{% trans "No sensors yet. Add a device to receive an API token for hardware submissions." %}

{% endfor %}
{% csrf_token %}