-
-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4386 from v-anne/1346-create-recap-pray-and-pay
1346 create recap pray and pay
- Loading branch information
Showing
14 changed files
with
525 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
cl/favorites/migrations/0008_prayer_unique_prayer_for_user_document.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Generated by Django 5.0.8 on 2024-09-21 15:16 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
( | ||
"favorites", | ||
"0007_rename_prayer_recap_document_status_favorites_p_recap_d_00e8c5_idx_and_more", | ||
), | ||
("search", "0034_add_harvard_pdf_to_opinioncluster"), | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
] | ||
|
||
operations = [ | ||
migrations.AddConstraint( | ||
model_name="prayer", | ||
constraint=models.UniqueConstraint( | ||
fields=("user", "recap_document"), | ||
name="unique_prayer_for_user_document", | ||
), | ||
), | ||
] |
6 changes: 6 additions & 0 deletions
6
cl/favorites/migrations/0008_prayer_unique_prayer_for_user_document.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
BEGIN; | ||
-- | ||
-- Create constraint unique_prayer_for_user_document on model prayer | ||
-- | ||
ALTER TABLE "favorites_prayer" ADD CONSTRAINT "unique_prayer_for_user_document" UNIQUE ("user_id", "recap_document_id"); | ||
COMMIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{% extends "base.html" %} | ||
{% load extras %} | ||
{% load text_filters %} | ||
{% load static %} | ||
|
||
|
||
{% block title %}RECAP Requests – CourtListener.com{% endblock %} | ||
{% block og_title %}RECAP Requests – CourtListener.com{% endblock %} | ||
|
||
{% block description %}Lorem Ipsum on CourtListener.{% endblock %} | ||
{% block og_description %}Lorem Ipsum on CourtListener.{% endblock %} | ||
|
||
{% block content %} | ||
<div class="col-xs-12"> | ||
<div class="table-responsive"> | ||
<table class="settings-table table"> | ||
<thead> | ||
<tr> | ||
<th>User Preference</th> | ||
<th>Document Description</th> | ||
<th>Document Number</th> | ||
<th>PACER Doc ID</th> | ||
<th>Document Court</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for prayer in top_prayers %} | ||
<tr> | ||
<td>{{ forloop.counter }}</td> | ||
<td>{{ prayer.description }}</td> | ||
<td>{{ prayer.document_number }}</td> | ||
<td>{{ prayer.pacer_doc_id }}</td> | ||
<td>{{ prayer.docket_entry.docket.court_id }}</td> | ||
</tr> | ||
{% empty %} | ||
<tr> | ||
<td colspan="2">No document requests open. Consider making one!</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
{% endblock %} |
Oops, something went wrong.