diff options
author | Julian T <julian@jtle.dk> | 2020-09-09 15:44:07 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-09-09 15:44:07 +0200 |
commit | d9cc1aabe83261e5249f7493a59c484fb99b4772 (patch) | |
tree | 1a351c53c0adfeb4dacdb2ee933c359965860108 /root.template |
Initial working version
Diffstat (limited to 'root.template')
-rw-r--r-- | root.template | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/root.template b/root.template new file mode 100644 index 0000000..a492b7a --- /dev/null +++ b/root.template @@ -0,0 +1,57 @@ +<html> + <head> + <title>Noteman</title> + <style> + .box { + padding: 10px; + border: 1px solid black; + } + #name { + width: 300px; + } + td { + padding: 0 15px + } + </style> + </head> + <body> + <div class="box"> + <table> + <tr> + <th>Location format</th> + </tr> + <tr> + <td>Page</td> + <td>P</td> + </tr> + <tr> + <td>Book</td> + <td>B[id]S[page]</td> + </tr> + <tr> + <td>Notes git repo</td> + <td>G</td> + </tr> + </table><br><br> + <form method="POST"> + <label for="name">Name</label> + <input id="name" name="name" type="text"> + <label for="location">Location</label> + <input id="location" name="location" type="text"> + <input type="submit" value="go"> + </form> + </div><br><br> + <table> + <tr> + <th>Ref</th> + <th>Name</th> + </tr> + {{ range .Notes }} + <tr> + <td>#{{ .Hash }}/{{ .Location }}</td> + <td>{{ .Name }}</td> + </tr> + {{ end }} + </table> + </body> +</html> |