Intial version imported
This commit is contained in:
4
templates/home.tmpl
Normal file
4
templates/home.tmpl
Normal 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
36
templates/inv.tmpl
Normal 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
38
templates/test.tmpl
Normal 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>
|
||||
Reference in New Issue
Block a user