fix: text-center thead
This commit is contained in:
@@ -8,7 +8,9 @@
|
|||||||
<div>
|
<div>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr><th><h4 class="mb-0">{{ head.traits }}</h4></th><th>Personen</th></tr>
|
<tr class="text-center">
|
||||||
|
<th><h4 class="mb-0">{{ head.traits }}</h4></th><th>Personen</th>
|
||||||
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{% for stat in trait.by_type %}
|
{% for stat in trait.by_type %}
|
||||||
<tr>
|
<tr>
|
||||||
@@ -22,7 +24,9 @@
|
|||||||
<div>
|
<div>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr><th><h4 class="mb-0">{{ head.booking_types }}</h4></th><th>Buchungen</th><th>Dauer (ø)</th><th>Gesamt</th></tr>
|
<tr class="text-center">
|
||||||
|
<th><h4 class="mb-0">{{ head.booking_types }}</h4></th><th>Buchungen</th><th>Dauer (ø)</th><th>Gesamt</th>
|
||||||
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{% for stat in booking.by_type %}
|
{% for stat in booking.by_type %}
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
@@ -2,9 +2,7 @@ from django.db.models import Q, F, Sum, Count, ExpressionWrapper, IntegerField
|
|||||||
from django.db.models.functions import Substr
|
from django.db.models.functions import Substr
|
||||||
from django.views.generic import TemplateView
|
from django.views.generic import TemplateView
|
||||||
|
|
||||||
from app.base.models import Booking, BookingType
|
from app.base.models import Booking, BookingType, Trait, TraitMapping
|
||||||
from app.base.models.trait import Trait
|
|
||||||
from app.base.models.trait_mapping import TraitMapping
|
|
||||||
from app.base.views.login import LoginRequired
|
from app.base.views.login import LoginRequired
|
||||||
from app.base.views.model_views.base import ViewOptions
|
from app.base.views.model_views.base import ViewOptions
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user