From cac90831226ddcbbff455cd95c8ccff395b5f766 Mon Sep 17 00:00:00 2001 From: edmondsgarrett <43251554+edmondsgarrett@users.noreply.github.com> Date: Mon, 8 May 2023 16:23:30 -0500 Subject: [PATCH] task/WP-89: Registration form UTH feedback (#152) * Add registration id to success message for registration form * Reg form changes: org type dropdown now passes correct org code back to db, removed submission type from form (and every other use of this field from views, forms, db util functions), and removed min/max length and pattern restrictions on entity license and NAIC codes * Move file type selection to entities on reg form * Database updates for moving file types to entities * Change list registrations table & modal to show file types moved to entities --- .../static/admin_regis_table/css/table.css | 6 +- .../templates/list_registrations.html | 20 +- .../templates/view_registration_modal.html | 26 +- apcd-cms/src/apps/admin_regis_table/views.py | 73 ++--- .../registration_form_body.html | 303 +++++++----------- .../registration_form_scripts.html | 83 ++++- .../submission_form/submission_success.html | 2 + apcd-cms/src/apps/registrations/views.py | 5 +- apcd-cms/src/apps/utils/apcd_database.py | 74 +++-- 9 files changed, 279 insertions(+), 313 deletions(-) diff --git a/apcd-cms/src/apps/admin_regis_table/static/admin_regis_table/css/table.css b/apcd-cms/src/apps/admin_regis_table/static/admin_regis_table/css/table.css index a06aa08d..2f562820 100644 --- a/apcd-cms/src/apps/admin_regis_table/static/admin_regis_table/css/table.css +++ b/apcd-cms/src/apps/admin_regis_table/static/admin_regis_table/css/table.css @@ -122,8 +122,6 @@ .registration-table td:nth-of-type(1):before { content: "Business Name"; } .registration-table td:nth-of-type(2):before { content: "Type"; } .registration-table td:nth-of-type(3):before { content: "Location"; } - .registration-table td:nth-of-type(4):before { content: "Submission"; } - .registration-table td:nth-of-type(5):before { content: "Registration Status"; } - .registration-table td:nth-of-type(6):before { content: "Files to Submit"; } - .registration-table td:nth-of-type(7):before { content: "Actions"; } + .registration-table td:nth-of-type(4):before { content: "Registration Status"; } + .registration-table td:nth-of-type(5):before { content: "Actions"; } } diff --git a/apcd-cms/src/apps/admin_regis_table/templates/list_registrations.html b/apcd-cms/src/apps/admin_regis_table/templates/list_registrations.html index b9b0431f..551fb28f 100644 --- a/apcd-cms/src/apps/admin_regis_table/templates/list_registrations.html +++ b/apcd-cms/src/apps/admin_regis_table/templates/list_registrations.html @@ -36,29 +36,13 @@

List Registrations

{% for r in page %} {{r.biz_name}} - - {% if r.type == 'Pbm'%} - Pharmacy Benefit Manager (PBM) - {% else %} - {{r.type}} - {% endif %} - + {{r.type}} {{r.location}} - {{r.sub_method}} {{r.reg_status}} - - - {% include "view_registration_modal.html" %} {% include "edit_registration_modal.html" %} - {% include "create_submitter_modal.html" %}
+ {% include "create_submitter_modal.html" %} Eligibility/Enrollment* - - {% if r.view_modal_content %} - {% for file_type, file_type_selected in r.view_modal_content.files_type.items %} - {% if not forloop.first %} -
  • - -
  • - {% endif %} - {% endfor %} - {% else %} -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • - {% endif %} - - -
    - -
    - At least one of the following must be selected. -
    -
    - - -
    - - - -
    -
    {% if r.view_modal_content %}

    Entity/Entities Being Registered

    {% for entity in r.view_modal_content.entities %} @@ -451,20 +295,17 @@
    Entity {{ forloop.coun
    - Enter a 5 or 10 digit number. + Enter digits only.
    @@ -473,23 +314,63 @@
    Entity {{ forloop.coun
    - Enter a 5 digit number. + Enter digits only.
    +
    File Submission
    +
    + +
    + Eligibility/Enrollment files are mandatory. Select additional file types to be submitted. +
    +
    + +
    + + + +
    +
    Coverage Estimates is required. -
    @@ -632,20 +512,17 @@

    - Enter a 5 or 10 digit number. + Enter digits only.

    @@ -654,23 +531,85 @@

    - Enter a 5 digit number. + Enter digits only.

    +
    File Submission
    +
    + +
    + Eligibility/Enrollment files are mandatory. Select additional file types to be submitted. +
    +
    + +
    + + +
      +
    • + +
    • +
    • + +
    • +
    • + +
    • +
    • + +
    • +
    • + +
    • +
    +
    +
    Coverage Estimates