Intial version imported

This commit is contained in:
2022-03-10 23:33:32 +02:00
parent d655f07b30
commit 184b3899d6
13 changed files with 2722 additions and 3 deletions

4
templates/home.tmpl Normal file
View File

@@ -0,0 +1,4 @@
<h1>{{.PageTitle}}</h1>
<p>This is a sample homepage for GoEl Bot</p>
<br>
<b>Test 2-1</b>

36
templates/inv.tmpl Normal file
View File

@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<style>
table {
border-collapse: collapse;
width: 50%;
}
th, td {
padding: 8px;
text-align: left;
border-bottom: 1px solid #DDD;
}
tr:hover {background-color: #D6EEEE;}
</style>
<body>
<h1>Inventory</h1>
We have the following in our inventory:<br>
<br>
<table>
<tr>
<th>Item name</th>
<th>Quantity</th>
<th>Price</th>
</tr>
{{range .}}
<tr>
<td>{{.Text}}</td><td>{{.Quantity}}</td><td>{{.Price}}</td>
</tr>
{{end}}
</table>
</body>
</html>

38
templates/test.tmpl Normal file
View File

@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<style>
table {
border-collapse: collapse;
width: 50%;
}
th, td {
padding: 8px;
text-align: left;
border-bottom: 1px solid #DDD;
}
tr:hover {background-color: #D6EEEE;}
</style>
<body>
<h1>{{.PageTitle}}</h1>
We have the following price list:
<br><br>
<table>
<tr>
<th>Id</th>
<th>Item name</th>
<th>Price</th>
</tr>
{{range .Ite}}
<tr>
<td>{{.Id}}</td>
<td>{{.Text}}</td>
<td>{{.Price}}</td>
</tr>
{{end}}
</table>
</body>
</html>