do not wrap button with anchor for edit and del

master v1.21
Bel LaPointe 2021-09-03 19:23:45 -06:00
parent f931053650
commit 46e79c0571
2 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -66,8 +66,8 @@ func htmlEdit(w http.ResponseWriter, baseHREF string) {
if config.ReadOnly {
return
}
fmt.Fprintf(w, `<div style='display:inline-block'>
<a href=%q><input type="button" value="Edit"></input></a>
fmt.Fprintf(w, `<div style='display:inline-block; margin-top: .75em; margin-bottom: .75em;'>
<a href=%q class="button">Edit</a>
</div><br>`, path.Join("/edit/", baseHREF))
}
@ -75,8 +75,8 @@ func htmlDelete(w http.ResponseWriter, baseHREF string) {
if config.ReadOnly {
return
}
fmt.Fprintf(w, `<div style='display:inline-block'>
<a href=%q><input type="button" value="Delete" onclick="return confirm('Delete?');"></input></a>
fmt.Fprintf(w, `<div style='display:inline-block; margin-top: .75em; margin-bottom: .75em;'>
<a href=%q class="button" onclick="return confirm('Delete?');">Delete</a>
</div><br>`, path.Join("/delete/", baseHREF))
}