1- <!doctype html>
2- < html lang ="en ">
3- < head >
4- < meta charset ="utf-8 ">
5- < meta name ="viewport " content ="width=device-width, initial-scale=1, shrink-to-fit=no ">
6- < meta name ="description " content ="">
7- < meta name ="author " content ="">
8- < link rel ="icon " href ="{{ url_for('static', filename='assets/favicon.ico') }} ">
9- < title > {{ title }}</ title >
10- <!-- Bootstrap core CSS -->
11- < link rel ="stylesheet " href ="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css "
12- integrity ="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO " crossorigin ="anonymous ">
13- <!-- Custom styles for this template -->
14- </ head >
1+ <!-- extend base layout --> {% extends "base.html" %} {% block content %}
152
16- < body >
17- < nav class ="navbar navbar-expand-md navbar-dark bg-dark fixed-top ">
18- < a class ="navbar-brand " target ="_blank " href ="https://developers.docusign.com "> DocuSign Developer</ a >
19- < button class ="navbar-toggler " type ="button " data-toggle ="collapse " data-target ="#navbarsExampleDefault "
20- aria-controls ="navbarsExampleDefault " aria-expanded ="false " aria-label ="Toggle navigation ">
21- < span class ="navbar-toggler-icon "> </ span >
22- </ button >
23- < div class ="collapse navbar-collapse " id ="navbarsExampleDefault ">
24- < ul class ="navbar-nav mr-auto "> </ ul >
25- {% if session['ds_user_name'] %}
26- < span class ="navbar-text ">
27- Welcome {{ session['ds_user_name'] }}
28- </ span >
29- {% endif %}
30- </ div >
31- </ nav >
32- < div class ="container ">
33- < section id ="content " style ="padding-top: 90px; ">
34- < h4 > Request a signature through your app (embedded signing)</ h4 >
35- < p > Sends an envelope, then uses embedded signing for the first signer. With embedded signing, DocuSign signing is
36- initiated from your website.</ p >
3+ {% include 'example_info.html' %}
374
38- {% if show_doc %}
39- < p > < a target =' _blank ' href =' {{ documentation | safe }} ' > Documentation </ a > about this example. </ p >
40- {% endif %}
5+ {% set signer_form_index = 0 %}
6+ {% set signer_email_index = 0 %}
7+ {% set signer_name_index = 1 %}
418
42- < p > API methods used:
43- < a target ='_blank '
44- href ="https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/envelopes/create/ "> Envelopes::create</ a >
45- and
46- < a target ='_blank '
47- href ="https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/envelopeviews/createrecipient/ "> EnvelopeViews::createRecipient</ a > .
48- </ p >
49- < p >
50- View source file < a target ="_blank " href ="{{ source_url | safe }} "> {{ source_file }}</ a > on GitHub.
51- </ p >
9+ < form class ="eg " action ="" method ="post " data-busy ="form ">
10+ {% if 'FormName' in example['Forms'][signer_form_index] %}
11+ < p > {{ example['Forms'][signer_form_index]['FormName'] | safe }}</ p >
12+ {% endif %}
5213
53- < form class ="eg " action ="" method ="post " data-busy ="form ">
54- < div class ="form-group ">
55- < label for ="signer_email "> Signer Email</ label >
56- < input type ="email " class ="form-control " id ="signer_email " name ="signer_email "
57- aria-describedby ="emailHelp " placeholder ="pat@example.com " required
58- value ="{{ signer_email }} ">
59- < small id ="emailHelp " class ="form-text text-muted "> We'll never share your email with anyone else.</ small >
60- </ div >
61- < div class ="form-group ">
62- < label for ="signer_name "> {{ example['Forms'][recipient_form_index]['Inputs'][signer_name_index]['InputName'] }}</ label >
63- < input type ="text " class ="form-control " id ="signer_name " placeholder ="Pat Johnson " name ="signer_name "
64- value ="{{ signer_name }} " required >
65- </ div >
66- < input type ="hidden " name ="csrf_token " value ="{{ csrf_token() }} "/>
67- < button type ="submit " class ="btn btn-docu "> Submit</ button >
68- </ form >
69- </ section >
70- </ div >
71- </ body >
72- </ html >
14+ < div class ="form-group ">
15+ < label for ="signer_email "> {{ example['Forms'][signer_form_index]['Inputs'][signer_email_index]['InputName'] }}</ label >
16+ < input type ="email " class ="form-control " id ="signer_email " name ="signer_email "
17+ aria-describedby ="emailHelp " placeholder ="{{ example['Forms'][signer_form_index]['Inputs'][signer_email_index]['InputPlaceholder'] }} " required
18+ value ="{{ signer_email }} ">
19+ < small id ="emailHelp " class ="form-text text-muted "> {{ session['manifest']['SupportingTexts']['HelpingTexts']['EmailWontBeShared'] | safe}}</ small >
20+ </ div >
21+ < div class ="form-group ">
22+ < label for ="signer_name "> {{ example['Forms'][signer_form_index]['Inputs'][signer_name_index]['InputName'] }}</ label >
23+ < input type ="text " class ="form-control " id ="signer_name " placeholder ="{{ example['Forms'][signer_form_index]['Inputs'][signer_name_index]['InputPlaceholder'] }} " name ="signer_name "
24+ value ="{{ signer_name }} " required >
25+ </ div >
26+ < input type ="hidden " name ="csrf_token " value ="{{ csrf_token() }} "/>
27+ {% include 'submit_button.html' %}
28+ </ form >
29+
30+ {% endblock %}
0 commit comments