-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure fields and data for HLR form v3 #11960
Conversation
Generated by 🚫 Danger |
Oof, looks like I exceeded the line limit even though I broke this out into two PRs... I'll remove some content |
c3d7819
to
3a7b470
Compare
3a7b470
to
e107466
Compare
appellant_local_time.strftime '%Y' | ||
end | ||
|
||
# NOTE: Rep signature is not yet supported - only veteran/claimant |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I omitted the rep signature fields because of this comment on v2 of the HLR form
|
||
def veteran_domestic_phone? | ||
# A domestic phone number will be filled in the international field if it has an extension, | ||
# because there is not enough space to fit an extension after the domestic fields. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see any handling for veteran or claimant phone extensions in v2 of this form, so I handled them the same way as in the Supplemental Claim form v3 I was just working on (#11866) - the international field will be used for a domestic number if there's an extension
FIELD_NAMES.each { |field, name| define_singleton_method(field) { name } } | ||
end | ||
|
||
def benefit_type_field(benefit_type) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The benefit type field for this form is weird - nothing has changed since v2 of the form, but as a reminder: each radio button in this conceptual "field" actually has its own unique field name, and the valid value for these fields varies. Unlike other unique radio buttons in our forms where 1
consistently means 'yes' and Off
means 'no', the benefit type fields here require different numbers to indicate 'yes', although all use Off
for 'no'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! With that said, I'm not very familiar with the PDF construction code yet, so @cilestin or @michelpmcdonald would probably be more thorough reviewers on this one. I'll comment rather than explicitly approve so that they can chime in.
Summary
Adds blank form, fields, and data for the new version 3 of the Higher-Level Review form. This is part 1 of 2 - it does not change any API behavior yet.
Version 3 of this form is mostly the same as version 2 except for a few aspects, none of which were deemed imporatant enough to warrant a new version of the HLR API itself:
Related issue(s)
Testing done
What areas of the site does it impact?
None yet - these changes will be used in my next PR.
Acceptance criteria