Implement more tables, add more page templates, initial working db example

This commit is contained in:
2026-01-14 00:00:12 +02:00
parent bcbbef1a82
commit 1ecbdde2c0
41 changed files with 583 additions and 147 deletions

View File

@@ -3,7 +3,8 @@
<head>
<meta charset="utf-8">
<title>{{ self.title() }}</title>
<link rel="stylesheet" href="/static/index.css">
<link rel="stylesheet" href="/static/base.css">
{% block headers %}{% endblock %}
</head>
<body>
{% include "header.html" %}

View File

@@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block headers %}
{% endblock %}
{% block content %}
Hewwo wowld!!!!
{% endblock %}

View File

@@ -0,0 +1,31 @@
{% extends "base.html" %}
{% block headers %}
{% endblock %}
{% block content %}
<table>
<tr>
<td>First Name</td>
<td>Last Name</td>
<td>Address</td>
<td>Number</td>
<td>Email</td>
</tr>
{% for client in clients %}
<tr>
<td>{{ client.first_name }}</td>
<td>{{ client.last_name }}</td>
<td>
{{ client.country}}
{{ client.city}}
{{ client.state}}
{{ client.address_line}}
{{ client.house_number}}
{{ client.postal_code}}
</td>
<td>{{ client.phone_number }}</td>
<td>{{ client.email }}</td>
</tr>
{% endfor %}
</table>
{% endblock %}

View File

@@ -1,5 +1,10 @@
{% extends "base.html" %}
{% block headers %}
{% endblock %}
{% block content %}
A server error happened: {{ error }}
{% endblock %}

View File

@@ -1,5 +1,10 @@
{% extends "base.html" %}
{% block headers %}
{% endblock %}
{% block content %}
Hewo world

View File

@@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block headers %}
{% endblock %}
{% block content %}
Hewwo wowld!!!!
{% endblock %}

View File

@@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block headers %}
{% endblock %}
{% block content %}
Hewwo wowld!!!!
{% endblock %}

View File

@@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block headers %}
{% endblock %}
{% block content %}
Hewwo wowld!!!!
{% endblock %}

View File

@@ -1,5 +1,9 @@
{% extends "base.html" %}
{% block headers %}
<link rel="stylesheet" href="/static/login.css">
{% endblock %}
{% block content %}
<form class="login-form" action_url="/login" method="POST">

View File

@@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block headers %}
{% endblock %}
{% block content %}
Hewwo wowld!!!!
{% endblock %}

View File

@@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block headers %}
{% endblock %}
{% block content %}
Hewwo wowld!!!!
{% endblock %}

View File

@@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block headers %}
{% endblock %}
{% block content %}
Hewwo wowld!!!!
{% endblock %}