mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 17:28:31 +02:00
Alerts refator to use slim on small and most triggered alerts, full on most persistent and large alerts
This commit is contained in:
parent
49f56a7205
commit
348104c59e
4 changed files with 15 additions and 6 deletions
|
@ -22,6 +22,14 @@
|
|||
{% include "includes/form_messages.html" %}
|
||||
{% endblock %}
|
||||
|
||||
{% if pending_requests_message %}
|
||||
<div class="usa-alert usa-alert--info margin-bottom-2">
|
||||
<div class="usa-alert__body">
|
||||
{{ pending_requests_message }}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% block form_errors %}
|
||||
{% comment %}
|
||||
to make sense of this loop, consider that
|
||||
|
|
|
@ -40,9 +40,9 @@
|
|||
>
|
||||
{% else %}
|
||||
<div id="enable-dnssec">
|
||||
<div class="usa-alert usa-alert--info usa-alert--slim">
|
||||
<div class="usa-alert usa-alert--info">
|
||||
<div class="usa-alert__body">
|
||||
It is strongly recommended that you only enable DNSSEC if you know how to set it up properly at your hosting service. If you make a mistake, it could cause your domain name to stop working.
|
||||
<p>It is strongly recommended that you only enable DNSSEC if you know how to set it up properly at your hosting service. If you make a mistake, it could cause your domain name to stop working.</p>
|
||||
</div>
|
||||
</div>
|
||||
<a href="{% url 'domain-dns-dnssec-dsdata' pk=domain.id %}" class="usa-button">Enable DNSSEC</a>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
<p>Add a name server record by entering the address (e.g., ns1.nameserver.com) in the name server fields below. You must add at least two name servers (13 max).</p>
|
||||
|
||||
<div class="usa-alert usa-alert--slim usa-alert--info">
|
||||
<div class="usa-alert usa-alert--info">
|
||||
<div class="usa-alert__body">
|
||||
<p class="margin-top-0">Add an IP address only when your name server's address includes your domain name (e.g., if your domain name is “example.gov” and your name server is “ns1.example.gov,” then an IP address is required). Multiple IP addresses must be separated with commas.</p>
|
||||
<p class="margin-bottom-0">This step is uncommon unless you self-host your DNS or use custom addresses for your nameserver.</p>
|
||||
|
|
|
@ -221,18 +221,19 @@ class ApplicationWizard(ApplicationWizardPermissionView, TemplateView):
|
|||
context["forms"] = self.get_forms()
|
||||
|
||||
# if pending requests exist and user does not have approved domains,
|
||||
# present message that domain application cannot be submitted
|
||||
# present message that domain application cannot be submitted
|
||||
pending_requests = self.pending_requests()
|
||||
if len(pending_requests) > 0:
|
||||
message_header = "You cannot submit this request yet"
|
||||
message_content = (
|
||||
f"<h4 class='usa-alert__heading'>{message_header}</h4>"
|
||||
f"<h4 class='usa-alert__heading'>{message_header}</h4> "
|
||||
"<p class='margin-bottom-0'>New domain requests cannot be submitted until we have finished "
|
||||
f"reviewing your pending request: <strong>{pending_requests[0].requested_domain}</strong>. "
|
||||
"You can continue to fill out this request and save it as a draft to be submitted later. "
|
||||
f"<a class='usa-link' href='{reverse('home')}'>View your pending requests.</a></p>"
|
||||
)
|
||||
messages.info(request, mark_safe(message_content)) # nosec
|
||||
context["pending_requests_message"] = mark_safe(message_content) # nosec
|
||||
|
||||
context["pending_requests_exist"] = len(pending_requests) > 0
|
||||
|
||||
return render(request, self.template_name, context)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue