Skip to content

Commit

Permalink
Confirm? on delete
Browse files Browse the repository at this point in the history
  • Loading branch information
stgarf authored Sep 29, 2017
1 parent 3783587 commit 1335316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/keys.html
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ <h1>All Keys</h1>
<td class="text-right" style="width: 5%">{{ loop.index + offset }}</td>
<td>{{ types[key] }}</td>
<td><a href="{{ key|urlsafe_base64 }}/">{{ key }}</a></td>
<td><form method="POST"><input type="hidden" name="action" value="delkey" /><input type="hidden" name="key" value="{{ key }}" /><button class="btn btn-default" type="submit"><span class="glyphicon glyphicon-trash"></span></button></form></td>
<td><form method="POST"><input type="hidden" name="action" value="delkey" /><input type="hidden" name="key" value="{{ key }}" /><button class="btn btn-default" type="submit" onclick="return confirm('Are you sure you want to delete this key? {{ key }}');"><span class="glyphicon glyphicon-trash"></span></button></form></td>
</tr>
{% endfor %}
</tbody>

0 comments on commit 1335316

Please sign in to comment.