-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from wri/feature/WRI-1314/gated-file-download
- Loading branch information
Showing
3 changed files
with
82 additions
and
3 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
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 |
---|---|---|
@@ -1,4 +1,23 @@ | ||
<a class="files-overlay-trigger-webform button">{{ "Download"|t }}</a> | ||
<a class="files-overlay-trigger button">{{ "Download"|t }}</a> | ||
<div class="files-modal"> | ||
{{ content }} | ||
</div> | ||
<div class="files-modal-unregistered"> | ||
<h1>{{ "Access the Full Report"|t }} {{ content['#object'].values.nid }}</h1> | ||
<p>{{ "Download the free full report! By accessing the full PDF, you agree to receive communications from WRI and P4G. You can unsubscribe at any time."|t }}</p> | ||
<form id="pardot-subscription"> | ||
<label for="first_name" class="visually-hidden">{{ "First Name"|t }}</label> | ||
<input type="text" id="first_name" name="first_name" class="registration" placeholder="{{ "First Name"|t }}"> | ||
<label for="last_name" class="visually-hidden">{{ "Last Name"|t }}</label> | ||
<input type="text" id="last_name" name="last_name" class="registration" placeholder="{{ "Last Name"|t }}"> | ||
<br> | ||
<label for="email" class="visually-hidden">{{ "Email"|t }}</label> | ||
<input type="email" id="email" name="email" class="registration" placeholder="{{ "Email"|t }}"> | ||
<label for="organization" class="visually-hidden">{{ "Organization"|t }}</label> | ||
<input type="text" id="organization" name="organization" class="registration" placeholder="{{ "Organization"|t }}"> | ||
<input type="hidden" id="file_path" name="file_path" value="{{ url("<current>") }}"> | ||
<br><input class="pardot-submission" type="submit" value="Submit"> | ||
<br><a id="skip-registration" href="#">{{ "No thanks, show me the files"|t }}</a> | ||
</form> | ||
</div> | ||
<div class="files-modal-registered"> | ||
{{ content }} | ||
</div> |
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