Skip to content
Snippets Groups Projects
Commit 266824b4 authored by jan.bednarik's avatar jan.bednarik
Browse files

donate: Coalition project design

parent f4d29a5f
No related branches found
No related tags found
2 merge requests!258Test,!257Volby
Pipeline #3713 passed
# Generated by Django 3.2.2 on 2021-05-17 22:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("donate", "0013_auto_20210115_2248"),
]
operations = [
migrations.AddField(
model_name="donateprojectpage",
name="coalition_design",
field=models.BooleanField(default=False, verbose_name="koaliční design"),
),
]
......@@ -415,6 +415,7 @@ class DonateProjectPage(
)
expected_amount = models.IntegerField("očekávaná částka", blank=True, null=True)
donated_amount = models.IntegerField("vybraná částka", blank=True, null=True)
coalition_design = models.BooleanField("koaliční design", default=False)
# we will use photo as search image
search_image = None
......@@ -462,6 +463,7 @@ class DonateProjectPage(
],
"nastavení darů",
),
FieldPanel("coalition_design"),
CommentPanel(),
]
......@@ -527,6 +529,11 @@ class DonateProjectPage(
)
return context
def get_template(self, request, *args, **kwargs):
if self.coalition_design:
return "donate/donate_project_page_coalition.html"
return super().get_template(request, *args, **kwargs)
class DonateTextPage(Page, SubpageMixin, MetadataPageMixin):
### FIELDS
......
......@@ -37,6 +37,8 @@
<link href="{% static "donate/assets/css/style.css" %}" rel="stylesheet">
<link href="{% static "donate/assets/css/icons.css" %}" rel="stylesheet">
{% block extra_head %}{% endblock %}
{% if page.root_page.matomo_id %}
{% include "shared/matomo_snippet.html" with matomo_id=page.root_page.matomo_id %}
{% endif %}
......@@ -53,6 +55,7 @@
{% endif %}
<!-- HEADER -->
{% block header %}
<div class="pre-navbar d-none d-lg-flex" style="background:black;">
<div class="container d-flex justify-content-end">
<a href="https://www.pirati.cz/" class="header_link header_link--desktop mr-4 py-2" target="_blank" rel="noreferrer"><i class="icon-external-link mr-2" title="Ikona odkazu"></i>www.pirati.cz</a>
......@@ -99,11 +102,13 @@
</div><!-- /navigation -->
</div><!-- /container -->
</nav>
{% endblock %}
<!-- /HEADER -->
{% block content %}{% endblock %}
<!-- FOOTER -->
{% block footer %}
<footer id="kontakt">
<div class="footer__top">
......@@ -179,6 +184,7 @@
</footer>
<!-- /FOOTER -->
{% endblock %}
<!-- JavaScript libraries -->
<script src="{% static "shared/vendor/jquery/jquery-3.4.1.min.js" %}"></script>
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment