renamed fbf app to bird
This commit is contained in:
parent
7724148dfc
commit
2d75a02c6e
19 changed files with 12 additions and 13 deletions
71
bird/templates/bird/bird_all.html
Normal file
71
bird/templates/bird/bird_all.html
Normal file
|
@ -0,0 +1,71 @@
|
|||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
{% block content %}
|
||||
<h3>Übersicht aller Patienten in Behandlung</h3>
|
||||
<p>
|
||||
Die Übersicht aller in Behandlung befindlichen Vögel umfasst <strong>nicht</strong> die entlassenen Patienten.
|
||||
</p>
|
||||
<p>
|
||||
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#addPatientModal">einen Patienten
|
||||
anlegen
|
||||
</button>
|
||||
</p>
|
||||
<table class="table table-striped table-hover" id="t__bids_all">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vogel</th>
|
||||
<th>Retter</th>
|
||||
<th>Fundort</th>
|
||||
<th>gefunden am</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for bird in birds %}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{% url 'bird_single' bird.id %}">{{ bird.bird }}</a>
|
||||
</td>
|
||||
<td>
|
||||
<a href="{% url 'rescuer_single' bird.rescuer_id %}">{{ bird.rescuer }}</a>
|
||||
</td>
|
||||
<td>{{ bird.place }}</td>
|
||||
<td>{{ bird.date_found }}</td>
|
||||
</tr>
|
||||
{% 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) Retter 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>
|
||||
Retter aus oder legen Sie einen <strong>neuen</strong> Retter an:</label>
|
||||
<select id="rescuer" class="form-select" name="rescuer_id">
|
||||
{% for rescuer in rescuer_modal %}
|
||||
<option value={{rescuer.id}}>
|
||||
{{rescuer.first_name}} {{rescuer.last_name}},
|
||||
{{rescuer.street}} {{rescuer.street_number}},
|
||||
{{rescuer.city}}
|
||||
</option>
|
||||
{% endfor %}
|
||||
<option value="new_rescuer"><strong>neuen
|
||||
Retter anlegen</strong></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-danger" data-bs-dismiss="modal">Abbruch</button>
|
||||
<button class="btn btn-primary" type="submit">Übernehmen und weiter</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{% endblock content %}
|
45
bird/templates/bird/bird_create.html
Normal file
45
bird/templates/bird/bird_create.html
Normal file
|
@ -0,0 +1,45 @@
|
|||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
{% load crispy_forms_tags %}
|
||||
{% block content %}
|
||||
|
||||
<h3>Patient anlegen</h3>
|
||||
<p>(Retter: {{rescuer.first_name}} {{rescuer.last_name}})</p>
|
||||
<div class="row">
|
||||
<div class="col-lg-8 mb-3">
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form|crispy }}
|
||||
<a href="{% url 'bird_all' %}" class="btn btn-danger">Abbruch</a>
|
||||
<button class="btn btn-primary" type="submit">Patient anlegen</button>
|
||||
<div class="mt-3"><small>* Pflichtfeld</small></div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-4">
|
||||
<h4>eins</h4>
|
||||
<p>
|
||||
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Facilis illum
|
||||
quos eveniet obcaecati, adipisci voluptate alias iste ipsa blanditiis
|
||||
earum veritatis provident modi repellendus ut maxime iusto enim distinctio
|
||||
voluptatum.
|
||||
</p>
|
||||
|
||||
<h4>zwei</h4>
|
||||
<p>
|
||||
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Facilis illum
|
||||
quos eveniet obcaecati, adipisci voluptate alias iste ipsa blanditiis
|
||||
earum veritatis provident modi repellendus ut maxime iusto enim distinctio
|
||||
voluptatum.
|
||||
</p>
|
||||
|
||||
<h4>drei</h4>
|
||||
<p>
|
||||
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Facilis illum
|
||||
quos eveniet obcaecati, adipisci voluptate alias iste ipsa blanditiis
|
||||
earum veritatis provident modi repellendus ut maxime iusto enim distinctio
|
||||
voluptatum.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
26
bird/templates/bird/bird_delete.html
Normal file
26
bird/templates/bird/bird_delete.html
Normal file
|
@ -0,0 +1,26 @@
|
|||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<h3>Patient löschen</h3>
|
||||
<div class="row mt-3">
|
||||
<div class="col-lg-7">
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
<div class="alert alert-dismissible alert-danger">
|
||||
<h4 class="alert-heading">Warnung!</h4>
|
||||
<p class="mb-0">Wollen Sie den Vogel <strong>{{bird.bird}}</strong>
|
||||
Reg-Num.: <strong>{{bird.id}}</strong> löschen?</p>
|
||||
</div>
|
||||
</p>
|
||||
<a href="{% url 'bird_all'%}" class="btn btn-secondary">Abbruch</a>
|
||||
<button class="btn btn-danger" type="submit">Löschen</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="col-lg-5">
|
||||
<h5>Vogel löschen</h5>
|
||||
<p>
|
||||
Hinweis zum Löschen eines Vogels!
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock content %}
|
18
bird/templates/bird/bird_single.html
Normal file
18
bird/templates/bird/bird_single.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
{% load crispy_forms_tags %}
|
||||
{% block content %}
|
||||
<h3>Patient {{ bird.bird }} bearbeiten</h3>
|
||||
<div class="row">
|
||||
<div class="col-lg-6 mb-3">
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<fieldset>
|
||||
{% csrf_token %}
|
||||
{{form|crispy}}
|
||||
<button class="btn btn-success" type="abbort">Abbrechen</button>
|
||||
<a href="{% url 'bird_delete' bird.id %}" class="btn btn-danger">Löschen</a>
|
||||
<button class="btn btn-primary" type="submit">Speichern und zur Übersicht</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock content %}
|
Loading…
Add table
Add a link
Reference in a new issue