beautified
This commit is contained in:
parent
ec93fae644
commit
53c34da7a8
6 changed files with 27 additions and 15 deletions
|
@ -2,7 +2,7 @@
|
||||||
{% load static %}
|
{% load static %}
|
||||||
{% block header %}
|
{% block header %}
|
||||||
<!-- Datatable CSS -->
|
<!-- Datatable CSS -->
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/1.13.4/css/dataTables.bootstrap5.min.css"/>
|
<link rel="stylesheet" href="https://cdn.datatables.net/1.13.4/css/dataTables.bootstrap5.min.css" />
|
||||||
<link rel="stylesheet" href="https://cdn.datatables.net/responsive/2.2.9/css/responsive.bootstrap5.min.css">
|
<link rel="stylesheet" href="https://cdn.datatables.net/responsive/2.2.9/css/responsive.bootstrap5.min.css">
|
||||||
|
|
||||||
<!-- jQuery -->
|
<!-- jQuery -->
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
info: false,
|
info: false,
|
||||||
responsive: true,
|
responsive: true,
|
||||||
columnDefs: [
|
columnDefs: [
|
||||||
{ responsivePriority: 1, targets: 0 },
|
{ responsivePriority: 1, targets: 0 },
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -104,5 +104,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
{% endblock content %}
|
{% endblock content %}
|
|
@ -8,11 +8,11 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-8 mb-3">
|
<div class="col-lg-8 mb-3">
|
||||||
<form method="post" enctype="multipart/form-data">
|
<form method="post" enctype="multipart/form-data">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{ form|crispy }}
|
{{ form|crispy }}
|
||||||
<a href="{% url 'bird_all' %}" class="btn btn-danger">Abbruch</a>
|
<a href="{% url 'bird_all' %}" class="btn btn-danger">Abbruch</a>
|
||||||
<button class="btn btn-primary" type="submit">Patient anlegen</button>
|
<button class="btn btn-primary" type="submit">Patient anlegen</button>
|
||||||
<div class="mt-3"><small>* Pflichtfeld</small></div>
|
<div class="mt-3"><small>* Pflichtfeld</small></div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
|
{% extends "base.html" %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h3>Patient löschen</h3>
|
<h3>Patient löschen</h3>
|
||||||
<div class="row mt-3">
|
<div class="row mt-3">
|
||||||
|
|
13
bird/templates/bird/bird_help.html
Normal file
13
bird/templates/bird/bird_help.html
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{% extends "base.html" %}
|
||||||
|
{% load static %}
|
||||||
|
{% block content %}
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-8 mb-3">
|
||||||
|
<h3>Hilfesammlung</h3>
|
||||||
|
{% for bird in birds %}
|
||||||
|
<h4>{{ bird.name }}</h4>
|
||||||
|
<p>{{ bird.description }}</p>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endblock content %}
|
|
@ -3,7 +3,7 @@
|
||||||
{% load crispy_forms_tags %}
|
{% load crispy_forms_tags %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h3>Patient <strong>{{ bird.bird_identifier }}</strong> bearbeiten </h3>
|
<h3>Patient <strong>{{ bird.bird_identifier }}</strong> bearbeiten </h3>
|
||||||
<p>Retter des Patienten:<strong> {{ bird.rescuer }}</strong></p>
|
<p>Retter des Patienten: <strong> <a href="{% url 'rescuer_single' bird.rescuer_id %}">{{ bird.rescuer }}</a></strong></p>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-5 mb-3">
|
<div class="col-lg-5 mb-3">
|
||||||
<form method="post" enctype="multipart/form-data">
|
<form method="post" enctype="multipart/form-data">
|
||||||
|
|
|
@ -32,8 +32,8 @@
|
||||||
<ul class="navbar-nav pull-right">
|
<ul class="navbar-nav pull-right">
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link {% if '/accounts/email/' in request.path %} active {% endif %}"
|
<a class="nav-link {% if '/bird/help/' in request.path %} active {% endif %}"
|
||||||
href="{% url 'account_email' %}">Hilfe</a>
|
href="{% url 'bird_help' %}">Hilfe</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link {% if '/accounts/email/' in request.path %} active {% endif %}"
|
<a class="nav-link {% if '/accounts/email/' in request.path %} active {% endif %}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue