Zadanie 4 - testy
This commit is contained in:
6
src/templates/about.html
Normal file
6
src/templates/about.html
Normal 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 %}
|
||||
14
src/templates/contact.html
Normal file
14
src/templates/contact.html
Normal 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 %}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user