{% extends "base.html" %} {% block title %}약국 상세 정보 - 팜큐 약국 관리 시스템{% endblock %} {% block breadcrumb %} {% endblock %} {% block content %}
{% if pharmacy.online_machines > 0 %} {% else %} {% endif %}

{{ pharmacy.pharmacy_name }}

{{ pharmacy.manager_name or '담당자 미등록' }}

{% if pharmacy.online_machines == pharmacy.total_machines and pharmacy.total_machines > 0 %} 모든 머신 온라인 {% elif pharmacy.online_machines > 0 %} 부분적 연결 {% elif pharmacy.total_machines > 0 %} 전체 오프라인 {% else %} 머신 없음 {% endif %} 머신: {{ pharmacy.online_machines }}/{{ pharmacy.total_machines }} 온라인
기본 정보
약국명 {{ pharmacy.pharmacy_name }}
사업자번호 {{ pharmacy.business_number or '미등록' }}
담당자 {{ pharmacy.manager_name or '미등록' }}
연락처 {{ pharmacy.phone or '미등록' }}
주소 {{ pharmacy.address or '주소 미등록' }}
네트워크 정보
Proxmox 호스트 {% if pharmacy.proxmox_host %} {{ pharmacy.proxmox_host }} {% else %} 미설정 {% endif %}
Headscale 사용자 {% if pharmacy.headscale_user_name %} {{ pharmacy.headscale_user_name }} {% else %} 연결되지 않음 {% endif %}
등록일 {% if pharmacy.created_at %} {% if pharmacy.created_at.__class__.__name__ == 'datetime' %} {{ pharmacy.created_at.strftime('%Y년 %m월 %d일 %H:%M') }} {% else %} {{ pharmacy.created_at }} {% endif %} {% else %} 알 수 없음 {% endif %}
최종 업데이트 {% if pharmacy.updated_at %} {% if pharmacy.updated_at.__class__.__name__ == 'datetime' %} {{ pharmacy.updated_at.strftime('%Y-%m-%d %H:%M:%S') }} {% else %} {{ pharmacy.updated_at }} {% endif %} {% else %} 알 수 없음 {% endif %}
구독 서비스 현황
로딩 중...

구독 정보를 불러오는 중...

연결된 머신 목록 {{ pharmacy.total_machines }}대
{% if machines %}
{% for machine in machines %} {% endfor %}
머신명 IP 주소 상태 등록 방식 마지막 접속 액션
{{ machine.given_name or machine.hostname }} {% if machine.given_name and machine.hostname and machine.given_name != machine.hostname %}
{{ machine.hostname }} {% endif %}
{% if machine.ipv4 %} {{ machine.ipv4 }} {% if machine.ipv6 %}
{{ machine.ipv6 }} {% endif %} {% else %} IP 미할당 {% endif %}
{% if machine.online %} 온라인 {% else %} 오프라인 {% endif %} {{ machine.register_method }} {% if machine.last_seen %} {% if machine.last_seen.__class__.__name__ == 'datetime' %} {{ machine.last_seen.strftime('%m/%d %H:%M') }} {% else %} {{ machine.last_seen }} {% endif %} {% else %} 알 수 없음 {% endif %}
{% else %}

연결된 머신이 없습니다

{% if pharmacy.headscale_user_name %} "{{ pharmacy.headscale_user_name }}" 사용자에 연결된 머신이 없습니다. {% else %} 이 약국은 Headscale 사용자와 연결되지 않았습니다.
사용자 관리에서 사용자를 이 약국에 연결해주세요. {% endif %}

{% if not pharmacy.headscale_user_name %} 사용자 관리로 이동 {% endif %}
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}