Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
paigesrossi committed Mar 22, 2024
2 parents 1ff564d + 7d5c2fd commit 5a02588
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
1 change: 1 addition & 0 deletions app/eSignature/examples/eg040_document_visibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def make_envelope(cls, args, doc_docx_path, doc_pdf_path):
"""
env = EnvelopeDefinition(
email_subject = "Please sign this document set",
enforce_signer_visibility = "true",
)

doc1_b64 = base64.b64encode(bytes(cls.create_document1(args), "utf-8")).decode("ascii")
Expand Down
28 changes: 15 additions & 13 deletions app/templates/eSignature/eg040_document_visibility.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,45 @@
{% include 'example_info.html' %}

{% set recipient_form_index = 0 %}
{% set signer_email_index = 0 %}
{% set signer_name_index = 1 %}
{% set cc_email_index = 2 %}
{% set cc_name_index = 3 %}
{% set signer1_email_index = 0 %}
{% set signer1_name_index = 1 %}
{% set signer2_email_index = 2 %}
{% set signer2_name_index = 3 %}
{% set cc_email_index = 4 %}
{% set cc_name_index = 5 %}

<form class="eg" action="" method="post" data-busy="form">
{% if 'FormName' in example['Forms'][recipient_form_index] %}
<p>{{ example['Forms'][recipient_form_index]['FormName'] | safe }}</p>
{% endif %}

<div class="form-group">
<label for="signer1_email">{{ example['Forms'][recipient_form_index]['Inputs'][signer_email_index]['InputName'] }}</label>
<label for="signer1_email">{{ example['Forms'][recipient_form_index]['Inputs'][signer1_email_index]['InputName'] }}</label>
<input type="email" class="form-control" id="signer1_email" name="signer1_email"
aria-describedby="emailHelp" placeholder="{{ example['Forms'][recipient_form_index]['Inputs'][cc_name_index]['InputPlaceholder'] }}" required
aria-describedby="emailHelp" placeholder="{{ example['Forms'][recipient_form_index]['Inputs'][signer1_email_index]['InputPlaceholder'] }}" required
value="{{ signer1_email }}" />
<small id="emailHelp" class="form-text text-muted">{{ session['manifest']['SupportingTexts']['HelpingTexts']['EmailWontBeShared'] | safe}}</small>
</div>
<div class="form-group">
<label for="signer1_name">{{ example['Forms'][recipient_form_index]['Inputs'][signer_email_index]['InputName'] }}</label>
<input type="text" class="form-control" id="signer1_name" placeholder="{{ example['Forms'][recipient_form_index]['Inputs'][cc_name_index]['InputPlaceholder'] }}" name="signer1_name"
<label for="signer1_name">{{ example['Forms'][recipient_form_index]['Inputs'][signer1_name_index]['InputName'] }}</label>
<input type="text" class="form-control" id="signer1_name" placeholder="{{ example['Forms'][recipient_form_index]['Inputs'][signer1_name_index]['InputPlaceholder'] }}" name="signer1_name"
value="{{ signer1_name }}" required />
</div>
<div class="form-group">
<label for="signer2_email">{{ example['Forms'][recipient_form_index]['Inputs'][signer_email_index]['InputName'] }}</label>
<input type="text" class="form-control" id="signer2_email" placeholder="{{ example['Forms'][recipient_form_index]['Inputs'][cc_name_index]['InputPlaceholder'] }}" name="signer2_email"
<label for="signer2_email">{{ example['Forms'][recipient_form_index]['Inputs'][signer2_email_index]['InputName'] }}</label>
<input type="text" class="form-control" id="signer2_email" placeholder="{{ example['Forms'][recipient_form_index]['Inputs'][signer2_email_index]['InputPlaceholder'] }}" name="signer2_email"
value="{{ signer2_email }}" required />
<small id="emailHelp" class="form-text text-muted">{{ session['manifest']['SupportingTexts']['HelpingTexts']['EmailWontBeShared'] | safe}}</small>
</div>
<div class="form-group">
<label for="signer2_name">{{ example['Forms'][recipient_form_index]['Inputs'][signer_email_index]['InputName'] }}</label>
<input type="text" class="form-control" id="signer2_name" placeholder="{{ example['Forms'][recipient_form_index]['Inputs'][cc_name_index]['InputPlaceholder'] }}" name="signer2_name"
<label for="signer2_name">{{ example['Forms'][recipient_form_index]['Inputs'][signer2_name_index]['InputName'] }}</label>
<input type="text" class="form-control" id="signer2_name" placeholder="{{ example['Forms'][recipient_form_index]['Inputs'][signer2_name_index]['InputPlaceholder'] }}" name="signer2_name"
value="{{ signer2_name }}" required />
</div>
<div class="form-group">
<label for="cc_email">{{ example['Forms'][recipient_form_index]['Inputs'][cc_email_index]['InputName'] }}</label>
<input type="email" class="form-control" id="cc_email" name="cc_email"
aria-describedby="emailHelp" placeholder="{{ example['Forms'][recipient_form_index]['Inputs'][cc_name_index]['InputPlaceholder'] }}" required />
aria-describedby="emailHelp" placeholder="{{ example['Forms'][recipient_form_index]['Inputs'][cc_email_index]['InputPlaceholder'] }}" required />
<small id="emailHelp" class="form-text text-muted">The email for the cc recipient must be different from the signer emails.</small>
</div>
<div class="form-group">
Expand Down

0 comments on commit 5a02588

Please sign in to comment.