Add delete photo view
This commit is contained in:
parent
f17adbb2ed
commit
f9c33e2cad
3 changed files with 39 additions and 2 deletions
24
photologue/templates/photologue/photo_confirm_delete.html
Normal file
24
photologue/templates/photologue/photo_confirm_delete.html
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{% extends "base.html" %}
|
||||
{% comment %}
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
{% endcomment %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}{% trans "Delete confirmation" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<h1>{% trans "Delete confirmation" %}</h1>
|
||||
<form method="post">{% csrf_token %}
|
||||
<p>
|
||||
{% blocktranslate trimmed %}
|
||||
Are you sure you want to delete <code>{{ object }}</code>?
|
||||
{% endblocktranslate %}
|
||||
</p>
|
||||
{{ form }}
|
||||
<input type="submit" class="btn btn-danger" value="{% trans "Confirm" %}">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue