You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
3.9 KiB

6 months ago
<!DOCTYPE html>
<html lang="ch">
<head>
<meta charset="UTF-8">
<title>Django医院在线挂号系统-病人预约</title>
<link rel="stylesheet" type="text/css" href="/static/css/choosedoctorandtime.css">
</head>
<body>
{% load static %}
<div class="top">
<h1>预约日期:{{ tomorrow }}</h1>
</div>
<div class="box">
{% for doctor,number in doctor_time_number_list %}
<div class="message">
<div class="age">
<dl>
<dd>
<img class="doctorimg" src="/media/{{ doctor.img }}">
</dd>
<dt>
<span>{{ doctor.name }}</span><br>
职位等级:{{ doctor.level }}<br>
科室:{{ department_name }}<br>
挂号价格:{{ doctor.registration_price }}元<br>
<span>简述</span><br>
{{ doctor.description }}
</dt>
</dl>
</div>
<div class="time">
<dl>
{% if number.eight == 0%}
<dt>时间:8:00 名额:{{ number.eight }} <a href="#">预约</a></dt>
{% else %}
<dt>时间:8:00 名额:{{ number.eight }} <a href="/confirmregistration/{{ department_id }}/{{ doctor.id }}/08:00:00">预约</a></dt>
{% endif %}
{% if number.nine == 0 %}
<dt>时间:9:00 名额:{{ number.nine }} <a href="#">预约</a></dt>
{% else %}
<dt>时间:9:00 名额:{{ number.nine }} <a href="/confirmregistration/{{ department_id }}/{{ doctor.id }}/09:00:00">预约</a></dt>
{% endif %}
{% if number.ten == 0 %}
<dt>时间:10:00 名额:{{ number.ten }} <a href="#">预约</a></dt>
{% else %}
<dt>时间:10:00 名额:{{ number.ten }} <a href="/confirmregistration/{{ department_id }}/{{ doctor.id }}/10:00:00">预约</a></dt>
{% endif %}
{% if number.eleven == 0 %}
<dt>时间:11:00 名额:{{ number.eleven }} <a href="#">预约</a></dt>
{% else %}
<dt>时间:11:00 名额:{{ number.eleven }} <a href="/confirmregistration/{{ department_id }}/{{ doctor.id }}/11:00:00">预约</a></dt>
{% endif %}
{% if number.fourteen == 0 %}
<dt>时间:14:00 名额:{{ number.fourteen }} <a href="#">预约</a></dt>
{% else %}
<dt>时间:14:00 名额:{{ number.fourteen }} <a href="/confirmregistration/{{ department_id }}/{{ doctor.id }}/14:00:00">预约</a></dt>
{% endif %}
{% if number.fifteen == 0 %}
<dt>时间:15:00 名额:{{ number.fifteen }} <a href="#">预约</a></dt>
{% else %}
<dt>时间:15:00 名额:{{ number.fifteen }} <a href="/confirmregistration/{{ department_id }}/{{ doctor.id }}/15:00:00">预约</a></dt>
{% endif %}
{% if number.sixteen == 0 %}
<dt>时间:16:00 名额:{{ number.sixteen }} <a href="#">预约</a></dt>
{% else %}
<dt>时间:16:00 名额:{{ number.sixteen }} <a href="/confirmregistration/{{ department_id }}/{{ doctor.id }}/16:00:00">预约</a></dt>
{% endif %}
{% if number.seventeen == 0 %}
<dt>时间:17:00 名额:{{ number.seventeen }} <a href="#">预约</a></dt>
{% else %}
<dt>时间:17:00 名额:{{ number.seventeen }} <a href="/confirmregistration/{{ department_id }}/{{ doctor.id }}/17:00:00">预约</a></dt>
{% endif %}
</dl>
</div>
</div>
{% endfor %}
</div>
</body>
</html>