70 lines
2.3 KiB
HTML
70 lines
2.3 KiB
HTML
{% extends "musician/base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block content %}
|
|
<a class="btn-arrow-left" href="{% url 'musician:domain-list' %}">{% trans "Go back" %}</a>
|
|
|
|
<h1 class="service-name">
|
|
{% trans "DNS settings for" %} <span class="font-weight-light">{{ object.name }}</span>
|
|
|
|
</h1>
|
|
<!-- TODO: muestra solo si tiene permisos para verlo -->
|
|
<!--
|
|
{% if object.top %}
|
|
<div class="mb-4">
|
|
<a class="btn btn-sm btn-secondary" href="{% url 'musician:domain-detail' object.top.pk %}">
|
|
{% trans "Go to top level domain" %} <span class="font-weight-bold">{{ object.top.name }}</span></a>
|
|
</div>
|
|
{% endif %} -->
|
|
|
|
<p class="service-description">{% trans "DNS settings page description." %}</p>
|
|
|
|
|
|
<div class="alert alert-danger" role="alert">
|
|
{% blocktrans %}
|
|
<h5 class="alert-heading">IMPORTANT NOTICE!!!</h5>
|
|
DNS records control the functioning of your domain, and therefore your websites, email addresses, mailing lists, etc.<br>
|
|
If you do not have the necessary knowledge about this topic, do not make changes in this section. It is dangerous!
|
|
{% endblocktrans %}
|
|
</div>
|
|
|
|
<table class="table service-list">
|
|
<colgroup>
|
|
<col span="1" style="width: 12%;">
|
|
<col span="1" style="width: 88%;">
|
|
</colgroup>
|
|
<thead class="thead-dark">
|
|
<tr>
|
|
<th scope="col">{% trans "Type" %}</th>
|
|
<th scope="col">{% trans "Value" %}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for record in object.records.all %}
|
|
<tr>
|
|
<td>{{ record.type }}</td>
|
|
<td>
|
|
<a href="{% url 'musician:domain-update-record' object.pk record.pk %}">
|
|
{{ record.value }}
|
|
<i class="ml-3 fas fa-edit"></i></a>
|
|
<a href="{% url 'musician:domain-delete-record' object.pk record.pk %}">
|
|
<i class="ml-3 text-danger fas fa-trash"></i></a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<a class="btn btn-primary mt-4 mb-4" href="{% url 'musician:domain-add-record' object.pk %}">{% trans "Add new record" %}</a></td>
|
|
|
|
<div class="domain-subdomains">
|
|
<h2>{% trans "Subdomains" %}</h2>
|
|
<ul>
|
|
{% for subdomain in object.subdomains.all %}
|
|
<li><a href="{% url 'musician:domain-detail' subdomain.pk %}">{{ subdomain.name }}</a> <pre>{{ subdomain.records.all|join:", " }}</pre></li>
|
|
{% empty %}
|
|
{% trans "Any related subdomain." %}
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endblock %}
|