parent
cb0696b0bd
commit
3a3bcea588
32 changed files with 32 additions and 615 deletions
|
@ -48,9 +48,7 @@
|
|||
mehr in Behandlung befindlichen Patienten finden Sie <a href="{% url 'bird_inactive' %}">hier</a>.
|
||||
</p>
|
||||
<p>
|
||||
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#addPatientModal">einen Patienten
|
||||
anlegen
|
||||
</button>
|
||||
<p><a href="{% url 'bird_create' %}" class="btn btn-primary">einen Patienten anlegen</a></p>
|
||||
</p>
|
||||
<table class="table table-striped table-hover display responsive nowrap" id="t__bird_all">
|
||||
<thead>
|
||||
|
@ -58,7 +56,6 @@
|
|||
<th>Patienten Alias</th>
|
||||
<th>Vogel</th>
|
||||
<th>gefunden am</th>
|
||||
<th>Finder</th>
|
||||
<th>Fundort</th>
|
||||
<th>Status</th>
|
||||
<th>Voliere</th>
|
||||
|
@ -73,7 +70,6 @@
|
|||
<td><a href="{% url 'bird_single' bird.id %}">{{ bird.bird_identifier }}</a></td>
|
||||
<td>{{ bird.bird }}</td>
|
||||
<td data-order="{{ forloop.counter }}">{{ bird.date_found }}</td>
|
||||
<td><a href="{% url 'rescuer_single' bird.rescuer_id %}">{{ bird.rescuer|default_if_none:"" }}</a></td>
|
||||
<td>{{ bird.place }}</td>
|
||||
<td>{{ bird.status }}</td>
|
||||
<td>{{ bird.aviary|default_if_none:"" }}</td>
|
||||
|
@ -84,37 +80,5 @@
|
|||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="modal fade" id="addPatientModal" tabindex="-1" data-bs-backdrop="static"
|
||||
aria-labelledby="addRescuerModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header bg-primary">
|
||||
<h5 class="modal-title text-white" id="addRescuerModalLabel">(neuen) Finder zuweisen</h5>
|
||||
</div>
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
<div class="modal-body">
|
||||
<label for="rescuer" class="form-label mt-3">Wählen Sie einen <strong>bereits angelegten</strong>
|
||||
Finder aus oder legen Sie einen <strong>neuen</strong> Finder an:</label>
|
||||
<select id="rescuer" class="form-select" name="rescuer_id">
|
||||
<option value="new_rescuer"><strong>neuen
|
||||
Finder anlegen</strong></option>
|
||||
{% for rescuer in rescuer_modal %}
|
||||
<option value={{rescuer.id}}>
|
||||
{{rescuer.last_name}}, {{rescuer.first_name}},
|
||||
{{rescuer.street}} {{rescuer.street_number}},
|
||||
{{rescuer.city}}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-danger" data-bs-dismiss="modal">Abbrechen</button>
|
||||
<button class="btn btn-primary" type="submit">Übernehmen und weiter</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock content %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue