Compare commits

..

No commits in common. "2f9bb8d43bdda57974b7bc7ed4922fe5ecade874" and "22e1eb3c0c73cef1b6071ca66b017e34e3ade580" have entirely different histories.

11 changed files with 58 additions and 265 deletions

View File

@ -29,11 +29,11 @@ def load_config(request):
'Wyniki II Ligi': SecondLeague.objects.all(), 'Wyniki II Ligi': SecondLeague.objects.all(),
'Wyniki III Ligi': ThirdLeague.objects.all() 'Wyniki III Ligi': ThirdLeague.objects.all()
}, },
'calendars': Calendar.objects.filter(published=True), 'calendars': Calendar.objects.all(),
'gpb': GrandPrixB.load(), 'gpb': GrandPrixB.load(),
'tournaments': Tournament.objects.filter(published=True), 'tournaments': Tournament.objects.filter(published=True),
'memberships': Membership.objects.filter(published=True), 'memberships': Membership.objects.filter(published=True),
'youth': Youth.objects.filter(published=True), 'youth': Youth.objects.all(),
'mbkb': MBKB.objects.filter(published=True), 'mbkb': MBKB.objects.all(),
'atu': Atu.load() 'atu': Atu.load()
} }

View File

@ -34,13 +34,13 @@
<body class="antialiased flex flex-col gap-4 bg-stone-50"> <body class="antialiased flex flex-col gap-4 bg-stone-50">
<header class="w-full bg-white shadow-md border-b border-slate-400 pb-1"> <header class="w-full bg-white shadow-md border-b border-slate-400 pb-1">
<nav <div
class="m-4 container flex flex-col lg:flex-row items-center lg:items-start justify-center mx-auto" class="m-4 container flex flex-col lg:flex-row items-center lg:items-start justify-around mx-auto"
> >
<div class="self-center"> <div class="self-center">
<img class="max-h-[200px]" src="{% static 'podlzbs.jpg' %}" alt="" /> <img class="max-h-[200px]" src="{% static 'podlzbs.jpg' %}" alt="" />
</div> </div>
<div class="flex flex-col lg:self-end w-full"> <div class="flex flex-col lg:self-end">
<div class="mb-4 mx-auto p-2 text-center"> <div class="mb-4 mx-auto p-2 text-center">
<h1> <h1>
Podlaski Związek <br /> Podlaski Związek <br />
@ -48,39 +48,45 @@
</h1> </h1>
</div> </div>
{% if nav %} {% if nav %}
<ul <nav>
class="flex flex-wrap justify-center lg:items-end gap-3 text-[15px] leading-5 my-2" <ul
> class="flex flex-wrap justify-center lg:items-end gap-3 text-[15px] leading-5 m-2"
{% for button in nav %} >
<li> {% for button in nav %}
<a <li>
class="nbutton home {% if button.href == '/' %}{{ home }}{% elif button.href in request.path %}active{% endif %}" <a
href="{{ button.href }}" class="nbutton home {% if button.href == '/' %}{{ home }}{% elif button.href in request.path %}active{% endif %}"
target="{% if button.blank %}_blank{% else %}_self{% endif %}" href="{{ button.href }}"
>{{ button.title }}</a target="{% if button.blank %}_blank{% else %}_self{% endif %}"
> >{{ button.title }}</a
</li> >
{% endfor %} </li>
</ul> {% endfor %}
</ul>
</nav>
{% endif %} {% endif %}
</div> </div>
{% if uppernav %} {% if uppernav %}
<ul class="flex flex-wrap justify-center lg:w-40 gap-3 lg:m-0 mt-2"> <nav>
{% for button in uppernav %} <ul
<li title="{{ button.title }}"> class="flex flex-wrap justify-center lg:items-end gap-3 text-[15px] leading-5 m-2"
<a >
href="{{ button.href }}" {% for button in uppernav %}
target="{% if button.blank %}_blank{% else %}_self{% endif %}" <li title="{{ button.title }}">
><img <a
class="max-h-12" href="{{ button.href }}"
src="{{ button.photo.url }}" target="{% if button.blank %}_blank{% else %}_self{% endif %}"
alt="{{ button.title }}" ><img
/></a> class="max-h-12"
</li> src="{{ button.photo.url }}"
{% endfor %} alt="{{ button.title }}"
</ul> /></a>
</li>
{% endfor %}
</ul>
</nav>
{% endif %} {% endif %}
</nav> </div>
</header> </header>
<main <main
class="container xl:max-w-screen-xl mx-auto p-4 prose-img:my-1 prose-p:my-[0.3em]" class="container xl:max-w-screen-xl mx-auto p-4 prose-img:my-1 prose-p:my-[0.3em]"

View File

@ -4,7 +4,9 @@
<!----> <!---->
{% load static tailwind_tags wysiwyg %} {% block content %} {% load static tailwind_tags wysiwyg %} {% block content %}
<div class="flex flex-col items-center gap-4"> <div class="flex flex-col items-center gap-4">
<article class="prose w-full max-w-screen-md p-4"> <article
class="prose w-full max-w-screen-md bg-white rounded-md shadow-md p-4"
>
{% if focus.show_title %} {% if focus.show_title %}
<h1 class="font-medium text-center mb-2">{{ focus.title }}</h1> <h1 class="font-medium text-center mb-2">{{ focus.title }}</h1>
{% endif %} {% endif %}

View File

@ -4,7 +4,9 @@
<!----> <!---->
{% load static tailwind_tags wysiwyg %} {% block content %} {% load static tailwind_tags wysiwyg %} {% block content %}
<div class="flex flex-col items-center gap-4"> <div class="flex flex-col items-center gap-4">
<article class="w-full max-w-screen-lg p-4"> <article
class="prose w-full max-w-screen-md bg-white rounded-md shadow-md p-4"
>
{% if focus.show_title %} {% if focus.show_title %}
<h1 class="font-medium text-center mb-2">{{ focus.title }}</h1> <h1 class="font-medium text-center mb-2">{{ focus.title }}</h1>
{% endif %} {% endif %}

View File

@ -5,7 +5,9 @@
{% load static tailwind_tags wysiwyg %} {% block content %} {% load static tailwind_tags wysiwyg %} {% block content %}
<div class="flex flex-col items-center gap-4"> <div class="flex flex-col items-center gap-4">
{% for article in youth %} {% for article in youth %}
<article class="w-full max-w-screen-lg p-4"> <article
class="prose w-full max-w-screen-md bg-white rounded-md shadow-md p-4"
>
{% if article.show_title %} {% if article.show_title %}
<h1 class="font-medium text-center mb-2">{{ article.title }}</h1> <h1 class="font-medium text-center mb-2">{{ article.title }}</h1>
{% endif %} {% endif %}

View File

@ -1,18 +0,0 @@
# Generated by Django 4.0.5 on 2022-08-19 21:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('calendar', '0002_alter_calendar_content'),
]
operations = [
migrations.AddField(
model_name='calendar',
name='published',
field=models.BooleanField(default=True, verbose_name='Kalendarz opublikowany'),
),
]

View File

@ -5,7 +5,6 @@ from tinymce.models import HTMLField
class Calendar(models.Model): class Calendar(models.Model):
published = models.BooleanField('Kalendarz opublikowany', default=True)
year = models.IntegerField('Rok', primary_key=True) year = models.IntegerField('Rok', primary_key=True)
content = HTMLField('Kalendarz', default='', blank=True) content = HTMLField('Kalendarz', default='', blank=True)

View File

@ -1,18 +0,0 @@
# Generated by Django 4.0.5 on 2022-08-19 21:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tournaments', '0006_remove_tournament_link_remove_tournament_link_title_and_more'),
]
operations = [
migrations.AlterField(
model_name='tournament',
name='buttons',
field=models.TextField(blank=True, default='', help_text='Tutaj można wpisać dowolną ilość przycisków w następującym formacie:<br /> <code><br /> tekst1 -> link<br /> teskt2 | link<br /> ...<br /> </code><br /> Symbol <code>-></code> oznacza, że link będzie otwarty w nowej karcie<br /> Symbol <code>|</code> oznacza, że link będzie otwarty w tej samej karcie<br /> Na przykład:<br /> <code><br /> pzbs -> https://pzbs.pl<br /> fotogaleria | https://galeria.podlaskizbs.pl<br /> cezar -> https://www.msc.com.pl/cezar<br /> </code><br /> PZBS i Cezar zostaną otwarte w nowej karcie<br /> <b>UWAGA !!</b><br /> Klikając na zdjęcie zawsze zostaniemy przekierowani na pierwszy podany link<br /> Gdy nie podamy tekstu przyciku, nie pokaże on się, można to wykorzystać w taki sposób:<br /> <code><br /> -> link do wyników<br /> fotogaleria -> link do fotogalerii<br /> </code><br /> Wtedy pokaże się <b>tylko przycisk fotogalerii</b>, a zdjęcie przekieruje nas do wyników!<br /> ', verbose_name='Przyciski'),
),
]

View File

@ -1,18 +0,0 @@
# Generated by Django 4.0.5 on 2022-08-19 21:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('youth', '0003_youth_buttons'),
]
operations = [
migrations.AlterField(
model_name='youth',
name='buttons',
field=models.TextField(blank=True, default='', help_text='Tutaj można wpisać dowolną ilość przycisków w następującym formacie:<br /> <code><br /> tekst1 -> link<br /> teskt2 | link<br /> ...<br /> </code><br /> Symbol <code>-></code> oznacza, że link będzie otwarty w nowej karcie<br /> Symbol <code>|</code> oznacza, że link będzie otwarty w tej samej karcie<br /> Na przykład:<br /> <code><br /> pzbs -> https://pzbs.pl<br /> fotogaleria | https://galeria.podlaskizbs.pl<br /> cezar -> https://www.msc.com.pl/cezar<br /> </code><br /> PZBS i Cezar zostaną otwarte w nowej karcie<br /> ', verbose_name='Przyciski'),
),
]

View File

@ -1270,10 +1270,6 @@ select {
margin: 0.5rem; margin: 0.5rem;
} }
.m-0 {
margin: 0px;
}
.mx-auto { .mx-auto {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@ -1284,11 +1280,6 @@ select {
margin-bottom: 0px; margin-bottom: 0px;
} }
.my-2 {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}
.mb-2 { .mb-2 {
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
} }
@ -1313,6 +1304,10 @@ select {
margin-bottom: auto; margin-bottom: auto;
} }
.mt-0 {
margin-top: 0px;
}
.mt-2 { .mt-2 {
margin-top: 0.5rem; margin-top: 0.5rem;
} }
@ -1353,16 +1348,6 @@ select {
height: 100vh; height: 100vh;
} }
.h-12 {
height: 3rem;
}
.h-max {
height: -webkit-max-content;
height: -moz-max-content;
height: max-content;
}
.max-h-\[200px\] { .max-h-\[200px\] {
max-height: 200px; max-height: 200px;
} }
@ -1375,24 +1360,6 @@ select {
max-height: 18rem; max-height: 18rem;
} }
.min-h-min {
min-height: -webkit-min-content;
min-height: -moz-min-content;
min-height: min-content;
}
.min-h-fit {
min-height: -webkit-fit-content;
min-height: -moz-fit-content;
min-height: fit-content;
}
.min-h-max {
min-height: -webkit-max-content;
min-height: -moz-max-content;
min-height: max-content;
}
.w-full { .w-full {
width: 100%; width: 100%;
} }
@ -1401,10 +1368,6 @@ select {
width: 9rem; width: 9rem;
} }
.w-auto {
width: auto;
}
.max-w-screen-lg { .max-w-screen-lg {
max-width: 1024px; max-width: 1024px;
} }
@ -1421,14 +1384,6 @@ select {
max-width: 768px; max-width: 768px;
} }
.shrink {
flex-shrink: 1;
}
.grow {
flex-grow: 1;
}
.basis-1\/2 { .basis-1\/2 {
flex-basis: 50%; flex-basis: 50%;
} }
@ -1445,10 +1400,6 @@ select {
resize: both; resize: both;
} }
.grid-cols-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.flex-col { .flex-col {
flex-direction: column; flex-direction: column;
} }
@ -1638,11 +1589,6 @@ select {
line-height: 1; line-height: 1;
} }
.text-sm {
font-size: 0.875rem;
line-height: 1.25rem;
}
.font-medium { .font-medium {
font-weight: 500; font-weight: 500;
} }
@ -1675,14 +1621,6 @@ select {
line-height: 1.5; line-height: 1.5;
} }
.leading-3 {
line-height: .75rem;
}
.leading-4 {
line-height: 1rem;
}
.tracking-normal { .tracking-normal {
letter-spacing: 0em; letter-spacing: 0em;
} }
@ -1861,36 +1799,20 @@ h4 {
margin-bottom: 0.3em; margin-bottom: 0.3em;
} }
.prose-figure\:mt-0 :is(:where(figure):not(:where([class~="not-prose"] *))) {
margin-top: 0px;
}
.prose-img\:my-1 :is(:where(img):not(:where([class~="not-prose"] *))) { .prose-img\:my-1 :is(:where(img):not(:where([class~="not-prose"] *))) {
margin-top: 0.25rem; margin-top: 0.25rem;
margin-bottom: 0.25rem; margin-bottom: 0.25rem;
} }
@media (min-width: 1024px) { @media (min-width: 1024px) {
.lg\:m-0 {
margin: 0px;
}
.lg\:w-screen { .lg\:w-screen {
width: 100vw; width: 100vw;
} }
.lg\:w-10 {
width: 2.5rem;
}
.lg\:w-40 {
width: 10rem;
}
.lg\:max-w-md {
max-width: 28rem;
}
.lg\:max-w-xs {
max-width: 20rem;
}
.lg\:flex-row { .lg\:flex-row {
flex-direction: row; flex-direction: row;
} }

View File

@ -1270,10 +1270,6 @@ select {
margin: 0.5rem; margin: 0.5rem;
} }
.m-0 {
margin: 0px;
}
.mx-auto { .mx-auto {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@ -1284,11 +1280,6 @@ select {
margin-bottom: 0px; margin-bottom: 0px;
} }
.my-2 {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}
.mb-2 { .mb-2 {
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
} }
@ -1353,16 +1344,6 @@ select {
height: 100vh; height: 100vh;
} }
.h-12 {
height: 3rem;
}
.h-max {
height: -webkit-max-content;
height: -moz-max-content;
height: max-content;
}
.max-h-\[200px\] { .max-h-\[200px\] {
max-height: 200px; max-height: 200px;
} }
@ -1375,24 +1356,6 @@ select {
max-height: 18rem; max-height: 18rem;
} }
.min-h-min {
min-height: -webkit-min-content;
min-height: -moz-min-content;
min-height: min-content;
}
.min-h-fit {
min-height: -webkit-fit-content;
min-height: -moz-fit-content;
min-height: fit-content;
}
.min-h-max {
min-height: -webkit-max-content;
min-height: -moz-max-content;
min-height: max-content;
}
.w-full { .w-full {
width: 100%; width: 100%;
} }
@ -1401,10 +1364,6 @@ select {
width: 9rem; width: 9rem;
} }
.w-auto {
width: auto;
}
.max-w-screen-lg { .max-w-screen-lg {
max-width: 1024px; max-width: 1024px;
} }
@ -1421,14 +1380,6 @@ select {
max-width: 768px; max-width: 768px;
} }
.shrink {
flex-shrink: 1;
}
.grow {
flex-grow: 1;
}
.basis-1\/2 { .basis-1\/2 {
flex-basis: 50%; flex-basis: 50%;
} }
@ -1445,10 +1396,6 @@ select {
resize: both; resize: both;
} }
.grid-cols-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.flex-col { .flex-col {
flex-direction: column; flex-direction: column;
} }
@ -1638,11 +1585,6 @@ select {
line-height: 1; line-height: 1;
} }
.text-sm {
font-size: 0.875rem;
line-height: 1.25rem;
}
.font-medium { .font-medium {
font-weight: 500; font-weight: 500;
} }
@ -1675,14 +1617,6 @@ select {
line-height: 1.5; line-height: 1.5;
} }
.leading-3 {
line-height: .75rem;
}
.leading-4 {
line-height: 1rem;
}
.tracking-normal { .tracking-normal {
letter-spacing: 0em; letter-spacing: 0em;
} }
@ -1867,30 +1801,10 @@ h4 {
} }
@media (min-width: 1024px) { @media (min-width: 1024px) {
.lg\:m-0 {
margin: 0px;
}
.lg\:w-screen { .lg\:w-screen {
width: 100vw; width: 100vw;
} }
.lg\:w-10 {
width: 2.5rem;
}
.lg\:w-40 {
width: 10rem;
}
.lg\:max-w-md {
max-width: 28rem;
}
.lg\:max-w-xs {
max-width: 20rem;
}
.lg\:flex-row { .lg\:flex-row {
flex-direction: row; flex-direction: row;
} }