diff options
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> |