diff --git a/farmq-admin/templates/pharmacy/detail.html b/farmq-admin/templates/pharmacy/detail.html new file mode 100644 index 0000000..8305781 --- /dev/null +++ b/farmq-admin/templates/pharmacy/detail.html @@ -0,0 +1,319 @@ +{% extends "base.html" %} + +{% block title %}약국 상세 정보 - 팜큐 약국 관리 시스템{% endblock %} + +{% block breadcrumb %} + +{% endblock %} + +{% block content %} + +
{{ pharmacy.manager_name or '담당자 미등록' }}
+| 약국명 | +{{ 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 %} + | +
| 머신명 | +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 %} + | +
+
+
+
+
+
+
+
+ |
+
+ {% if pharmacy.headscale_user_name %}
+ "{{ pharmacy.headscale_user_name }}" 사용자에 연결된 머신이 없습니다.
+ {% else %}
+ 이 약국은 Headscale 사용자와 연결되지 않았습니다.
+ 사용자 관리에서 사용자를 이 약국에 연결해주세요.
+ {% endif %}
+