Skip to content

Commit

Permalink
task/WP-481: Registration form updates (#270)
Browse files Browse the repository at this point in the history
* Add helper text for registration year + entity claims and encounters volume. Change 'Role' label to 'Company Role'.

* For edit/renew, move help text div to have correct placement of message

* On adding entities, move claims and encounters volume help text below corresponding field

---------

Co-authored-by: Garrett Edmonds <[email protected]>
Co-authored-by: Chandra Y <[email protected]>
  • Loading branch information
3 people committed Feb 9, 2024
1 parent 707b6f3 commit aa46674
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
value='{% if renew %}{{r.year|add:"1"}}{% else %}{{r.year}}{% endif %}'
required
>

<div class="help-text">
Enter the registration year. Must be 2023 or later.
</div>
</div>

<div class="field-wrapper select required">
Expand Down Expand Up @@ -467,6 +471,10 @@ <h6>
pattern="^[1-9]+[0-9]*$"
value="{% if not renew %}{{ entity.claim_and_enc_vol }}{% endif %}"
/>

<div class="help-text">
Enter a whole number.
</div>
</div>

<div class="field-wrapper numberinput required s-affixed-input-wrapper s-affixed-input-wrapper--prefix">
Expand Down Expand Up @@ -758,6 +766,10 @@ <h6>
inputmode="numeric"
pattern="^[1-9]+[0-9]*$"
/>

<div class="help-text">
Enter a whole number.
</div>
</div>

<div class="field-wrapper numberinput required s-affixed-input-wrapper s-affixed-input-wrapper--prefix">
Expand Down Expand Up @@ -801,7 +813,7 @@ <h5 id="contact_header_{{ forloop.counter }}_{{r.reg_id}}">Contact {{ forloop.co
<div class="field-errors" style="display: none"></div>

<label for="contact_type_{{forloop.counter}}_{{r.reg_id}}">
Role<span class="asterisk">*</span>
Company Role<span class="asterisk">*</span>
</label>

<input
Expand Down Expand Up @@ -923,7 +935,7 @@ <h4 id="contact_header_1">Contact Information</h4>
<div class="field-errors" style="display: none"></div>

<label for="contact_type">
Role<span class="asterisk">*</span>
Company Role<span class="asterisk">*</span>
</label>

<input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ <h6>
pattern="^[1-9]+[0-9]*$"
/>
<div id="help-text-claims_encounters_volume_${entities}" class="help-text">
Enter a whole number.
</div>
</div>
<div class="field-wrapper numberinput required s-affixed-input-wrapper s-affixed-input-wrapper--prefix">
Expand Down Expand Up @@ -434,7 +435,7 @@ <h6>
contactBlock.innerHTML = `
<div class="field-wrapper textinput required">
<div class="field-errors" style="display: none"></div>
<label for="contact_type_${contacts}${reg_id_substr}"> Role<span class="asterisk">*</span> </label>
<label for="contact_type_${contacts}${reg_id_substr}"> Company Role<span class="asterisk">*</span> </label>
<input
type="text"
name="contact_type_${contacts}${reg_id_substr}"
Expand Down

0 comments on commit aa46674

Please sign in to comment.