mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-30 03:44:24 +02:00
102 lines
3.6 KiB
HTML
Executable File
102 lines
3.6 KiB
HTML
Executable File
{% extends "baseTemplate/index.html" %}
|
|
{% load i18n %}
|
|
{% block title %}{% trans "Delete DNS Zone - CyberPanel" %}{% endblock %}
|
|
{% block content %}
|
|
|
|
{% load static %}
|
|
{% get_current_language as LANGUAGE_CODE %}
|
|
<!-- Current language: {{ LANGUAGE_CODE }} -->
|
|
|
|
<div class="container">
|
|
<div id="page-title">
|
|
<h2>{% trans "Delete DNS Zone" %} - <a target="_blank" href="http://go.cyberpanel.net/dns-records" style="height: 23px;line-height: 21px;" class="btn btn-border btn-alt border-red btn-link font-red" title=""><span>{% trans "DNS Docs" %}</span></a></h2>
|
|
<p>{% trans "This page can be used to delete DNS Zone. Deleting the DNS zone will remove all its related records as well." %}</p>
|
|
</div>
|
|
<div class="panel">
|
|
<div class="panel-body">
|
|
<h3 class="content-box-header">
|
|
{% trans "Delete DNS Zone" %}
|
|
</h3>
|
|
<div ng-controller="deleteDNSZone" class="example-box-wrapper">
|
|
|
|
|
|
{% if not status %}
|
|
<div class="col-md-12 text-center" style="margin-bottom: 2%;">
|
|
<h3>{% trans "PowerDNS is disabled." %}
|
|
<a href="{% url 'managePowerDNS' %}"><button class="btn btn-alt btn-hover btn-blue-alt">
|
|
<span>{% trans "Enable Now" %}</span>
|
|
<i class="glyph-icon icon-arrow-right"></i>
|
|
</button></a></h3>
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<form action="/" class="form-horizontal bordered-row panel-body">
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label">{% trans "Select Zone" %}</label>
|
|
<div class="col-sm-6">
|
|
<select ng-model="selectedZone" class="form-control">
|
|
{% for items in domainsList %}
|
|
<option>{{ items }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label"></label>
|
|
<div class="col-sm-4">
|
|
<button type="button" ng-click="deleteZone()" class="btn btn-primary btn-lg">{% trans "Delete Zone" %}</button>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div ng-hide="deleteZoneButton" class="form-group">
|
|
<label class="col-sm-3 control-label"></label>
|
|
<div class="col-sm-4">
|
|
<button type="button" ng-click="deleteZoneFinal()" class="btn btn-primary btn-lg btn-block">{% trans "Are you sure?" %}</button>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-3 control-label"></label>
|
|
<div class="col-sm-6">
|
|
<div ng-hide="deleteFailure" class="alert alert-danger">
|
|
<p>{% trans "Cannot delete zone. Error message: " %}{$ errorMessage $}</p>
|
|
</div>
|
|
|
|
<div ng-hide="deleteSuccess" class="alert alert-success">
|
|
<p>{% trans "Zone for domain:" %} <strong>{$ deletedZone $}</strong> {% trans "is successfully erased." %}</p>
|
|
</div>
|
|
|
|
<div ng-hide="couldNotConnect" class="alert alert-danger">
|
|
<p>{% trans "Could not connect to server. Please refresh this page." %}</p>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
{% endblock %}
|