wizyta oraz widok księdza

This commit is contained in:
2025-06-26 15:57:42 +02:00
commit 0c6faa8bb6
39 changed files with 1465 additions and 0 deletions

View File

@ -0,0 +1,5 @@
{% extends 'parish/base.html' %}
{% block content %}
<div class="content">{{res | safe}}</div>
{% endblock %}

View File

@ -0,0 +1,45 @@
{% extends 'base.html' %}
{% load pictures %}
{% block head %}
<link href="{% img_url parish.icon file_type='png' width=512 %}" rel="icon" type="image/png" sizes="512x512" />
<link href="{% img_url parish.icon file_type='png' width=192 %}" rel="icon" type="image/png" sizes="192x192" />
<link rel="manifest" href="{% url 'manifest' parish.slug %}" />
{% endblock %}
{% block layout %}
<div class="container">
<nav class="navbar is-transparent" role="navigation" aria-label="menu">
<div class="navbar-brand is-flex is-flex-wrap-wrap is-justify-content-space-between is-flex-shrink-1">
<span class="navbar-item is-is-active is-flex-shrink-1"><span class="title is-4 is-unselectable">{{ parish.name }}</span></span>
<a role="button" class="navbar-burger" data-target="navMenu" aria-label="menu" aria-expanded="false">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div class="navbar-menu" id="navMenu">
<h5 class="navbar-end has-text-weight-bold">
<a class="navbar-item {{ announcements }}" href="{% url 'announcements' parish.slug %}">Ogłoszenia parafialne</a>
<a class="navbar-item {{ intentions }}" href="{% url 'intentions' parish.slug %}">Intencje</a>
{% if parish.channel %}
<a class="navbar-item {{ live }}" href="{% url 'live' parish.slug %}">Transmisja on-line</a>
{% endif %}
{% if parish.submissions %}
<a class="navbar-item {{ visit }}" href="{% url 'visit' parish.slug %}">Wizyta Duszpasterska</a>
{% endif %}
<a class="navbar-item is-clickable is-hidden" id="install">Zainstaluj</a>
</h5>
</div>
</nav>
<main class="section">
<div id="backgroundDesktop"></div>
{% block content %}
{% endblock %}
</main>
<div id="backgroundMobile"></div>
</div>
{% endblock %}

View File

@ -0,0 +1,5 @@
{% extends 'parish/base.html' %}
{% block content %}
<div class="content">{{ res | safe }}</div>
{% endblock %}

View File

@ -0,0 +1,14 @@
{% extends 'parish/base.html' %}
{% block content %}
<div class="is-flex-shrink-0">
<figure class="image is-16by9">
<iframe
class="has-ratio"
src="https://www.youtube-nocookie.com/embed/live_stream?channel={{parish.channel}}"
allowFullScreen
></iframe>
</figure>
</div>
{% endblock content %}

View File

@ -0,0 +1,22 @@
{% load pictures %}
{
"name": "{{ parish.name }}",
"display": "standalone",
"scope": "{% url 'parish' parish.slug %}",
"start_url": "{% url 'parish' parish.slug %}",
"icons": [
{
"src": "{% img_url parish.icon file_type="png" width=192 %}",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable any"
},
{
"src": "{% img_url parish.icon file_type="png" width=512 %}",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable any"
}
]
}

View File

@ -0,0 +1,8 @@
{% extends 'parish/base.html' %}
{% block content %}
<p class="has-text-centered">
<a class="button is-light" href="{% url 'visit_login' parish.slug %}">Zaloguj się</a>
<a class="button is-light" href="{% url 'visit_signup' parish.slug %}">Zarejestruj się</a>
</p>
{% endblock %}

View File

@ -0,0 +1,18 @@
{% extends 'parish/base.html' %}
{% load crispy_forms_tags %}
{% block content %}
<p class="is-size-3 has-text-centered">Zapisz się na wizytę duszpasterską</p>
<form method="post">
{% csrf_token %}
{{ form|crispy }}
<p class="has-text-centered">
<button type="submit" class="button is-success">Zatwierdź</button>
</p>
</form>
<form action="{% url 'visit_logout' parish.slug %}" method="post" class="is-flex is-justify-content-flex-end is-gap-2">
{% csrf_token %}
<a href="{% url 'visit_account' parish.slug %}" class="button is-info">Zmień dane konta</a>
<button type="submit" class="button is-danger">Wyloguj się</button>
</form>
{% endblock %}

View File

@ -0,0 +1,14 @@
{% extends 'parish/base.html' %}
{% load crispy_forms_tags %}
{% block content %}
<p class="is-size-2 has-text-centered">Zaloguj się</p>
<form method="post">
{% csrf_token %}
{{ form|crispy }}
<p class="has-text-centered">
<button type="submit" class="button is-success">Zaloguj się</button>
<a href="{% url 'visit' parish.slug %}" class="button is-light">Powrót</a>
</p>
</form>
{% endblock %}

View File

@ -0,0 +1,14 @@
{% extends 'parish/base.html' %}
{% load crispy_forms_tags %}
{% block content %}
<p class="is-size-2 has-text-centered">Zarejestruj się</p>
<form method="post" class="form">
{% csrf_token %}
{{ form | crispy }}
<p class="has-text-centered">
<button type="submit" class="button is-success">Zarejestruj się</button>
<a href="{% url 'visit' parish.slug %}" class="button is-light">Powrót</a>
</p>
</form>
{% endblock %}

View File

@ -0,0 +1,28 @@
{% extends 'parish/base.html' %}
{% load crispy_forms_tags %}
{% block content %}
<p class="is-size-3 has-text-centered">Twoje zgłoszenie</p>
<div class="is-size-5 has-text-centered mb-2">
<p>
<b>Imię i nazwisko:</b> {{ submission.name }}, <b>Telefon:</b> {{ submission.phone }}
</p>
<p>
<b>Adres:</b> {{ submission.street }} {{ submission.street_number }}{% if submission.apartement_number %}/{% endif %}{{ submission.apartement_number|default_if_none:'' }}
</p>
</div>
<form method="post">
{% csrf_token %}
{{ form|crispy }}
<p class="has-text-centered">
<button type="submit" class="button is-success">Wycofaj zgłoszenie</button>
</p>
</form>
<p>
<form action="{% url 'visit_logout' parish.slug %}" method="post" class="is-flex is-justify-content-flex-end">
{% csrf_token %}
<button type="submit" class="button is-danger">Wyloguj się</button>
</form>
</p>
{% endblock %}

View File

@ -0,0 +1,18 @@
{% extends 'parish/base.html' %}
{% load crispy_forms_tags %}
{% block content %}
<p class="is-size-3 has-text-centered">Zmień dane konta</p>
<form method="post">
{% csrf_token %}
{{ form|crispy }}
<p class="has-text-centered">
<button type="submit" class="button is-success">Zatwierdź</button>
<a href="{% url 'visit' parish.slug %}" class="button is-secondary">Powrót</a>
</p>
</form>
{% comment %} <form action="{% url 'visit_logout' parish.slug %}" method="post" class="is-flex is-justify-content-flex-end">
{% csrf_token %}
<button type="submit" class="button is-danger">Wyloguj się</button>
</form> {% endcomment %}
{% endblock %}