{% extends "base.html" %} {% block title %}{{ wb.name }}{% endblock %} {% block content %}

{{ wb.name }} ({{ wb.charge_point_id }})

{{ layout.t("common.status") }}: {% if online %}{{ layout.t("common.online") }}{% else %}{{ layout.t("common.offline") }}{% endif %} · OCPP {{ wb.ocpp_version.as_deref().unwrap_or("–") }} · {{ layout.t("wbd.manufacturer") }} {{ wb.vendor.as_deref().unwrap_or("–") }} {{ wb.model.as_deref().unwrap_or("") }} · Firmware {{ wb.firmware.as_deref().unwrap_or("–") }} · {{ layout.t("wb.last_heartbeat") }} {{ wb.last_heartbeat.as_deref().unwrap_or("–") }}

{{ layout.t("wbd.connectors") }}

{% for c in connectors %} {% endfor %} {% if connectors.is_empty() %}{% endif %}
#{{ layout.t("common.status") }}{{ layout.t("state.error") }}Info{{ layout.t("wbd.updated") }}
{{ c.connector_id }} {{ c.status.as_deref().unwrap_or("–") }} {{ c.error_code.as_deref().unwrap_or("–") }} {{ c.info.as_deref().unwrap_or("") }} {{ c.updated_at }}
{{ layout.t("wbd.no_connectors") }}

{{ layout.t("wbd.auth_title") }}

{% if let Some(pw) = new_password %}

{{ layout.t("wbd.pw_set") }} {{ layout.t("wbd.pw_show_once") }}

{{ layout.t("wbd.user") }}: {{ wb.auth_basic_user.as_deref().unwrap_or(wb.charge_point_id.as_str()) }}
{{ layout.t("common.password") }}: {{ pw }}

{% endif %} {% if wb.auth_basic_pass.is_some() %}

{{ layout.t("wbd.basic_auth_is") }} {{ layout.t("wbd.active_word") }}. {{ layout.t("wbd.user") }}: {{ wb.auth_basic_user.as_deref().unwrap_or(wb.charge_point_id.as_str()) }}. {{ layout.t("wbd.auth_reject") }}

{% else %}

{{ layout.t("wbd.basic_auth_is") }} {{ layout.t("wbd.disabled_word") }}. {{ layout.t("wbd.auth_open") }}

{% endif %}
{% if wb.auth_basic_pass.is_some() %}
{% endif %}

{{ layout.t("wbd.guest_title") }}

{% if !online %}

{{ layout.t("wbd.offline_hint") }}

{% endif %}

{{ layout.t("dash.running_sessions") }}

{% include "_wallbox_live.html" %}

{{ layout.t("wbd.events") }}

{% if events.is_empty() %}

{{ layout.t("wbd.no_events") }}

{% else %} {% for e in events %} {% endfor %}
{{ layout.t("txd.time") }} C. {{ layout.t("common.status") }} {{ layout.t("txd.meaning") }} {{ layout.t("txd.detail") }}
{{ e.timestamp }} {{ e.connector_id }} {% if e.is_fault() %}{{ e.status }} {% else %}{{ e.status }}{% endif %} {{ lang.ocpp_status(e.status.as_str()) }} {% if let Some(c) = e.error_code %}{% if c != "NoError" %}{{ c }} {% endif %}{% endif %} {% if let Some(v) = e.vendor_error %}{{ v }} {% endif %} {% if let Some(i) = e.info %}{{ i }}{% endif %}

{{ layout.t("wbd.events_hint") }}

{% endif %} {% endblock %}