diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2022-08-16 22:04:57 -0600 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2022-08-16 22:04:57 -0600 |
commit | c06dd5c5873f7d2c96946dd2414687e8b0eb71f3 (patch) | |
tree | f5d8c6d4a63a23e49bb54c4a54c9ab202071e003 | |
parent | 7bd7af44a99c81999b1650bf21dd720b3e67fef6 (diff) |
make button vs link usage consistent
-rw-r--r-- | srv/src/http/tpl/edit-post.html | 9 | ||||
-rw-r--r-- | srv/src/http/tpl/posts.html | 4 |
2 files changed, 8 insertions, 5 deletions
diff --git a/srv/src/http/tpl/edit-post.html b/srv/src/http/tpl/edit-post.html index 45e8f84..9376f2e 100644 --- a/srv/src/http/tpl/edit-post.html +++ b/srv/src/http/tpl/edit-post.html @@ -104,12 +104,15 @@ <input type="submit" value="Update" formaction="{{ BlogURL "posts/" }}" /> {{ end }} - <a href="{{ BlogURL "posts/" }}"> - <button type="button">Back</button> - </a> </p> </form> + +<p> + <a href="{{ BlogURL "posts/" }}"> + Back to Posts + </a> +</p> {{ end }} {{ template "base.html" . }} diff --git a/srv/src/http/tpl/posts.html b/srv/src/http/tpl/posts.html index b908b08..d8f52a6 100644 --- a/srv/src/http/tpl/posts.html +++ b/srv/src/http/tpl/posts.html @@ -2,7 +2,7 @@ <p> <a href="{{ BlogURL "posts/" }}?edit"> - <button>New Post</button> + New Post </a> </p> @@ -20,7 +20,7 @@ <td><a href="{{ PostURL .ID }}">{{ .Title }}</a></td> <td> <a href="{{ PostURL .ID }}?edit"> - <button>Edit</button> + Edit </a> </td> <td> |