something

This commit is contained in:
2021-09-08 21:41:34 -04:00
parent eab9749c72
commit 583b572b09
9 changed files with 236 additions and 30 deletions
+19 -2
View File
@@ -1,12 +1,15 @@
<!-- vim: set ft=html: -->
{{! vim: set ft=html: }}
<html>
<head>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<p>{{6.title}}</p>
{{#each ctx}}
<p>{{id}} {{lang}} {{title}} {{location}} {{text}} {{event_date}}</p>
{{/each}}
<br>
<p>add</p>
<form action="events/add" method="post">
<input type="text", id="lang", name="lang">
<input type="text", id="title", name="title">
@@ -15,11 +18,25 @@
<input type="text", id="event_date", name="event_date">
<input type="submit", value="Submit">
</form>
<p>del</p>
<form action="events/del" method="post">
<input type="number", id="id", name="id">
<input type="submit", value="Submit">
</form>
<p>upd</p>
<form action="events/upd" method="post">
<input type="number", id="id", name="id">
<input type="text", id="lang", name="lang">
<input type="text", id="title", name="title">
<input type="text", id="location", name="location">
<input type="text", id="text", name="text">
<input type="text", id="event_date", name="event_date">
<input type="submit", value="Submit">
</form>
</body>
</head>
</html>
+1
View File
@@ -5,5 +5,6 @@
</head>
<body>
<a href="/ui/events">Events</a>
<a href="/ui/new">New</a>
</body>
</html>
+1 -1
View File
@@ -1,4 +1,4 @@
<!-- vim: set ft=html: -->
{{! vim: set ft=html: }}
<html>
<head>
+18
View File
@@ -0,0 +1,18 @@
{{! vim: set ft=html: }}
<html>
<head>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<p>add</p>
<form action="new/add" method="post">
<input type="text", id="lang", name="lang">
<input type="file" name="image", id="image", accept="image/png">
<input type="text", id="name", name="name">
<input type="text", id="new_date", name="new_date">
<input type="submit", value="Submit">
</form>
</body>
</head>
</html>