{% extends "base.html" %} {% block title %}{{ layout.t("txd.title") }} {{ tx.id }}{% endblock %} {% block crumb %}{{ layout.t("txd.title") }} {{ tx.id }}{% endblock %} {% block content %}

{{ layout.t("txd.title") }} {{ tx.id }}

{{ wallbox_name }} · #{{ tx.connector_id }} {% if let Some(n) = user_name %} · {{ n }}{% endif %}
{{ layout.t("common.start") }}: {{ tx.start_time }}
{{ layout.t("common.end") }}: {{ tx.stop_time.as_deref().unwrap_or(layout.t("common.running")) }}
{{ layout.t("common.energy_kwh") }}: {% if let Some(e) = energy_kwh %}{{ e }}{% else %}–{% endif %}
{% if let Some(p) = power_kw %}
{{ layout.t("common.power") }}: {{ p }} kW
{% endif %}
idTag: {{ tx.id_tag }}
{% if let Some(r) = tx.stop_reason %}

{{ layout.t("txd.stop_reason") }}: {{ r }}

{% endif %}

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

{% if events.is_empty() %}
{{ layout.t("txd.no_events") }}
{{ layout.t("txd.no_events_hint") }}
{% else %} {% for e in events %} {% endfor %}
{{ layout.t("common.status") }} {{ layout.t("txd.time") }} {{ layout.t("txd.meaning") }} {{ layout.t("txd.detail") }}
{% if e.is_fault() %}{{ e.status }} {% else %}{{ e.status }}{% endif %} {{ e.timestamp }} {{ 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("txd.events_hint") }}

{% endif %}

← {{ layout.t("common.back") }}

{% endblock %}