2015-01-26 13:39:35 +01:00
|
|
|
{% extends "userdbs/base.html" %}
|
|
|
|
{% load i18n %}
|
|
|
|
|
|
|
|
{% block title %}{{ block.super }} - {% spaceless %}
|
2023-04-16 22:11:32 +02:00
|
|
|
{% if user == customer %}
|
|
|
|
{% blocktranslate with database=database.db_name %}Delete Database {{ database }}{% endblocktranslate %}
|
|
|
|
{% else %}
|
|
|
|
{% blocktranslate with database=database.db_name full_name=customer.get_full_name trimmed %}
|
|
|
|
Delete Database {{ database }} of customer {{ full_name }}
|
|
|
|
{% endblocktranslate %}
|
|
|
|
{% endif %}
|
2015-01-26 13:39:35 +01:00
|
|
|
{% endspaceless %}{% endblock title %}
|
|
|
|
|
|
|
|
{% block page_title %}{% spaceless %}
|
2023-04-16 22:11:32 +02:00
|
|
|
{% if user == customer %}
|
|
|
|
{% blocktranslate with database=database.db_name trimmed %}
|
|
|
|
Delete Database <small>{{ database }}</small>
|
|
|
|
{% endblocktranslate %}
|
|
|
|
{% else %}
|
|
|
|
{% blocktranslate with database=database.db_name full_name=customer.get_full_name trimmed %}
|
|
|
|
Delete Database <small>{{ database }} of customer {{ full_name }}</small>
|
|
|
|
{% endblocktranslate %}
|
|
|
|
{% endif %}
|
2015-01-26 13:39:35 +01:00
|
|
|
{% endspaceless %}{% endblock page_title %}
|
|
|
|
|
|
|
|
{% block content %}
|
2023-04-16 22:11:32 +02:00
|
|
|
<div class="panel panel-warning">
|
|
|
|
<div class="panel-heading">
|
|
|
|
{% blocktranslate with database=database.db_name trimmed %}
|
|
|
|
Do you really want to delete the database {{ database }}?
|
|
|
|
{% endblocktranslate %}
|
|
|
|
</div>
|
|
|
|
<div class="panel-body form">
|
|
|
|
<p>{% blocktranslate trimmed %}
|
|
|
|
When you confirm the deletion the database will be removed from the database server.
|
|
|
|
<strong>All data in the database will be lost!</strong> If the database user assigned to that database
|
|
|
|
has no other databases assigned it will be deleted too.
|
|
|
|
{% endblocktranslate %}</p>
|
|
|
|
<form action="{% url 'delete_userdatabase' package=hostingpackage.id slug=database.db_name %}"
|
|
|
|
method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
<input class="btn btn-warning" type="submit" value="{% translate "Yes, do it!" %}"/>
|
2023-04-29 12:35:49 +02:00
|
|
|
<a class="btn btn-secondary" href="{{ hostingpackage.get_absolute_url }}">{% translate "Cancel" %}</a>
|
2023-04-16 22:11:32 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock content %}
|