-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VACMS-18855 Add Find Forms download modal back to form detail page (#…
…2239) * VACMS-18855 Add Find Forms download modal back to form detail page * adding ID to container * Add feature flag * finishing up feature flag
- Loading branch information
Showing
3 changed files
with
112 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{% if vaForm.entityUrl.path and vaForm.entityPublished %} | ||
<a href="{{ vaForm.entityUrl.path }}"> | ||
<h3 class="vads-u-display--inline-block vads-u-text-decoration--underline">VA Form {{ vaForm.fieldVaFormNumber }}</h3> | ||
</a> | ||
{% else %} | ||
<h3 class="vads-u-display--inline-block">VA Form {{ vaForm.fieldVaFormNumber }}</h3> | ||
{% endif %} | ||
<p class="vads-u-margin-top--0 vads-u-font-size--h4 vads-u-font-weight--bold"> | ||
<dfn class="vads-u-visibility--screen-reader">Form name:</dfn> {{ vaForm.fieldVaFormName }} | ||
</p> | ||
|
||
{{ vaForm.fieldVaFormUsage.processed }} | ||
|
||
{% assign showPDFModal = ''| featureFindFormsPDFModal %} | ||
|
||
{% if showPDFModal %} | ||
<div id="{{ vaForm.fieldVaFormNumber }}-download-button-{{ vaForm.fieldVaFormLanguage }}-parent"> | ||
<button | ||
class="va-button-link vads-u-display--flex vads-u-align-items--center" | ||
data-widget-type="find-va-forms-pdf-download-helper" | ||
data-href="{{ vaForm.fieldVaFormUrl.uri }}" | ||
data-form-number="{{ vaForm.fieldVaFormNumber }}" | ||
id="{{ vaForm.fieldVaFormNumber }}-download-button-{{ vaForm.fieldVaFormLanguage }}" | ||
lang="{{ vaForm.fieldVaFormLanguage }}" | ||
> | ||
{% assign translatedDownloadText = vaForm.fieldVaFormLanguage | deriveLanguageTranslation: 'downloadVaForm', vaForm.fieldVaFormNumber %} | ||
<va-icon class="vads-u-margin-right--0p5" icon="file_download" size="3"></va-icon> | ||
{{ translatedDownloadText }} (PDF) | ||
</button> | ||
</div> | ||
{% else %} | ||
<a | ||
href="{{ vaForm.fieldVaFormUrl.uri }}" | ||
download | ||
data-form-number="{{ vaForm.fieldVaFormNumber }}" | ||
lang="{{ vaForm.fieldVaFormLanguage }}" | ||
> | ||
<va-icon | ||
class="vads-u-margin-right--0p5" | ||
icon="file_download" | ||
size="3" | ||
></va-icon> | ||
{% assign translatedDownloadText = vaForm.fieldVaFormLanguage | deriveLanguageTranslation: 'downloadVaForm', vaForm.fieldVaFormNumber %} | ||
{{ translatedDownloadText }} (PDF) | ||
</a> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters