started working on pulblic pages

This commit is contained in:
2022-04-15 20:30:24 +02:00
parent 1c84a63e66
commit 64ff431360
7 changed files with 42 additions and 14 deletions

View File

@@ -7,6 +7,7 @@
<link rel="stylesheet" href="css" />
</head>
<body id="login">
«navigation()»
«userinfo()»
<h1>Widerhall List Creation</h1>
«messages()»

17
static/templates/admin.st Normal file
View File

@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<script src="jquery"></script>
<script src="js"></script>
<link rel="stylesheet" href="css" />
</head>
<body>
«navigation()»
«userinfo()»
<h1>Widerhall Administration</h1>
«messages()»
«userlist()»
«listlist()»
</body>
</html>

View File

@@ -6,10 +6,10 @@
<script src="js"></script>
<link rel="stylesheet" href="css" />
</head>
<body>
<body id="login">
«navigation()»
«userinfo()»
«messages()»
«userlist()»
«listlist()»
<h1>Widerhall Index page</h1>
</body>
</html>

View File

@@ -0,0 +1,5 @@
<nav>
<a href="index">Home</a>
<a href="admin">Administration</a>
<a class="button" href="reload" />Reload templates</a>
</nav>

View File

@@ -7,6 +7,7 @@
<link rel="stylesheet" href="css" />
</head>
<body id="login">
«navigation()»
«userinfo()»
<h1>Widerhall user registration</h1>
«messages()»

View File

@@ -1,7 +1,7 @@
«if(data.user)»
<div class="user">
Logged in as <em>«data.user.name»</em>
<a class="button" href="reload" />Reload templates</a>
<a class="button" href="logout" />Logout</a>
</div>
«endif»