make button vs link usage consistent

main
Brian Picciano 2 years ago
parent 7bd7af44a9
commit c06dd5c587
  1. 9
      srv/src/http/tpl/edit-post.html
  2. 4
      srv/src/http/tpl/posts.html

@ -104,12 +104,15 @@
<input type="submit" value="Update" formaction="{{ BlogURL "posts/" }}" /> <input type="submit" value="Update" formaction="{{ BlogURL "posts/" }}" />
{{ end }} {{ end }}
<a href="{{ BlogURL "posts/" }}">
<button type="button">Back</button>
</a>
</p> </p>
</form> </form>
<p>
<a href="{{ BlogURL "posts/" }}">
Back to Posts
</a>
</p>
{{ end }} {{ end }}
{{ template "base.html" . }} {{ template "base.html" . }}

@ -2,7 +2,7 @@
<p> <p>
<a href="{{ BlogURL "posts/" }}?edit"> <a href="{{ BlogURL "posts/" }}?edit">
<button>New Post</button> New Post
</a> </a>
</p> </p>
@ -20,7 +20,7 @@
<td><a href="{{ PostURL .ID }}">{{ .Title }}</a></td> <td><a href="{{ PostURL .ID }}">{{ .Title }}</a></td>
<td> <td>
<a href="{{ PostURL .ID }}?edit"> <a href="{{ PostURL .ID }}?edit">
<button>Edit</button> Edit
</a> </a>
</td> </td>
<td> <td>

Loading…
Cancel
Save