Skip to content

Commit

Permalink
Confirm deletion of blog (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfwatson authored and elegaanz committed May 29, 2019
1 parent 037674a commit bffce04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/blogs/edit.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h1>@i18n!(ctx.1, "Edit \"{}\""; &blog.title)</h1>

<h2>@i18n!(ctx.1, "Danger zone")</h2>
<p>@i18n!(ctx.1, "Be very careful, any action taken here can't be reversed.")</p>
<form method="post" action="@uri!(blogs::delete: name = &blog.fqn)">
<form method="post" action="@uri!(blogs::delete: name = &blog.fqn)" onsubmit="return confirm('@i18n!(ctx.1, "Are you sure that you want to permanently delete this blog?")')">
<input type="submit" class="inline-block button destructive" value="@i18n!(ctx.1, "Permanently delete this blog")">
</form>
})

0 comments on commit bffce04

Please sign in to comment.