mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-21 10:16:13 +02:00
roughed in subdomains
This commit is contained in:
parent
5af1143f55
commit
8bc0c9486b
7 changed files with 40 additions and 2 deletions
|
@ -90,6 +90,11 @@ urlpatterns = [
|
|||
views.DomainNameserversView.as_view(),
|
||||
name="domain-nameservers",
|
||||
),
|
||||
path(
|
||||
"domain/<int:pk>/subdomains",
|
||||
views.DomainSubdomainsView.as_view(),
|
||||
name="domain-subdomains",
|
||||
),
|
||||
path(
|
||||
"domain/<int:pk>/dnssec",
|
||||
views.DomainDNSSECView.as_view(),
|
||||
|
|
|
@ -14,7 +14,8 @@
|
|||
{% url 'domain-nameservers' pk=domain.id as url %}
|
||||
<p><a href="{{ url }}">DNS name servers</a></p>
|
||||
|
||||
<p><a href=>Subdomain records</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>
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
|
||||
<h1>DNSSEC</h1>
|
||||
|
||||
<p>DNSSEC, or DNS Security Extensions, is additional security layer to protect your website. Enabling DNSSEC ensures that when someone visits your website, they can be certain that it's connecting to the correct server, preventing potential hijacking or tampering with your domain's records. <a href="unknownref">Read more about DNSSEC and why it is important.</a></a></p>
|
||||
<p>DNSSEC, or DNS Security Extensions, is additional security layer to protect your website. Enabling DNSSEC ensures that when someone visits your website, they can be certain that it's connecting to the correct server, preventing potential hijacking or tampering with your domain's records. <a href="https://www.icann.org/resources/pages/dnssec-what-is-it-why-important-2019-03-05-en">Read more about DNSSEC and why it is important.</a></p>
|
||||
|
||||
{% endblock %} {# domain_content #}
|
||||
|
|
|
@ -29,6 +29,14 @@
|
|||
</a>
|
||||
</li>
|
||||
|
||||
<li class="usa-sidenav__item">
|
||||
{% url 'domain-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-dnssec' pk=domain.id as url %}
|
||||
<a href="{{ url }}"
|
||||
|
|
16
src/registrar/templates/domain_subdomains.html
Normal file
16
src/registrar/templates/domain_subdomains.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
{% 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 #}
|
|
@ -5,6 +5,7 @@ from .domain import (
|
|||
DomainOrgNameAddressView,
|
||||
DomainDNSView,
|
||||
DomainNameserversView,
|
||||
DomainSubdomainsView,
|
||||
DomainDNSSECView,
|
||||
DomainYourContactInformationView,
|
||||
DomainSecurityEmailView,
|
||||
|
|
|
@ -214,6 +214,13 @@ class DomainNameserversView(DomainPermissionView, FormMixin):
|
|||
return super().form_valid(formset)
|
||||
|
||||
|
||||
class DomainSubdomainsView(DomainPermissionView):
|
||||
|
||||
"""Domain subdomains editing view."""
|
||||
|
||||
template_name = "domain_subdomains.html"
|
||||
|
||||
|
||||
class DomainDNSSECView(DomainPermissionView):
|
||||
|
||||
"""Domain DNSSEC editing view."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue