Zadanie 4 - testy

This commit is contained in:
Mikołaj Kaczmarek
2025-06-15 22:55:35 +02:00
parent ff6b595652
commit 48450702a9
9 changed files with 354 additions and 4 deletions

6
src/templates/about.html Normal file
View File

@@ -0,0 +1,6 @@
{% extends "index.html" %}
{% block content %}
<h2>O projekcie</h2>
<p>To jest przykładowa aplikacja stworzona na zajęcia z programowania w Pythonie z użyciem frameworka Flask.
Mikołaj Kaczmarek, 84985 / 124942</p>
{% endblock %}

View File

@@ -0,0 +1,14 @@
{% extends "index.html" %}
{% block content %}
<h2>Kontakt</h2>
<form method="post">
<label for="name">Imię:</label><br>
<input type="text" id="name" name="name" required><br>
<label for="message">Wiadomość:</label><br>
<textarea id="message" name="message" required></textarea><br>
<button type="submit">Wyślij</button>
</form>
{% if success %}
<p style="color:green;">Dziękujemy za kontakt!</p>
{% endif %}
{% endblock %}

View File

@@ -28,6 +28,9 @@
</li>
<li><a href="{{ url_for('zaloguj') }}">Zaloguj (test sesji)</a></li>
<li><a href="{{ url_for('wyloguj') }}">Wyloguj (test sesji)</a></li>
<li><a href="{{ url_for('about') }}">O projekcie</a></li>
<li><a href="{{ url_for('contact') }}">Kontakt</a></li>
</ul>
{% block content %}{% endblock %}
</body>
</html>