44 lines
1.8 KiB
HTML
44 lines
1.8 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-12 col-md-11 col-sm-10">
|
|
<h2>Suchergebnisse</h2>
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Index</th>
|
|
<th scope="col">Name</th>
|
|
<th scope="col">Nächster Telefontag</th>
|
|
<th scope="col">Nächste Telefonzeit</th>
|
|
<th scope="col">Telefonnummer</th>
|
|
<th scope="col">Adresse</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% set day_classes = {
|
|
"1": "table-secondary",
|
|
"2": "table-success",
|
|
"3": "table-info",
|
|
"4": "table-light",
|
|
"5": "table-primary",
|
|
} %}
|
|
{% for doctor in doctors %}
|
|
<tr class="{{ day_classes.get(doctor.phone_time.start.strftime("%w")) }}">
|
|
<th scope="row">{{ doctor.doctor_nr }}</th>
|
|
<th scope="row">{{ doctor.doctor_name }}</th>
|
|
<td>{{ doctor.phone_time.start.strftime("%A %d.%m") }}</td>
|
|
<td>{{ doctor.phone_time.start.strftime("%H:%M") }}
|
|
bis {{ doctor.phone_time.end.strftime("%H:%M") }}</td>
|
|
<td>{{ doctor.doctor_phone_number }}</td>
|
|
<td>{{ doctor.doctor_address }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %} |