-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.html
147 lines (143 loc) · 5.31 KB
/
setup.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Setup Yathit CRM Bridge</title>
<link rel="stylesheet" type="text/css" href="css/setup.css">
<script src="jsc/ydn.msg.js"></script>
</head>
<body class="setup ydn-crm">
<h2>Getting started Yathit CRM Bridge</h2>
<div id="step-list" class="inj">
<details id="li-login">
<summary>
<span class="no">1</span>
<span class="title">Login to Yathit</span>
</summary>
<div class="detail">
<span id="user-name"></span>
<a id="user-login">Login</a>
<span id="register" style="display: none;">or <a href="https://www.yathit.com/portal/index.html">Register</a></span>
<p id="portal-login" style="display: none;">Login or register in <a href="https://www.yathit.com/portal/index.html">Yathit User Portal</a>.</p>
</div>
</details>
<details id="li-token">
<summary>
<span class="no">2</span>
<span class="title">Google credentials</span>
</summary>
<div class="detail">
</div>
</details>
<details id="li-sugarcrm">
<summary>
<span class="no">3</span>
<span class="title">SugarCRM login</span>
</summary>
<div class="detail">
</div>
<p style="font-size: 90%;">Your SugarCRM username and password are NOT sent to any server except your SugarCRM server. They are stored in this browser with encryption.</p>
</details>
<details id="li-host">
<summary>
<span class="no">4</span>
<span class="title">Server access</span>
</summary>
<div class="detail">
<div class="deny">
<button id="host-detail-permission">Grant connection permission</button>
<p>Your permission is required to connect your server from this extension.</p>
</div>
<div class="granted">
You have granted to connect your server from this extension.
</div>
</div>
</details>
<details id="li-finish">
<summary>
<span class="no">5</span>
<span class="title">Finish</span>
</summary>
<div class="detail">
<div id="close" style="display: none">
<p>All goes well!</p>
<a href="#close">Close</a> this window and reload your gmail, if necessary.
</div>
<div id="go-to-gmail">
Ready to use your <a href="https://mail.google.com">gmail</a>.
</div>
</div>
</details>
</div>
<footer>
<div id="statusbar"></div>
</footer>
<script src="lib/md5.js"></script>
<script src="js/option/model/sugarcrm.js"></script>
<script type="text/javascript" src="js/option/widget/gdata-credential.js"></script>
<script src="js/option/widget/sugarcrm.js"></script>
<script src="js/setup.js"></script>
<template id="gdata-credentail-template">
<h3>Google GData</h3>
<div class="authorize" style="display: none">
<a>Authorize</a>
<p>This extension requires your authorization to read and write your data from Google services.</p>
</div>
<div class="display" style="display: none">
<p>You have provided <span name="email"></span> Google contacts data available offline assess.<br />
Scopes: <span name="scopes"></span></p>
<a href="#" name="gdata-token-revoke">Revoke</a>
</div>
</template>
<template id="sugarcrm-template">
<style>
#sugarcrm-domain {
width: 30em;
}
</style>
<h3>SugarCRM</h3>
<form name="login-panel" class="login-panel" style="display: none">
<div class="domain">
<div><label for="sugarcrm-domain">Enter your SugarCRM web site url</label></div>
<div><input name="domain" id="sugarcrm-domain" type="text" placeholder="https://tocahz5358.sugarcrm.com/index.php" />
<span class="message"></span></div>
</div>
<div>
<div><label for="sugarcrm-username">Username</label></div>
<div><input name="username" id="sugarcrm-username" type="text"/></div>
</div>
<div>
<div><label for="sugarcrm-password">Password</label></div>
<div><input name="password" id="sugarcrm-password" type="password"/></div>
</div>
<div>
<div><label for="sugarcrm-auth">Authentication</label>
<select name="sugarcrm-auth" id="sugarcrm-auth">
<option value="" selected>Default</option>
<option value="ldap">SSO</option>
</select></div>
</div>
<div>
<div class="message"></div>
</div>
<div>
<button name="login">Login</button>
</div>
<input name="baseurl" type="text" hidden="true"/>
</form>
<div name="info-panel" style="display: none">
<div>Instance: <a name="instance"></a> <span name="instance-info"></span></div>
<div>User: <span name="user"></span></div>
<div id="grant-host-permission" style="display: none">
<button>Grant host permission</button>
<p>Your permission is required to connect to your server from this extension.</p>
</div>
</div>
<div name="remove-panel" style="display: none">
<p>
<a href="#" name="remove">Remove</a>
</p>
</div>
</template>
</body>
</html>