mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-18 18:39:21 +02:00
Use consts for modal html test
This commit is contained in:
parent
fc52d98f21
commit
bc32c67de5
2 changed files with 6 additions and 2 deletions
|
@ -63,7 +63,7 @@
|
|||
</div>
|
||||
</section>
|
||||
<nav aria-label="Pagination" class="usa-pagination flex-justify" id="domains-pagination">
|
||||
<span class="usa-pagination__counter padding-top-1 padding-left-2">
|
||||
<span class="usa-pagination__counter text-base-dark padding-left-2">
|
||||
<!-- Count will be dynamically populated by JS -->
|
||||
</span>
|
||||
<ul class="usa-pagination__list">
|
||||
|
@ -96,7 +96,7 @@
|
|||
|
||||
{% for domain_request in domain_requests %}
|
||||
{% if has_deletable_domain_requests %}
|
||||
{% if domain_request.status == "started" or domain_request.status == "withdrawn" %}
|
||||
{% if domain_request.status == STATUS_STARTED or domain_request.status == STATUS_WITHDRAWN %}
|
||||
<div
|
||||
class="usa-modal"
|
||||
id="toggle-delete-domain-alert-{{ domain_request.id }}"
|
||||
|
|
|
@ -30,6 +30,10 @@ def index(request):
|
|||
)
|
||||
context["modal_button"] = modal_button
|
||||
|
||||
# Status constants
|
||||
context["STATUS_STARTED"] = DomainRequest.DomainRequestStatus.STARTED
|
||||
context["STATUS_WITHDRAWN"] = DomainRequest.DomainRequestStatus.WITHDRAWN
|
||||
|
||||
return render(request, "home.html", context)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue