Skip to content

Commit e86b398

Browse files
task/WP-329 and bug/WP-330: Fixes for registration form (#236)
* Re-number superscripts - numbers 5, 6, and 7 are now 2, 3, and 4, and previous 2,3,4 are removed * Escape hyphen in regex for phone and email fields on contacts
1 parent 0ee18f6 commit e86b398

File tree

3 files changed

+19
-21
lines changed

3 files changed

+19
-21
lines changed

apcd-cms/src/apps/registrations/templates/submission_form/registration_form_body.html

+10-10
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ <h5 id="entity_header_{{ent_no}}_{{r.reg_id}}">Entity {{ ent_no }}</h5>
270270
<div class="field-wrapper textinput">
271271
<div class="field-errors" style="display: none"></div>
272272

273-
<label for="fein_{{ent_no}}_{{r.reg_id}}"> FEIN<sup>5</sup> </label>
273+
<label for="fein_{{ent_no}}_{{r.reg_id}}"> FEIN<sup>2</sup> </label>
274274

275275
<input
276276
type="text"
@@ -313,7 +313,7 @@ <h5 id="entity_header_{{ent_no}}_{{r.reg_id}}">Entity {{ ent_no }}</h5>
313313
<div class="field-wrapper textinput">
314314
<div class="field-errors" style="display: none"></div>
315315

316-
<label for="naic_company_code_{{ent_no}}_{{r.reg_id}}"> NAIC<sup>6</sup> Company Code </label>
316+
<label for="naic_company_code_{{ent_no}}_{{r.reg_id}}"> NAIC<sup>3</sup> Company Code </label>
317317

318318
<input
319319
type="number"
@@ -450,7 +450,7 @@ <h6>
450450
<div class="field-errors" style="display: none"></div>
451451

452452
<label for="total_claims_value_{{ent_no}}_{{r.reg_id}}">
453-
Total Claims Value (USD<sup>7</sup>)<span class="asterisk">*</span>
453+
Total Claims Value (USD<sup>4</sup>)<span class="asterisk">*</span>
454454
</label>
455455

456456
<span class="s-affixed-input-wrapper__prefix">$</span>
@@ -517,7 +517,7 @@ <h4>
517517
<div class="field-wrapper textinput">
518518
<div class="field-errors" style="display: none"></div>
519519

520-
<label for="fein_1"> FEIN<sup>5</sup> </label>
520+
<label for="fein_1"> FEIN<sup>2</sup> </label>
521521

522522
<input
523523
type="text"
@@ -560,7 +560,7 @@ <h4>
560560
<div class="field-wrapper textinput">
561561
<div class="field-errors" style="display: none"></div>
562562

563-
<label for="naic_company_code_1"> NAIC<sup>6</sup> Company Code </label>
563+
<label for="naic_company_code_1"> NAIC<sup>3</sup> Company Code </label>
564564

565565
<input
566566
type="number"
@@ -737,7 +737,7 @@ <h6>
737737
<div class="field-errors" style="display: none"></div>
738738

739739
<label for="total_claims_value_1">
740-
Total Claims Value (USD<sup>7</sup>)<span class="asterisk">*</span>
740+
Total Claims Value (USD<sup>4</sup>)<span class="asterisk">*</span>
741741
</label>
742742

743743
<span class="s-affixed-input-wrapper__prefix">$</span>
@@ -815,7 +815,7 @@ <h5 id="contact_header_{{ forloop.counter }}_{{r.reg_id}}">Contact {{ forloop.co
815815
class="telephoneinput"
816816
id="contact_phone_{{forloop.counter}}_{{r.reg_id}}"
817817
inputmode="tel"
818-
pattern="^(\+0?1\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$"
818+
pattern="^(\+0?1\s)?\(?\d{3}\)?[\s.\-]\d{3}[\s.\-]\d{4}$"
819819
value="{{ contact.phone }}"
820820
/>
821821

@@ -853,7 +853,7 @@ <h5 id="contact_header_{{ forloop.counter }}_{{r.reg_id}}">Contact {{ forloop.co
853853
required
854854
class="emailinput"
855855
id="contact_email_{{forloop.counter}}_{{r.reg_id}}"
856-
pattern="^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[a-z]{2,4}$"
856+
pattern="^[A-Za-z0-9._%+\-]+@[A-Za-z0-9.\-]+\.[a-z]{2,4}$"
857857
value="{{ contact.email }}"
858858
/>
859859
</div>
@@ -932,7 +932,7 @@ <h4 id="contact_header_1">Contact Information</h4>
932932
class="telephoneinput"
933933
id="contact_phone"
934934
inputmode="tel"
935-
pattern="^(\+0?1\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$"
935+
pattern="^(\+0?1\s)?\(?\d{3}\)?[\s.\-]\d{3}[\s.\-]\d{4}$"
936936
/>
937937

938938
<div id="help-text-contact_phone" class="help-text">
@@ -969,7 +969,7 @@ <h4 id="contact_header_1">Contact Information</h4>
969969
required
970970
class="emailinput"
971971
id="contact_email"
972-
pattern="^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[a-z]{2,4}$"
972+
pattern="^[A-Za-z0-9._%+\-]+@[A-Za-z0-9.\-]+\.[a-z]{2,4}$"
973973
/>
974974
</div>
975975
<div class="field-wrapper checkboxinput">

apcd-cms/src/apps/registrations/templates/submission_form/registration_form_scripts.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
<div class="o-grid o-grid--col-auto-count">
126126
<div class="field-wrapper textinput">
127127
<div class="field-errors" style="display: none"></div>
128-
<label for="fein_${entities}{% if r %}_{{r.reg_id}}{% endif %}"> FEIN<sup>5</sup> </label>
128+
<label for="fein_${entities}{% if r %}_{{r.reg_id}}{% endif %}"> FEIN<sup>2</sup> </label>
129129
<input
130130
type="text"
131131
name="fein_${entities}{% if r %}_{{r.reg_id}}{% endif %}"
@@ -162,7 +162,7 @@
162162
</div>
163163
<div class="field-wrapper textinput">
164164
<div class="field-errors" style="display: none"></div>
165-
<label for="naic_company_code_${entities}{% if r %}_{{r.reg_id}}{% endif %}"> NAIC<sup>6</sup> Company Code </label>
165+
<label for="naic_company_code_${entities}{% if r %}_{{r.reg_id}}{% endif %}"> NAIC<sup>3</sup> Company Code </label>
166166
<input
167167
type="number"
168168
name="naic_company_code_${entities}{% if r %}_{{r.reg_id}}{% endif %}"
@@ -329,7 +329,7 @@ <h6>
329329
<div class="field-wrapper numberinput required s-affixed-input-wrapper s-affixed-input-wrapper--prefix">
330330
<div class="field-errors" style="display: none"></div>
331331
<label for="total_claims_value_${entities}{% if r %}_{{r.reg_id}}{% endif %}">
332-
Total Claims Value (USD<sup>7</sup>)<span class="asterisk">*</span>
332+
Total Claims Value (USD<sup>4</sup>)<span class="asterisk">*</span>
333333
</label>
334334
<span class="s-affixed-input-wrapper__prefix">$</span>
335335
<input
@@ -433,7 +433,7 @@ <h6>
433433
class="telephoneinput"
434434
id="contact_phone_${contacts}{% if r %}_{{r.reg_id}}{% endif %}"
435435
inputmode="tel"
436-
pattern="^(\\+0?1\\s)?\\(?\\d{3}\\)?[\\s.-]\\d{3}[\\s.-]\\d{4}$"
436+
pattern="^(\\+0?1\\s)?\\(?\\d{3}\\)?[\\s.\\-]\\d{3}[\\s.\\-]\\d{4}$"
437437
/>
438438
<div id="help-text-contact_phone_${contacts}" class="help-text">
439439
<details>
@@ -464,7 +464,7 @@ <h6>
464464
autocomplete="email"
465465
required
466466
class="emailinput"
467-
pattern="^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[a-z]{2,4}$"
467+
pattern="^[A-Za-z0-9._%+\\-]+@[A-Za-z0-9.\\-]+\.[a-z]{2,4}$"
468468
id="contact_email_${contacts}{% if r %}_{{r.reg_id}}{% endif %}"
469469
/>
470470
</div>

apcd-cms/src/apps/registrations/templates/submission_form/submission_form.html

+4-6
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,10 @@ <h4>Organization</h4>
6767
<p>
6868
<small
6969
>¹ Third Party Administrator / Administrative Services Only (TPA/ASO)<br />
70-
² Secure File Transfer Protocol (SFTP)<br />
71-
³ Hypertext Transfer Protocol Secure (HTTPS)<br />
72-
⁴ Universal Serial Bus (USB)<br />
73-
⁵ Federal Employer Identification Number (FEIN)<br />
74-
⁶ National Association of Insurance Commissioners (NAIC)<br />
75-
⁷ United States Dollar (USD)</small
70+
² Federal Employer Identification Number (FEIN)<br />
71+
³ National Association of Insurance Commissioners (NAIC)<br />
72+
⁴ United States Dollar (USD)<br />
73+
</small
7674
>
7775
</p>
7876
<hr />

0 commit comments

Comments
 (0)