Skip to content

Commit cfe1bec

Browse files
committed
initial commit
1 parent ce384b1 commit cfe1bec

File tree

6 files changed

+68
-33
lines changed

6 files changed

+68
-33
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ When the token expires, it updates automatically.
148148
1. A name and email for a signer, and a name and email for a cc recipient.
149149

150150
### Installation steps
151-
1. Download or clone this repository to your workstation to directory **eg-03-python-auth-code-grant**
152-
1. **cd eg-03-python-auth-code-grant**
151+
1. Download or clone this repository to your workstation to directory **code-examples-python**
152+
1. **cd code-examples-python**
153153
1. **pip3 install -r requirements.txt** (or pipenv can be used)
154154
1. Make a copy of the **app/ds_config_sample.py** and name it **ds_config.py**
155155
1. Update this new file **app/ds_config.py**
@@ -178,7 +178,7 @@ To use the payments example, create a
178178
test payments gateway for your developer sandbox account.
179179

180180
See the
181-
[PAYMENTS_INSTALLATION.md](https://github.com/docusign/eg-03-python-auth-code-grant/blob/master/PAYMENTS_INSTALLATION.md)
181+
[PAYMENTS_INSTALLATION.md](https://github.com/docusign/code-examples-python/blob/master/PAYMENTS_INSTALLATION.md)
182182
file for instructions.
183183

184184
Then add the payment gateway account id to the **app/ds_config.py** file.

app/static/assets/banner-code.png

52.3 KB
Loading

app/static/assets/css.css

Lines changed: 42 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,49 @@ body {
88
}
99
#index-page h4::before {
1010
z-index: -100;
11-
display: block;
12-
content: " ";
13-
margin-top: -4rem;
14-
height: 4rem;
15-
visibility: hidden;
11+
display: block;
12+
content: " ";
13+
margin-top: -4rem;
14+
height: 4rem;
15+
visibility: hidden;
1616
pointer-events: none;
1717
}
1818

1919
.jumbotron {
20-
background: #888888;
21-
padding: 3em;
20+
21+
background: #000 !important;
22+
padding-top: 0 !important;
23+
padding-bottom: 0 !important;
24+
padding-left: 30px !important;
25+
padding-right: 30px !important;
26+
margin: 0 !important;
2227
color: white;
23-
margin: 1em auto 1.5em; }
28+
}
2429

2530
.jumbotron p {
2631
margin-top: 1em;
2732
font-size: 1.45em;
2833
}
2934

35+
.btn-docu {
36+
37+
background-color: #00BAA1;
38+
color:#FFF;
39+
border-color: #121517;
40+
}
41+
42+
.btn-docu:hover, .btn-docu:focus, .btn-docu:active, .btn-docu.active, .open .dropdown-toggle.btn-docu {
43+
background-color: #02d6ba;
44+
color:#FFF;
45+
border-color: #050607;
46+
}
47+
3048
hr.styled {
3149
overflow: visible; /* For IE */
3250
padding: 0;
3351
border: none;
34-
border-top: medium double #333;
35-
color: #333;
52+
border-top: medium double 0;
53+
color: #000;
3654
text-align: center;
3755
}
3856
hr.styled:after {
@@ -55,16 +73,16 @@ pre.json-display {
5573
background-color: ghostwhite;
5674
border: 1px solid silver;
5775
padding: 10px 20px;
58-
}
76+
}
5977
.json-key {
6078
color: brown;
61-
}
79+
}
6280
.json-value {
6381
color: navy;
64-
}
82+
}
6583
.json-string {
6684
color: olive;
67-
}
85+
}
6886

6987

7088

@@ -115,10 +133,15 @@ pre.json-display {
115133

116134
@keyframes sk-stretchdelay {
117135
0%, 40%, 100% {
118-
transform: scaleY(0.4);
119-
-webkit-transform: scaleY(0.4);
136+
transform: scaleY(0.4);
137+
-webkit-transform: scaleY(0.4);
120138
} 20% {
121-
transform: scaleY(1.0);
122-
-webkit-transform: scaleY(1.0);
123-
}
139+
transform: scaleY(1.0);
140+
-webkit-transform: scaleY(1.0);
141+
}
124142
}
143+
144+
.your-class div{
145+
float:left;
146+
margin-left: 10px;
147+
}

app/templates/base.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@
4848
</div>
4949
</nav>
5050

51-
<div class="container">
51+
<!-- <div class="container">
5252
{% if session['ds_account_name'] %}
5353
<p>DocuSign Account: {{ session['ds_account_name'] }}.</p>
54-
{% endif %}
54+
{% endif %} -->
5555

5656
<div class="col-md-12 feedback" id="feedback">
5757
<h3>Working...&nbsp;&nbsp;&nbsp;<span></span></h3>
@@ -68,7 +68,8 @@ <h3>Working...&nbsp;&nbsp;&nbsp;<span></span></h3>
6868

6969
<p id="download-continue" class="feedback"><a href="/">Continue</a></p>
7070

71-
<section id="content">
71+
<div class="container-full-bg">
72+
<section id="content" style="margin-top:-60px!important; padding-top:30px!important;">
7273
{% block content %}{% endblock %}
7374
</section>
7475
</div>

app/templates/home.html

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,29 @@
44
{% block content %}
55

66
{% if not 'ds_user_name' in session %}
7-
<!-- IF not signed in -->
8-
<div class="jumbotron">
9-
<h1 class="display-4">Welcome!</h1>
10-
<p class="Xlead">Welcome to the DocuSign Python examples using multiple OAuth flows (JWT and Authorization Code Grant).</p>
11-
</div>
7+
<!-- IF not signed in -->
8+
<div>
9+
<div class="jumbotron jumbotron-fluid"> <table>
10+
<tbody>
11+
<tr>
12+
<td>
13+
<h1 class="display-4">Python Launcher</h1>
14+
<p class="Xlead">Welcome to the DocuSign Python examples using multiple OAuth flows (JWT and Authorization Code Grant).</p>
15+
</td>
16+
<td>
17+
<img src="/static/assets/banner-code.png" />
18+
</td>
19+
</tr>
20+
</tbody>
21+
</table>
22+
</div>
1223
{% endif %}
1324

1425
<!-- Future: add a table of contents or navigation pane
1526
Eg, see https://stackoverflow.com/questions/21868610/make-column-fixed-position-in-bootstrap
1627
-->
1728

18-
<div id="index-page">
29+
<div class="container" style="margin-top: 40px" id="index-page">
1930
<h2>Welcome</h2>
2031
<p>This launcher includes the following examples for the DocuSign eSignature REST API.</p>
2132

app/templates/must_authenticate.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{% extends "base.html" %}
33

44
{% block content %}
5-
<div class="jumbotron">
5+
<div style="margin:1% 5%;">
66
<h1 class="display-4">Please Authenticate with DocuSign</h1>
77

88
<form method="post" data-busy="form" action={{ url_for("ds.ds_login") }}>
@@ -12,7 +12,7 @@ <h1 class="display-4">Please Authenticate with DocuSign</h1>
1212
<option value="code_grant">Authorization Code Grant</option>
1313
<option value="jwt">JSON Web Token</option>
1414
</select>
15-
<p class="lead">
15+
<p class="lead" style="padding-top: .5rem;">
1616
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
1717
<button type="submit" class="btn btn-primary">Authenticate with DocuSign</button>
1818
</p>

0 commit comments

Comments
 (0)