diff --git a/docs/changelog.rst b/docs/changelog.rst index 12ea8c1..b98b466 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,7 @@ Changelog ========= +* :feature:`-` implement deletion of websites * :feature:`-` implement setup of websites * :support:`-` add webtasks interface * :support:`-` update to new fileservertasks interface (requires gvafile >= diff --git a/gnuviechadmin/templates/hostingpackages/customerhostingpackage_detail.html b/gnuviechadmin/templates/hostingpackages/customerhostingpackage_detail.html index f3c7634..e66ae9b 100644 --- a/gnuviechadmin/templates/hostingpackages/customerhostingpackage_detail.html +++ b/gnuviechadmin/templates/hostingpackages/customerhostingpackage_detail.html @@ -107,7 +107,7 @@ {% with domain=domain.domain %} {% for website in domain.website_set.all %}{% spaceless %} {{ website }} - {% trans "Delete website" %} + {% trans "Delete website" %} {% endspaceless %}{% if not forloop.last %}, {% endif %}{% endfor %} {% endwith %} diff --git a/gnuviechadmin/templates/websites/website_confirm_delete.html b/gnuviechadmin/templates/websites/website_confirm_delete.html new file mode 100644 index 0000000..92cb0e9 --- /dev/null +++ b/gnuviechadmin/templates/websites/website_confirm_delete.html @@ -0,0 +1,34 @@ +{% extends "websites/base.html" %} +{% load i18n %} + +{% block title %}{{ block.super }} - {% spaceless %} +{% if user == customer %} +{% blocktrans %}Delete Website {{ website }}{% endblocktrans %} +{% else %} +{% blocktrans with full_name=customer.get_full_name %}Delete Website {{ website }} of Customer {{ full_name }}{% endblocktrans %} +{% endif %} +{% endspaceless %}{% endblock title %} + +{% block page_title %}{% spaceless %} +{% if user == customer %} +{% blocktrans %}Delete Website {{ website }}{% endblocktrans %} +{% else %} +{% blocktrans with full_name=customer.get_full_name %}Delete Website {{ website }} of Customer {{ full_name }}{% endblocktrans %} +{% endif %} +{% endspaceless %}{% endblock page_title %} + +{% block content %} +
{% blocktrans %}Please be aware that the website directory is removed from the webserver and the webserver configuration is changed so that the website will not be reachable anymore. All data in the website directory will be lost!{% endblocktrans %}
+ +