Compare commits
5 Commits
22e1eb3c0c
...
2f9bb8d43b
| Author | SHA1 | Date |
|---|---|---|
|
|
2f9bb8d43b | |
|
|
a51f3bef43 | |
|
|
24e43d8c79 | |
|
|
28b7a99827 | |
|
|
8d297114c6 |
|
|
@ -29,11 +29,11 @@ def load_config(request):
|
|||
'Wyniki II Ligi': SecondLeague.objects.all(),
|
||||
'Wyniki III Ligi': ThirdLeague.objects.all()
|
||||
},
|
||||
'calendars': Calendar.objects.all(),
|
||||
'calendars': Calendar.objects.filter(published=True),
|
||||
'gpb': GrandPrixB.load(),
|
||||
'tournaments': Tournament.objects.filter(published=True),
|
||||
'memberships': Membership.objects.filter(published=True),
|
||||
'youth': Youth.objects.all(),
|
||||
'mbkb': MBKB.objects.all(),
|
||||
'youth': Youth.objects.filter(published=True),
|
||||
'mbkb': MBKB.objects.filter(published=True),
|
||||
'atu': Atu.load()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,13 +34,13 @@
|
|||
|
||||
<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">
|
||||
<div
|
||||
class="m-4 container flex flex-col lg:flex-row items-center lg:items-start justify-around mx-auto"
|
||||
<nav
|
||||
class="m-4 container flex flex-col lg:flex-row items-center lg:items-start justify-center mx-auto"
|
||||
>
|
||||
<div class="self-center">
|
||||
<img class="max-h-[200px]" src="{% static 'podlzbs.jpg' %}" alt="" />
|
||||
</div>
|
||||
<div class="flex flex-col lg:self-end">
|
||||
<div class="flex flex-col lg:self-end w-full">
|
||||
<div class="mb-4 mx-auto p-2 text-center">
|
||||
<h1>
|
||||
Podlaski Związek <br />
|
||||
|
|
@ -48,45 +48,39 @@
|
|||
</h1>
|
||||
</div>
|
||||
{% if nav %}
|
||||
<nav>
|
||||
<ul
|
||||
class="flex flex-wrap justify-center lg:items-end gap-3 text-[15px] leading-5 m-2"
|
||||
>
|
||||
{% for button in nav %}
|
||||
<li>
|
||||
<a
|
||||
class="nbutton home {% if button.href == '/' %}{{ home }}{% elif button.href in request.path %}active{% endif %}"
|
||||
href="{{ button.href }}"
|
||||
target="{% if button.blank %}_blank{% else %}_self{% endif %}"
|
||||
>{{ button.title }}</a
|
||||
>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if uppernav %}
|
||||
<nav>
|
||||
<ul
|
||||
class="flex flex-wrap justify-center lg:items-end gap-3 text-[15px] leading-5 m-2"
|
||||
class="flex flex-wrap justify-center lg:items-end gap-3 text-[15px] leading-5 my-2"
|
||||
>
|
||||
{% for button in uppernav %}
|
||||
<li title="{{ button.title }}">
|
||||
{% for button in nav %}
|
||||
<li>
|
||||
<a
|
||||
class="nbutton home {% if button.href == '/' %}{{ home }}{% elif button.href in request.path %}active{% endif %}"
|
||||
href="{{ button.href }}"
|
||||
target="{% if button.blank %}_blank{% else %}_self{% endif %}"
|
||||
><img
|
||||
class="max-h-12"
|
||||
src="{{ button.photo.url }}"
|
||||
alt="{{ button.title }}"
|
||||
/></a>
|
||||
>{{ button.title }}</a
|
||||
>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if uppernav %}
|
||||
<ul class="flex flex-wrap justify-center lg:w-40 gap-3 lg:m-0 mt-2">
|
||||
{% for button in uppernav %}
|
||||
<li title="{{ button.title }}">
|
||||
<a
|
||||
href="{{ button.href }}"
|
||||
target="{% if button.blank %}_blank{% else %}_self{% endif %}"
|
||||
><img
|
||||
class="max-h-12"
|
||||
src="{{ button.photo.url }}"
|
||||
alt="{{ button.title }}"
|
||||
/></a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<main
|
||||
class="container xl:max-w-screen-xl mx-auto p-4 prose-img:my-1 prose-p:my-[0.3em]"
|
||||
|
|
|
|||
|
|
@ -4,9 +4,7 @@
|
|||
<!---->
|
||||
{% load static tailwind_tags wysiwyg %} {% block content %}
|
||||
<div class="flex flex-col items-center gap-4">
|
||||
<article
|
||||
class="prose w-full max-w-screen-md bg-white rounded-md shadow-md p-4"
|
||||
>
|
||||
<article class="prose w-full max-w-screen-md p-4">
|
||||
{% if focus.show_title %}
|
||||
<h1 class="font-medium text-center mb-2">{{ focus.title }}</h1>
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -4,9 +4,7 @@
|
|||
<!---->
|
||||
{% load static tailwind_tags wysiwyg %} {% block content %}
|
||||
<div class="flex flex-col items-center gap-4">
|
||||
<article
|
||||
class="prose w-full max-w-screen-md bg-white rounded-md shadow-md p-4"
|
||||
>
|
||||
<article class="w-full max-w-screen-lg p-4">
|
||||
{% if focus.show_title %}
|
||||
<h1 class="font-medium text-center mb-2">{{ focus.title }}</h1>
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -5,9 +5,7 @@
|
|||
{% load static tailwind_tags wysiwyg %} {% block content %}
|
||||
<div class="flex flex-col items-center gap-4">
|
||||
{% for article in youth %}
|
||||
<article
|
||||
class="prose w-full max-w-screen-md bg-white rounded-md shadow-md p-4"
|
||||
>
|
||||
<article class="w-full max-w-screen-lg p-4">
|
||||
{% if article.show_title %}
|
||||
<h1 class="font-medium text-center mb-2">{{ article.title }}</h1>
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,18 @@
|
|||
# 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'),
|
||||
),
|
||||
]
|
||||
|
|
@ -5,6 +5,7 @@ from tinymce.models import HTMLField
|
|||
|
||||
|
||||
class Calendar(models.Model):
|
||||
published = models.BooleanField('Kalendarz opublikowany', default=True)
|
||||
year = models.IntegerField('Rok', primary_key=True)
|
||||
content = HTMLField('Kalendarz', default='', blank=True)
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,18 @@
|
|||
# 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'),
|
||||
),
|
||||
]
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
# 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'),
|
||||
),
|
||||
]
|
||||
|
|
@ -1270,6 +1270,10 @@ select {
|
|||
margin: 0.5rem;
|
||||
}
|
||||
|
||||
.m-0 {
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.mx-auto {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
|
@ -1280,6 +1284,11 @@ select {
|
|||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.my-2 {
|
||||
margin-top: 0.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.mb-2 {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
|
@ -1304,10 +1313,6 @@ select {
|
|||
margin-bottom: auto;
|
||||
}
|
||||
|
||||
.mt-0 {
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
.mt-2 {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
|
@ -1348,6 +1353,16 @@ select {
|
|||
height: 100vh;
|
||||
}
|
||||
|
||||
.h-12 {
|
||||
height: 3rem;
|
||||
}
|
||||
|
||||
.h-max {
|
||||
height: -webkit-max-content;
|
||||
height: -moz-max-content;
|
||||
height: max-content;
|
||||
}
|
||||
|
||||
.max-h-\[200px\] {
|
||||
max-height: 200px;
|
||||
}
|
||||
|
|
@ -1360,6 +1375,24 @@ select {
|
|||
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 {
|
||||
width: 100%;
|
||||
}
|
||||
|
|
@ -1368,6 +1401,10 @@ select {
|
|||
width: 9rem;
|
||||
}
|
||||
|
||||
.w-auto {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.max-w-screen-lg {
|
||||
max-width: 1024px;
|
||||
}
|
||||
|
|
@ -1384,6 +1421,14 @@ select {
|
|||
max-width: 768px;
|
||||
}
|
||||
|
||||
.shrink {
|
||||
flex-shrink: 1;
|
||||
}
|
||||
|
||||
.grow {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.basis-1\/2 {
|
||||
flex-basis: 50%;
|
||||
}
|
||||
|
|
@ -1400,6 +1445,10 @@ select {
|
|||
resize: both;
|
||||
}
|
||||
|
||||
.grid-cols-2 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.flex-col {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
|
@ -1589,6 +1638,11 @@ select {
|
|||
line-height: 1;
|
||||
}
|
||||
|
||||
.text-sm {
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
}
|
||||
|
||||
.font-medium {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
|
@ -1621,6 +1675,14 @@ select {
|
|||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.leading-3 {
|
||||
line-height: .75rem;
|
||||
}
|
||||
|
||||
.leading-4 {
|
||||
line-height: 1rem;
|
||||
}
|
||||
|
||||
.tracking-normal {
|
||||
letter-spacing: 0em;
|
||||
}
|
||||
|
|
@ -1799,20 +1861,36 @@ h4 {
|
|||
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"] *))) {
|
||||
margin-top: 0.25rem;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.lg\:m-0 {
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.lg\:w-screen {
|
||||
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 {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1270,6 +1270,10 @@ select {
|
|||
margin: 0.5rem;
|
||||
}
|
||||
|
||||
.m-0 {
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.mx-auto {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
|
@ -1280,6 +1284,11 @@ select {
|
|||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.my-2 {
|
||||
margin-top: 0.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.mb-2 {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
|
@ -1344,6 +1353,16 @@ select {
|
|||
height: 100vh;
|
||||
}
|
||||
|
||||
.h-12 {
|
||||
height: 3rem;
|
||||
}
|
||||
|
||||
.h-max {
|
||||
height: -webkit-max-content;
|
||||
height: -moz-max-content;
|
||||
height: max-content;
|
||||
}
|
||||
|
||||
.max-h-\[200px\] {
|
||||
max-height: 200px;
|
||||
}
|
||||
|
|
@ -1356,6 +1375,24 @@ select {
|
|||
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 {
|
||||
width: 100%;
|
||||
}
|
||||
|
|
@ -1364,6 +1401,10 @@ select {
|
|||
width: 9rem;
|
||||
}
|
||||
|
||||
.w-auto {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.max-w-screen-lg {
|
||||
max-width: 1024px;
|
||||
}
|
||||
|
|
@ -1380,6 +1421,14 @@ select {
|
|||
max-width: 768px;
|
||||
}
|
||||
|
||||
.shrink {
|
||||
flex-shrink: 1;
|
||||
}
|
||||
|
||||
.grow {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.basis-1\/2 {
|
||||
flex-basis: 50%;
|
||||
}
|
||||
|
|
@ -1396,6 +1445,10 @@ select {
|
|||
resize: both;
|
||||
}
|
||||
|
||||
.grid-cols-2 {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.flex-col {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
|
@ -1585,6 +1638,11 @@ select {
|
|||
line-height: 1;
|
||||
}
|
||||
|
||||
.text-sm {
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.25rem;
|
||||
}
|
||||
|
||||
.font-medium {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
|
@ -1617,6 +1675,14 @@ select {
|
|||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.leading-3 {
|
||||
line-height: .75rem;
|
||||
}
|
||||
|
||||
.leading-4 {
|
||||
line-height: 1rem;
|
||||
}
|
||||
|
||||
.tracking-normal {
|
||||
letter-spacing: 0em;
|
||||
}
|
||||
|
|
@ -1801,10 +1867,30 @@ h4 {
|
|||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.lg\:m-0 {
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.lg\:w-screen {
|
||||
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 {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue