{% extends "shared/frontend/base.html" %} {% block title %}{{ hardware.brand }} {{ hardware.model }} - Hardware - BMC Hub{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
Tilbage til hardware
ID: {{ hardware.id }}
Hardware: {{ hardware.brand or 'Unknown' }} {{ hardware.model or '' }}
{% if hardware.serial_number %}
S/N: {{ hardware.serial_number }}
{% endif %} {% set current_owner = ownership[0] if ownership else None %} {% set owner_contact_ns = namespace(contact=None) %} {% if contacts %} {% for c in contacts %} {% if c.role == 'primary' and owner_contact_ns.contact is none %} {% set owner_contact_ns.contact = c %} {% endif %} {% endfor %} {% endif %} {% if current_owner and not current_owner.end_date %}
Ejer: {{ current_owner.customer_name or current_owner.owner_type|title }}
{% endif %} {% set current_loc = locations[0] if locations else None %} {% if current_loc and not current_loc.end_date %}
Lokation: {{ current_loc.location_name }}
{% endif %}
Status: {{ hardware.status|replace('_', ' ')|title }}
Stamdata
Type {% if hardware.asset_type == 'pc' %}🖥️ PC {% elif hardware.asset_type == 'laptop' %}💻 Laptop {% elif hardware.asset_type == 'printer' %}🖨️ Printer {% elif hardware.asset_type == 'skærm' %}🖥️ Skærm {% elif hardware.asset_type == 'telefon' %}📱 Telefon {% elif hardware.asset_type == 'server' %}🗄️ Server {% elif hardware.asset_type == 'netværk' %}🌐 Netværk {% else %}📦 {{ hardware.asset_type|title }} {% endif %}
Mærke/Model {{ hardware.brand or '-' }} / {{ hardware.model or '-' }}
{% if hardware.eset_uuid %}
ESET UUID {{ hardware.eset_uuid }}
{% endif %} {% if hardware.eset_group %}
ESET Gruppe {{ hardware.eset_group }}
{% endif %} {% if hardware.internal_asset_id %}
Internt Asset ID {{ hardware.internal_asset_id }}
{% endif %} {% if hardware.customer_asset_id %}
Kunde Asset ID {{ hardware.customer_asset_id }}
{% endif %} {% if hardware.warranty_until %}
Garanti til {{ hardware.warranty_until }}
{% endif %} {% if hardware.end_of_life %}
End of Life {{ hardware.end_of_life }}
{% endif %}
{% set anydesk_url = hardware.anydesk_id and ('anydesk://' ~ hardware.anydesk_id) %}
Remote Access
Ændre
AnyDesk ID {% if anydesk_url %} {{ hardware.anydesk_id }} {% else %} - {% endif %}
Handling {% if anydesk_url %} Connect AnyDesk {% else %} Ingen link {% endif %}
Lokation
{% if current_loc and not current_loc.end_date %}
{{ current_loc.location_name }}

Siden: {{ current_loc.start_date }}

{% if current_loc.notes %}
"{{ current_loc.notes }}"
{% endif %}
{% else %}

Ingen aktiv lokation

{% endif %}
Ejer
{% if current_owner and not current_owner.end_date %}
{{ current_owner.customer_name or current_owner.owner_type|title }}
{% if owner_contact_ns.contact %}

{{ owner_contact_ns.contact.first_name }} {{ owner_contact_ns.contact.last_name }}

{% endif %}

Siden: {{ current_owner.start_date }}

{% else %}

Ingen aktiv ejer

{% endif %}
Skift Lokation
Tilføj Bilag
Kontaktpersoner
{% if contacts %} {% for contact in contacts %}
{{ contact.first_name }} {{ contact.last_name }} {% if contact.role == 'primary' %}Primær{% endif %} {% if contact.source == 'eset' %}ESET{% endif %}
{% if contact.email %}{% endif %} {% if contact.phone %}{{ contact.phone }}{% endif %}
{% endfor %} {% else %}
Ingen kontakter tilknyttet
{% endif %}
Seneste Sager
{% if cases and cases|length > 0 %} {% for case in cases[:5] %}
{{ case.titel }}
{{ case.status }}
{{ case.created_at.strftime('%Y-%m-%d') if case.created_at else '' }}
{% endfor %} {% if cases|length > 5 %} {% endif %} {% else %}
Ingen sager tilknyttet
{% endif %}
Specifikationer
{% if eset_specs and (eset_specs.os_name or eset_specs.primary_local_ip or eset_specs.cpu_models or eset_specs.deployed_components) %}
Enhedsnavn {{ eset_specs.device_name or '-' }}
OS {{ eset_specs.os_name or '-' }}{% if eset_specs.os_version %} ({{ eset_specs.os_version }}){% endif %}
Sidst sync {{ eset_specs.last_sync_time or '-' }}
Status {{ eset_specs.functionality_status or '-' }}
Device type {{ eset_specs.device_type or '-' }}
Local IP {{ eset_specs.primary_local_ip or '-' }}
Public IP {{ eset_specs.public_ip or '-' }}
Chassis {{ eset_specs.manufacturer or '-' }} / {{ eset_specs.model or '-' }}
BIOS Serial {{ eset_specs.bios_serial or '-' }}
CPU {{ eset_specs.cpu_models | join(', ') if eset_specs.cpu_models else '-' }}
Disk {{ eset_specs.disk_summaries | join(', ') if eset_specs.disk_summaries else (eset_specs.disk_models | join(', ') if eset_specs.disk_models else '-') }}
Netkort {{ eset_specs.adapter_names | join(', ') if eset_specs.adapter_names else '-' }}
MAC {{ eset_specs.macs | join(', ') if eset_specs.macs else '-' }}
Installeret {% if eset_specs.installed_software_details %}
{% for app in eset_specs.installed_software_details %} {% endfor %}
App Version
{{ app.name }} {{ app.version or '-' }}
{% elif eset_specs.deployed_components %}
    {% for app in eset_specs.deployed_components %}
  • {{ app }}
  • {% endfor %}
{% else %} - {% endif %}
{% else %}
Ingen ESET specifikationer fundet endnu.
{% endif %}
{% if hardware.hardware_specs %}
ESET Data
Rå data fra ESET (til match/diagnose)
{{ hardware.hardware_specs | tojson(indent=2) }}
{% endif %}
Lokations Historik
{% if locations %} {% for loc in locations %}
{{ loc.location_name or 'Ukendt' }}
{{ loc.start_date }} {% if loc.end_date %} - {{ loc.end_date }}{% else %} Nuværende{% endif %}
{% if loc.notes %}
"{{ loc.notes }}"
{% endif %}
{% endfor %} {% else %}

Ingen historik.

{% endif %}
Ejerskabs Historik
{% if ownership %} {% for own in ownership %}
{{ own.customer_name or own.owner_type }}
{{ own.start_date }} {% if own.end_date %} - {{ own.end_date }}{% else %} Nuværende{% endif %}
{% if own.notes %}
"{{ own.notes }}"
{% endif %}
{% endfor %} {% else %}

Ingen historik.

{% endif %}
{% if attachments %} {% for att in attachments %}
📎
{{ att.file_name }}
{{ att.uploaded_at }}
{% endfor %} {% else %}

Ingen filer vedhæftet

{% endif %}
Noter
{% if hardware.notes %}
{{ hardware.notes }}
{% else %} Ingen noter tilføjet... {% endif %}
{% endblock %} {% block extra_js %} {% endblock %}