implement website deletion
- implement websites.views.DeleteWebsite - add URL pattern 'delete_website' to websites.urls - add template website_confirm_delete.html - add link from hostingpackage page to 'delete_website' - add changelog entry
This commit is contained in:
parent
5ad32e6894
commit
7da5cfe406
5 changed files with 62 additions and 1 deletions
|
@ -107,7 +107,7 @@
|
|||
{% with domain=domain.domain %}
|
||||
{% for website in domain.website_set.all %}{% spaceless %}
|
||||
{{ website }}
|
||||
<a href="#" titel="{% trans "Delete website" %}"><i class="glyphicon glyphicon-trash"></i><span class="sr-only"> {% trans "Delete website" %}</span></a>
|
||||
<a href="{% url 'delete_website' package=hostingpackage.id domain=domain.domain pk=website.id %}" titel="{% trans "Delete website" %}"><i class="glyphicon glyphicon-trash"></i><span class="sr-only"> {% trans "Delete website" %}</span></a>
|
||||
{% endspaceless %}{% if not forloop.last %}, {% endif %}{% endfor %}
|
||||
{% endwith %}
|
||||
</td>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue