-
Notifications
You must be signed in to change notification settings - Fork 71
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-103554: View-form page #20710
Conversation
Checking composer.lock changes... |
4142c05
to
fded897
Compare
Checking composer.lock changes... |
"Launch view" button currently redirects the user to the Form Builder "Home" page. I assume this is because we have not yet implemented staging URLs in Drupal so there's no way to redirect users to the correct form right now even if an app exists for it. This is not surprising behavior, but I wanted to document it just for completeness sake. |
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.
LGTM
$buttons = $isFormViewable ? [ | ||
'primary' => [ | ||
'label' => 'Launch view', | ||
// Temporary. Send somewhere other than layout page for now. |
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 appreciate the comment here.
- Refactors theme entries for non-editable-pattern pages.
- Adds controller method for viewForm page that has two variations: available/unavailable.
- Refactors exist templates to extend these base templates where applicable. - Removes prefixes from template names.
- Changes snake_case to kebab-case for css files to match most of rest of directory structure.
fded897
to
720df89
Compare
Checking composer.lock changes... |
Cypress Accessibility Violations
|
Description
This PR puts the View-form page in place with a conditional switch between two versions:
Eventually, whether viewing of the form is available/unavailable will be tied to whether a staging url is stored in Drupal. Since we do not yet have that field, this PR temporarily implements another dummy check so that we can readily view the page in both states (when the form title is "Form 1", the viewing of the form is available, otherwise it is unavailable).
Note: The copy of these pages is not finalized/approved. This PR is to build out structural concerns. The copy will be updated at a later date.
Closes department-of-veterans-affairs/va.gov-team#103554
Testing done
Screenshots
Link to the View-form page
View-form page when form viewing is available
(As noted above, the copy is not final)

View-form page when form viewing is unavailable
(As noted above, the copy is not final)

QA steps
As a Form Builder user:
/form-builder/home
and click on "Build a form"./form-builder/form-info
.Form name
"Form 1"/form-builder/{nid}
and that the page shows "Form 1" as the subtitle./form-builder/{nid}/view-form
./form-builder/home
./form-builder/{nid}
and the page reflects this second form./form-builder/{nid}/view-form
./form-builder/{nid}
.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?