예제 #1
0
파일: views.py 프로젝트: OCTO8888/LITIGAIT
def docket_idb_data(request, docket_id, slug):
    docket, context = core_docket_data(request, docket_id)
    context.update({
        "parties":
        docket.parties.exists(),  # Needed to show/hide parties tab.
        "docket_entries":
        docket.docket_entries.exists(),
        "origin_csv":
        choices_to_csv(docket.idb_data, "origin"),
        "jurisdiction_csv":
        choices_to_csv(docket.idb_data, "jurisdiction"),
        "arbitration_csv":
        choices_to_csv(docket.idb_data, "arbitration_at_filing"),
        "class_action_csv":
        choices_to_csv(docket.idb_data, "termination_class_action_status"),
        "procedural_progress_csv":
        choices_to_csv(docket.idb_data, "procedural_progress"),
        "disposition_csv":
        choices_to_csv(docket.idb_data, "disposition"),
        "nature_of_judgment_csv":
        choices_to_csv(docket.idb_data, "nature_of_judgement"),
        "judgment_csv":
        choices_to_csv(docket.idb_data, "judgment"),
        "pro_se_csv":
        choices_to_csv(docket.idb_data, "pro_se"),
    })
    return render(request, "docket_idb_data.html", context)
예제 #2
0
def docket_idb_data(request, docket_id, slug):
    docket, context = core_docket_data(request, docket_id)
    context.update({
        'parties':
        docket.parties.exists(),  # Needed to show/hide parties tab.
        'docket_entries':
        docket.docket_entries.exists(),
        'origin_csv':
        choices_to_csv(docket.idb_data, 'origin'),
        'jurisdiction_csv':
        choices_to_csv(docket.idb_data, 'jurisdiction'),
        'arbitration_csv':
        choices_to_csv(docket.idb_data, 'arbitration_at_filing'),
        'class_action_csv':
        choices_to_csv(docket.idb_data, 'termination_class_action_status'),
        'procedural_progress_csv':
        choices_to_csv(docket.idb_data, 'procedural_progress'),
        'disposition_csv':
        choices_to_csv(docket.idb_data, 'disposition'),
        'nature_of_judgment_csv':
        choices_to_csv(docket.idb_data, 'nature_of_judgement'),
        'judgment_csv':
        choices_to_csv(docket.idb_data, 'judgment'),
        'pro_se_csv':
        choices_to_csv(docket.idb_data, 'pro_se'),
    })
    return render(request, 'docket_idb_data.html', context)
예제 #3
0
def docket_idb_data(
    request: HttpRequest,
    docket_id: int,
    slug: str,
) -> HttpResponse:
    docket, context = core_docket_data(request, docket_id)
    if docket.idb_data is None:
        raise Http404("No IDB data for this docket at this time")
    context.update(
        {
            # Needed to show/hide parties tab.
            "parties": docket.parties.exists(),
            "docket_entries": docket.docket_entries.exists(),
            "origin_csv": choices_to_csv(docket.idb_data, "origin"),
            "jurisdiction_csv": choices_to_csv(
                docket.idb_data, "jurisdiction"
            ),
            "arbitration_csv": choices_to_csv(
                docket.idb_data, "arbitration_at_filing"
            ),
            "class_action_csv": choices_to_csv(
                docket.idb_data, "termination_class_action_status"
            ),
            "procedural_progress_csv": choices_to_csv(
                docket.idb_data, "procedural_progress"
            ),
            "disposition_csv": choices_to_csv(docket.idb_data, "disposition"),
            "nature_of_judgment_csv": choices_to_csv(
                docket.idb_data, "nature_of_judgement"
            ),
            "judgment_csv": choices_to_csv(docket.idb_data, "judgment"),
            "pro_se_csv": choices_to_csv(docket.idb_data, "pro_se"),
        }
    )
    return render(request, "docket_idb_data.html", context)
예제 #4
0
def docket_idb_data(request, docket_id, slug):
    docket, context = core_docket_data(request, docket_id)
    context.update({
        'parties': docket.parties.exists(),  # Needed to show/hide parties tab.
        'docket_entries': docket.docket_entries.exists(),
        'origin_csv': choices_to_csv(docket.idb_data, 'origin'),
        'jurisdiction_csv': choices_to_csv(docket.idb_data, 'jurisdiction'),
        'arbitration_csv': choices_to_csv(docket.idb_data,
                                          'arbitration_at_filing'),
        'class_action_csv': choices_to_csv(docket.idb_data,
                                           'termination_class_action_status'),
        'procedural_progress_csv': choices_to_csv(docket.idb_data,
                                                  'procedural_progress'),
        'disposition_csv': choices_to_csv(docket.idb_data, 'disposition'),
        'nature_of_judgment_csv': choices_to_csv(docket.idb_data,
                                                 'nature_of_judgement'),
        'judgment_csv': choices_to_csv(docket.idb_data, 'judgment'),
        'pro_se_csv': choices_to_csv(docket.idb_data, 'pro_se'),
    })
    return render(request, 'docket_idb_data.html', context)