bird forms
This commit is contained in:
parent
d08d86f99b
commit
7a4cb2ff67
5 changed files with 47 additions and 10 deletions
|
@ -8,7 +8,7 @@
|
||||||
<th>Vogel</th>
|
<th>Vogel</th>
|
||||||
<th>Finder</th>
|
<th>Finder</th>
|
||||||
<th>Fundort</th>
|
<th>Fundort</th>
|
||||||
<th>angelegt am</th>
|
<th>gefunden am</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
<a href="{% url 'rescuer_single' bird.rescuer_id %}">{{ bird.rescuer }}</a>
|
<a href="{% url 'rescuer_single' bird.rescuer_id %}">{{ bird.rescuer }}</a>
|
||||||
</td>
|
</td>
|
||||||
<td>{{ bird.place }}</td>
|
<td>{{ bird.place }}</td>
|
||||||
<td>{{ bird.created }}</td>
|
<td>{{ bird.date_found }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
26
fbf/templates/fbf/bird_delete.html
Normal file
26
fbf/templates/fbf/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
fbf/templates/fbf/bird_single.html
Normal file
18
fbf/templates/fbf/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 %}
|
|
@ -1,8 +0,0 @@
|
||||||
{% extends "base.html" %}
|
|
||||||
{% load static %}
|
|
||||||
{% block content %}
|
|
||||||
<h3>{{ bird.bird }}</h3>
|
|
||||||
<p>{{ bird.id }}</p>
|
|
||||||
<p> form </p>
|
|
||||||
<p>änder und löschen</p>
|
|
||||||
{% endblock content %}
|
|
|
@ -1,5 +1,6 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
{% load crispy_forms_tags %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h3>{{ rescuer.first_name }} {{ rescuer.last_name }}</h3>
|
<h3>{{ rescuer.first_name }} {{ rescuer.last_name }}</h3>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue