fix: text-center thead

This commit is contained in:
relikd
2023-06-02 18:29:13 +02:00
parent 62f01554b8
commit 3e85312bd3
2 changed files with 7 additions and 5 deletions

View File

@@ -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>

View File

@@ -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