removed subdomains view and references

This commit is contained in:
David Kennedy 2023-10-04 14:42:05 -04:00
parent 3ae411d464
commit 945c54adc7
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
8 changed files with 1 additions and 68 deletions

View file

@ -90,11 +90,6 @@ urlpatterns = [
views.DomainNameserversView.as_view(),
name="domain-dns-nameservers",
),
path(
"domain/<int:pk>/dns/subdomains",
views.DomainSubdomainsView.as_view(),
name="domain-dns-subdomains",
),
path(
"domain/<int:pk>/dns/dnssec",
views.DomainDNSSECView.as_view(),

View file

@ -199,11 +199,6 @@ class DomainDsdataForm(forms.Form):
# )
# ],
)
# delete = forms.BooleanField(
# required=False,
# label="Delete",
# )
# TODO: Conditional DS Key Data fields
@ -217,12 +212,6 @@ DomainDsdataFormset = formset_factory(
class DomainKeydataForm(forms.Form):
"""Form for adding or editing DNSSEC key data."""
# TODO: ds key data
# has_ds_key_data = forms.TypedChoiceField(
# required=True,
# label="DS Data record type",
# choices=[(False, "DS Data"), (True, "DS Data with Key Data")],
# )
flag = forms.TypedChoiceField(
required=True,
@ -235,13 +224,6 @@ class DomainKeydataForm(forms.Form):
label="Protocol",
choices=PROTOCOL_CHOICES,
)
# protocol = forms.IntegerField(
# max_value=3,
# min_value=3,
# initial=3,
# required=True,
# disabled=True,
# )
algorithm = forms.TypedChoiceField(
required=True,
@ -253,15 +235,7 @@ class DomainKeydataForm(forms.Form):
required=True,
label="Pub key",
)
# delete = forms.BooleanField(
# required=False,
# label="Delete",
# )
# TODO: Conditional DS Key Data fields
DomainKeydataFormset = formset_factory(
DomainKeydataForm,

View file

@ -291,7 +291,7 @@ class Domain(TimeStampedModel, DomainHelper):
return None
@dnssecdata.setter # type: ignore
def dnssecdata(self, _dnssecdata: extensions.DNSSECExtension):
def dnssecdata(self, _dnssecdata: dict):
updateParams = {
"maxSigLife": _dnssecdata.get("maxSigLife", None),
"dsData": _dnssecdata.get("dsData", None),

View file

@ -14,9 +14,6 @@
{% url 'domain-dns-nameservers' pk=domain.id as url %}
<p><a href="{{ url }}">DNS name servers</a></p>
{% url 'domain-subdomains' pk=domain.id as url %}
<p><a href="{{ url }}">Subdomain records</a></p>
{% url 'domain-dnssec' pk=domain.id as url %}
<p><a href="{{ url }}">DNSSEC</a></p>

View file

@ -27,15 +27,6 @@
</a>
</li>
<li class="usa-sidenav__item">
{% url 'domain-dns-subdomains' pk=domain.id as url %}
<a href="{{ url }}"
{% if request.path == url %}class="usa-current"{% endif %}
>
Subdomain records
</a>
</li>
<li class="usa-sidenav__item">
{% url 'domain-dns-dnssec' pk=domain.id as url %}
<a href="{{ url }}"

View file

@ -1,16 +0,0 @@
{% extends "domain_base.html" %}
{% load static field_helpers url_helpers %}
{% block title %}Subdomain records | {{ domain.name }} | {% endblock %}
{% block domain_content %}
<h1>Subdomain records</h1>
<p>Subdomains allow you to host multiple services under the same domain and create subsets of your website. For example, blogs are often set up as a subdomain (blog.example.gov).</p>
<p>Subdomains cannot be requested through the .gov registrar. Those must be set up ... NEED ADDITIONAL COPY HERE</p>
<p>If you use subdomains, enter those records (also known as glue records) below.</p>
{% endblock %} {# domain_content #}

View file

@ -5,7 +5,6 @@ from .domain import (
DomainOrgNameAddressView,
DomainDNSView,
DomainNameserversView,
DomainSubdomainsView,
DomainDNSSECView,
DomainDsdataView,
DomainKeydataView,

View file

@ -227,13 +227,6 @@ class DomainNameserversView(DomainPermissionView, FormMixin):
return super().form_valid(formset)
class DomainSubdomainsView(DomainPermissionView):
"""Domain subdomains editing view."""
template_name = "domain_subdomains.html"
class DomainDNSSECView(DomainPermissionView, FormMixin):
"""Domain DNSSEC editing view."""