parent
f931053650
commit
46e79c0571
File diff suppressed because one or more lines are too long
|
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue