diff --git a/.prettierignore b/.prettierignore index ce02aa4..a5aef14 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,2 @@ # **/templates/**/*.html -base.html \ No newline at end of file +# base.html \ No newline at end of file diff --git a/.worktime b/.worktime index 0cc171a..cd3c49d 100644 --- a/.worktime +++ b/.worktime @@ -7,4 +7,5 @@ 15.07.2022 - 3h 24.07.2022 - 3h 30 mins 25.07.2022 - 3h 30 mins -26.07.2022 - 1h 30 mins \ No newline at end of file +26.07.2022 - 1h 30 mins +27.07.2022 - 4h \ No newline at end of file diff --git a/core/admin.py b/core/admin.py index 464841f..6f406f9 100644 --- a/core/admin.py +++ b/core/admin.py @@ -24,6 +24,7 @@ apps = [ 'gpb', 'tournaments', 'membership', + 'youth', 'atu', 'core' ] diff --git a/core/context_processors.py b/core/context_processors.py index 20e3faa..0159074 100644 --- a/core/context_processors.py +++ b/core/context_processors.py @@ -1,6 +1,36 @@ + from .models import * +from db.main.models import * +from db.administration.models import * +from db.league.models import * +from db.calendar.models import * +from db.gpb.models import * +from db.tournaments.models import * +from db.membership.models import * +from db.youth.models import * +from db.atu.models import * def load_config(request): - config = {'nav': Button.objects.all()} - return {'config': config} + return { + 'nav': Button.objects.all(), + 'gpw': GrandPrixW.load(), + 'posts': Post.objects.all(), + 'czlonkowie': Member.objects.all(), + 'statut': Statute.objects.first(), + 'ogloszenia': Announcement.objects.all(), + 'protokoly': Protocol.objects.all(), + 'regulaminy': Regulation.objects.all(), + 'rodos': RODO.objects.all(), + 'leagues': { + 'Wyniki I Ligi': FirstLeague.objects.all(), + 'Wyniki II Ligi': SecondLeague.objects.all(), + 'Wyniki III Ligi': ThirdLeague.objects.all() + }, + 'calendars': Calendar.objects.all(), + 'gpb': GrandPrixB.load(), + 'tournaments': Tournament.objects.all(), + 'memberships': Membership.objects.all(), + 'youth': Youth.load(), + 'atu': Atu.load() + } diff --git a/core/static/labs.jpg b/core/static/labs.jpg new file mode 100644 index 0000000..a20896e Binary files /dev/null and b/core/static/labs.jpg differ diff --git a/core/static/podlzbs.jpg b/core/static/podlzbs.jpg new file mode 100644 index 0000000..9f5bf08 Binary files /dev/null and b/core/static/podlzbs.jpg differ diff --git a/core/templates/administration.html b/core/templates/administration.html index 28c9ec0..5a3fc5f 100644 --- a/core/templates/administration.html +++ b/core/templates/administration.html @@ -6,63 +6,77 @@

+