Skip to content

Commit

Permalink
task/WP-329 and bug/WP-330: Fixes for registration form (#236)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
edmondsgarrett committed Oct 25, 2023
1 parent 0ee18f6 commit e86b398
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ <h5 id="entity_header_{{ent_no}}_{{r.reg_id}}">Entity {{ ent_no }}</h5>
<div class="field-wrapper textinput">
<div class="field-errors" style="display: none"></div>

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

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

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

<input
type="number"
Expand Down Expand Up @@ -450,7 +450,7 @@ <h6>
<div class="field-errors" style="display: none"></div>

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

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

<label for="fein_1"> FEIN<sup>5</sup> </label>
<label for="fein_1"> FEIN<sup>2</sup> </label>

<input
type="text"
Expand Down Expand Up @@ -560,7 +560,7 @@ <h4>
<div class="field-wrapper textinput">
<div class="field-errors" style="display: none"></div>

<label for="naic_company_code_1"> NAIC<sup>6</sup> Company Code </label>
<label for="naic_company_code_1"> NAIC<sup>3</sup> Company Code </label>

<input
type="number"
Expand Down Expand Up @@ -737,7 +737,7 @@ <h6>
<div class="field-errors" style="display: none"></div>

<label for="total_claims_value_1">
Total Claims Value (USD<sup>7</sup>)<span class="asterisk">*</span>
Total Claims Value (USD<sup>4</sup>)<span class="asterisk">*</span>
</label>

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

Expand Down Expand Up @@ -853,7 +853,7 @@ <h5 id="contact_header_{{ forloop.counter }}_{{r.reg_id}}">Contact {{ forloop.co
required
class="emailinput"
id="contact_email_{{forloop.counter}}_{{r.reg_id}}"
pattern="^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[a-z]{2,4}$"
pattern="^[A-Za-z0-9._%+\-]+@[A-Za-z0-9.\-]+\.[a-z]{2,4}$"
value="{{ contact.email }}"
/>
</div>
Expand Down Expand Up @@ -932,7 +932,7 @@ <h4 id="contact_header_1">Contact Information</h4>
class="telephoneinput"
id="contact_phone"
inputmode="tel"
pattern="^(\+0?1\s)?\(?\d{3}\)?[\s.-]\d{3}[\s.-]\d{4}$"
pattern="^(\+0?1\s)?\(?\d{3}\)?[\s.\-]\d{3}[\s.\-]\d{4}$"
/>

<div id="help-text-contact_phone" class="help-text">
Expand Down Expand Up @@ -969,7 +969,7 @@ <h4 id="contact_header_1">Contact Information</h4>
required
class="emailinput"
id="contact_email"
pattern="^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[a-z]{2,4}$"
pattern="^[A-Za-z0-9._%+\-]+@[A-Za-z0-9.\-]+\.[a-z]{2,4}$"
/>
</div>
<div class="field-wrapper checkboxinput">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
<div class="o-grid o-grid--col-auto-count">
<div class="field-wrapper textinput">
<div class="field-errors" style="display: none"></div>
<label for="fein_${entities}{% if r %}_{{r.reg_id}}{% endif %}"> FEIN<sup>5</sup> </label>
<label for="fein_${entities}{% if r %}_{{r.reg_id}}{% endif %}"> FEIN<sup>2</sup> </label>
<input
type="text"
name="fein_${entities}{% if r %}_{{r.reg_id}}{% endif %}"
Expand Down Expand Up @@ -162,7 +162,7 @@
</div>
<div class="field-wrapper textinput">
<div class="field-errors" style="display: none"></div>
<label for="naic_company_code_${entities}{% if r %}_{{r.reg_id}}{% endif %}"> NAIC<sup>6</sup> Company Code </label>
<label for="naic_company_code_${entities}{% if r %}_{{r.reg_id}}{% endif %}"> NAIC<sup>3</sup> Company Code </label>
<input
type="number"
name="naic_company_code_${entities}{% if r %}_{{r.reg_id}}{% endif %}"
Expand Down Expand Up @@ -329,7 +329,7 @@ <h6>
<div class="field-wrapper numberinput required s-affixed-input-wrapper s-affixed-input-wrapper--prefix">
<div class="field-errors" style="display: none"></div>
<label for="total_claims_value_${entities}{% if r %}_{{r.reg_id}}{% endif %}">
Total Claims Value (USD<sup>7</sup>)<span class="asterisk">*</span>
Total Claims Value (USD<sup>4</sup>)<span class="asterisk">*</span>
</label>
<span class="s-affixed-input-wrapper__prefix">$</span>
<input
Expand Down Expand Up @@ -433,7 +433,7 @@ <h6>
class="telephoneinput"
id="contact_phone_${contacts}{% if r %}_{{r.reg_id}}{% endif %}"
inputmode="tel"
pattern="^(\\+0?1\\s)?\\(?\\d{3}\\)?[\\s.-]\\d{3}[\\s.-]\\d{4}$"
pattern="^(\\+0?1\\s)?\\(?\\d{3}\\)?[\\s.\\-]\\d{3}[\\s.\\-]\\d{4}$"
/>
<div id="help-text-contact_phone_${contacts}" class="help-text">
<details>
Expand Down Expand Up @@ -464,7 +464,7 @@ <h6>
autocomplete="email"
required
class="emailinput"
pattern="^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[a-z]{2,4}$"
pattern="^[A-Za-z0-9._%+\\-]+@[A-Za-z0-9.\\-]+\.[a-z]{2,4}$"
id="contact_email_${contacts}{% if r %}_{{r.reg_id}}{% endif %}"
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,10 @@ <h4>Organization</h4>
<p>
<small
>¹ Third Party Administrator / Administrative Services Only (TPA/ASO)<br />
² Secure File Transfer Protocol (SFTP)<br />
³ Hypertext Transfer Protocol Secure (HTTPS)<br />
⁴ Universal Serial Bus (USB)<br />
⁵ Federal Employer Identification Number (FEIN)<br />
⁶ National Association of Insurance Commissioners (NAIC)<br />
⁷ United States Dollar (USD)</small
² Federal Employer Identification Number (FEIN)<br />
³ National Association of Insurance Commissioners (NAIC)<br />
⁴ United States Dollar (USD)<br />
</small
>
</p>
<hr />
Expand Down

0 comments on commit e86b398

Please sign in to comment.