Skip to content

Commit 20f272b

Browse files
Merge pull request #263 from SuffolkLITLab/fix/251-checklist-guidance
Hide document checklist guidance when no checklist is available
2 parents 8b47ea4 + 1762a58 commit 20f272b

2 files changed

Lines changed: 11 additions & 13 deletions

File tree

‎efile_app/efile/templates/efile/document_checklist.html‎

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,17 @@ <h1>{% translate "Check your documents" %}</h1>
1111
<p class="workflow-lede">
1212
{% translate "Review the files below. Add anything else you want the court to get with this filing." %}
1313
</p>
14-
<div class="checklist-guidance" role="note">
15-
<i class="fa-solid fa-circle-info" aria-hidden="true"></i>
16-
<div>
17-
<strong>{% translate "This list is a guide" %}</strong>
18-
{% if checklist_groups %}
14+
{% if checklist_groups %}
15+
<div class="checklist-guidance" role="note">
16+
<i class="fa-solid fa-circle-info" aria-hidden="true"></i>
17+
<div>
18+
<strong>{% translate "This list is a guide" %}</strong>
1919
<p>
2020
{% blocktranslate with court=plan.court_name|default:filing_draft.court_name %}Some filings like yours at {{ court }} include the documents below. Depending on your situation, other documents may be needed, or some of these may not apply. You do not have to check anything off to continue.{% endblocktranslate %}
2121
</p>
22-
{% else %}
23-
<p>
24-
{% translate "Include every completed court form, exhibit, translation, or proposed order that belongs with this filing. This list cannot tell you which legal forms your case needs." %}
25-
</p>
26-
{% endif %}
22+
</div>
2723
</div>
28-
</div>
24+
{% endif %}
2925
{% if choosing_filer_role %}
3026
<section class="document-plan filer-role" aria-labelledby="filer-role-heading">
3127
<h2 id="filer-role-heading">{% translate "Which side of this case are you on?" %}</h2>

‎efile_app/efile/tests/test_document_prep.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def test_document_checklist_shows_configured_guidance(client, planned_draft):
100100
page = response.content.decode()
101101
assert response.status_code == 200
102102
assert "Your document plan" in page
103+
assert "This list is a guide" in page
103104
assert "Commonly included" in page
104105
assert "Always needed" not in page
105106
assert "Depending on your situation, other documents may be needed" in page
@@ -109,13 +110,14 @@ def test_document_checklist_shows_configured_guidance(client, planned_draft):
109110

110111

111112
@pytest.mark.django_db
112-
def test_document_checklist_keeps_its_disclaimer_without_configured_guidance(client, document_draft):
113+
def test_document_checklist_hides_its_disclaimer_without_configured_guidance(client, document_draft):
113114
response = client.get(reverse("document_checklist", kwargs={"jurisdiction": "illinois"}))
114115

115116
document_draft.refresh_from_db()
116117
page = response.content.decode()
117118
assert "Your document plan" not in page
118-
assert "cannot tell you which legal forms your case needs" in page
119+
assert "This list is a guide" not in page
120+
assert "cannot tell you which legal forms your case needs" not in page
119121
assert document_draft.plan_id is None
120122

121123

0 commit comments

Comments
 (0)