-
Notifications
You must be signed in to change notification settings - Fork 70
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
VAGOV-TEAM-99444: Form Info page #20311
Conversation
Checking composer.lock changes... |
Checking composer.lock changes... |
Checking composer.lock changes... |
Checking composer.lock changes... |
Checking composer.lock changes... |
Checking composer.lock changes... |
Checking composer.lock changes... |
2de78db
to
175f283
Compare
Checking composer.lock changes... |
Checking composer.lock changes... |
Checking composer.lock changes... |
* After initially containing some logic, this function | ||
* is now empty, and this entire class is a candiate | ||
* for removal. Leaving it here for now, as it might prove | ||
* necessary as we continue on. |
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 base class was initially used, then went through a time where the only logic it had was removed. Now, the need for two layers here (three separate base classes) has gone away, and this class is the only base class, so a lot of the logic from the others has been moved in here and this class has gotten new life.
// Add form themes. | ||
$forms = ['form_info']; | ||
foreach ($forms as $form) { | ||
$theme['form__va_gov_form_builder__' . $form] = [ | ||
'path' => $path . '/templates/form', | ||
'render element' => 'form', | ||
]; | ||
} |
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 steps for making a custom template work for a form page:
- Register the theme in hook_theme.
- Set the form
#theme
as the theme registered in step 1. - Create the twig template and name in accordance with theme key registered in step 1.
$this->isCreate = FALSE; | ||
} | ||
|
||
$form['#theme'] = 'form__va_gov_form_builder__form_info'; |
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 steps for making a custom template work for a form page:
- Register the theme in hook_theme.
- Set the form
#theme
as the theme registered in step 1. - Create the twig template and name in accordance with theme key registered in step 1.
@@ -0,0 +1,30 @@ | |||
{# |
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 steps for making a custom template work for a form page:
- Register the theme in hook_theme.
- Set the form
#theme
as the theme registered in step 1. - Create the twig template and name in accordance with theme key registered in step 1.
… into remaining base class.
…ethods called immediately after.
- Updates test to handle change to button label.
- Removes tests related to back button. - Updates controller tests to check for populated vs. empty fields on edit vs. create mode.
046da8c
to
7f0adc4
Compare
Checking composer.lock changes... |
Cypress Accessibility Violations
|
Description
Closes department-of-veterans-affairs/va.gov-team#99444
Testing done
Screenshots
QA steps
drush scr scripts/content/form-builder.php
.test_user_form_builder
.form-builder/form-info
./form-builder/{nid}/name-and-dob
/form-builder/{nid}/form-info
/form-builder/{nid}/form-info
.Definition of Done
Select Team for PR review
CMS Team
Public websites
Facilities
User support
Accelerated Publishing
Form Engine
Is this PR blocked by another PR?
DO NOT MERGE
Does this PR need review from a Product Owner
Needs PO review
CMS user-facing announcement
Is an announcement needed to let editors know of this change?