wizyta oraz widok księdza
This commit is contained in:
8
backend/templates/parish/visit/auth.html
Normal file
8
backend/templates/parish/visit/auth.html
Normal 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 %}
|
18
backend/templates/parish/visit/form.html
Normal file
18
backend/templates/parish/visit/form.html
Normal 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 %}
|
14
backend/templates/parish/visit/login.html
Normal file
14
backend/templates/parish/visit/login.html
Normal 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 %}
|
14
backend/templates/parish/visit/signup.html
Normal file
14
backend/templates/parish/visit/signup.html
Normal 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 %}
|
28
backend/templates/parish/visit/submitted.html
Normal file
28
backend/templates/parish/visit/submitted.html
Normal 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 %}
|
18
backend/templates/parish/visit/update.html
Normal file
18
backend/templates/parish/visit/update.html
Normal 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 %}
|
Reference in New Issue
Block a user