From faec59fb661da481367ba6213b82765ad79d4332 Mon Sep 17 00:00:00 2001 From: edmondsgarrett <43251554+edmondsgarrett@users.noreply.github.com> Date: Fri, 10 Nov 2023 15:58:49 -0600 Subject: [PATCH] task/WP-381 and WP-382: Reg form updates (#248) * Convert entity license + NAIC fields to str inputs with regex restricting successful input to ints * Simplify state drop down - now show full state abbreviation + name --- .../registrations/css/submission_form.css | 7 - .../registration_form_body.html | 128 +++++++++--------- .../registration_form_scripts.html | 37 +---- 3 files changed, 67 insertions(+), 105 deletions(-) diff --git a/apcd-cms/src/apps/registrations/static/registrations/css/submission_form.css b/apcd-cms/src/apps/registrations/static/registrations/css/submission_form.css index 673d4a17..515746e7 100644 --- a/apcd-cms/src/apps/registrations/static/registrations/css/submission_form.css +++ b/apcd-cms/src/apps/registrations/static/registrations/css/submission_form.css @@ -9,13 +9,6 @@ input[name^="zip_code"] { width: 10ch; box-sizing: content-box; } -select[name^="state"] { - --length: 2.5ch; - --ui-buffer: 2.5ch; /* to make room for dropdown arrows */ - - width: calc( var(--length) + var(--ui-buffer) ); - box-sizing: content-box; -} /* for a Contact */ input[name^="contact_phone"] { width: 17ch; diff --git a/apcd-cms/src/apps/registrations/templates/submission_form/registration_form_body.html b/apcd-cms/src/apps/registrations/templates/submission_form/registration_form_body.html index b5f26e12..4f0221e4 100644 --- a/apcd-cms/src/apps/registrations/templates/submission_form/registration_form_body.html +++ b/apcd-cms/src/apps/registrations/templates/submission_form/registration_form_body.html @@ -161,72 +161,72 @@ name="state" required="required" class="choicefield" - id="state{% if r %}_{{r.reg_id}}{% endif%}" + id="state" > {% if r.view_modal_content %} {% for state in r.view_modal_content.us_state_list %} - {% endfor %} {% else %} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {% endif %} @@ -559,14 +559,13 @@