-
Notifications
You must be signed in to change notification settings - Fork 0
/
create-answer.html
381 lines (319 loc) · 23.9 KB
/
create-answer.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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
<!DOCTYPE html>
<html lang="en" data-gecko-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gecko Chat 2.0</title>
<link href="css/App.css" rel="stylesheet">
<link href="css/GeckoChat.css" rel="stylesheet">
<script src="https://kit.fontawesome.com/2a69ff47c3.js" crossorigin="anonymous"></script>
</head>
<body>
<div class="app-wrapper">
<!-- ======================== MENU ======================== -->
<div class="app-menu-wrapper bg-blue-900 d-flex flex-column flex-shrink-0">
<div class="app-logo d-flex align-items-center justify-content-center px-0 py-4">
<img src="img/gecko-icon.svg" alt="Gecko Chat">
</div>
<ul class="app-menu flex-column mb-auto text-center list-unstyled mt-2">
<li class="d-flex justify-content-center mb-2">
<a href="" title="Dashboard" data-bs-toggle="tooltip" data-bs-title="Dashboard" data-bs-custom-class="tooltip-menu" class="d-flex justify-content-center align-items-center rounded position-relative text-decoration-none"><i class="fa-light fa-house-blank"></i></a>
</li>
<li class="d-flex justify-content-center mb-2">
<a href="index.html" title="Conversations" data-bs-toggle="tooltip" data-bs-title="Conversations" data-bs-custom-class="tooltip-menu" class="d-flex justify-content-center align-items-center rounded position-relative text-decoration-none"><i class="fa-light fa-message-lines"></i></a>
</li>
<li class="d-flex justify-content-center mb-2">
<a href="bots.html" title="Automation" data-bs-toggle="tooltip" data-bs-title="Automation" data-bs-custom-class="tooltip-menu" class="active d-flex justify-content-center align-items-center rounded position-relative text-decoration-none"><i class="fa-light fa-circle-bolt"></i></a>
</li>
<li class="d-flex justify-content-center mb-2">
<a href="contacts.html" title="Contacts" data-bs-toggle="tooltip" data-bs-title="Contacts" data-bs-custom-class="tooltip-menu" class="d-flex justify-content-center align-items-center rounded position-relative text-decoration-none"><i class="fa-light fa-address-book"></i></a>
</li>
<li class="d-flex justify-content-center mb-2">
<a href="agents.html" title="Agents and teams" data-bs-toggle="tooltip" data-bs-title="Agents and teams" data-bs-custom-class="tooltip-menu" class="d-flex justify-content-center align-items-center rounded position-relative text-decoration-none"><i class="fa-light fa-users"></i></a>
</li>
<li class="d-flex justify-content-center mb-2">
<a href="workflows.html" title="Workflows" data-bs-toggle="tooltip" data-bs-title="Workflows" data-bs-custom-class="tooltip-menu" class="d-flex justify-content-center align-items-center rounded position-relative text-decoration-none"><i class="fa-light fa-route"></i></a>
</li>
<li class="d-flex justify-content-center mb-2">
<a href="stats.html" title="Data and reporting" data-bs-toggle="tooltip" data-bs-title="Data and reporting" data-bs-custom-class="tooltip-menu" class="d-flex justify-content-center align-items-center rounded position-relative text-decoration-none"><i class="fa-light fa-chart-line"></i></a>
</li>
</ul>
<div class="user-menu">
<ul class="app-menu flex-column mb-auto text-center list-unstyled">
<li class="d-flex justify-content-center mb-2">
<span class="menu-modal-btn" data-bs-toggle="modal" data-bs-target="#search-modal">
<a title="Search" role="button" data-bs-toggle="tooltip" data-bs-title="Search" data-bs-custom-class="tooltip-menu" class="d-flex justify-content-center align-items-center rounded position-relative text-decoration-none"><i class="fa-light fa-search"></i></a>
</span>
</li>
<li class="d-flex justify-content-center mb-2">
<a href="settings.html" title="Settings" data-bs-toggle="tooltip" data-bs-title="Settings" data-bs-custom-class="tooltip-menu" class="d-flex justify-content-center align-items-center rounded position-relative text-decoration-none"><i class="fa-light fa-cog"></i></a>
</li>
</ul>
<div class="dropdown dropend">
<div class="avatar justify-content-center p-4" id="dropdownUser" data-bs-toggle="dropdown">
<div class="avatar-body avatar-online">
<img src="img/avatar-ly.png" alt="Liam Young">
</div>
</div>
<div class="dropdown-menu dropdown-menu-end" aria-labelledby="dropdownUser">
<a class="dropdown-item" href="#">Set status as <strong>unavailable</strong></a>
<hr class="dropdown-divider">
<a class="dropdown-item" href="#">Switch to dark mode</a>
<a class="dropdown-item" href="#">Agent settings</a>
<a class="dropdown-item" href="#">Security preferences</a>
<a class="dropdown-item" href="#">My accounts</a>
<hr class="dropdown-divider">
<a class="dropdown-item" href="#">Service status</a>
<a class="dropdown-item" href="#">Gecko academy</a>
<a class="dropdown-item" href="#">Contact support</a>
<a class="dropdown-item" href="#">Product changes</a>
<a class="dropdown-item" href="#">Suggest a feature</a>
<hr class="dropdown-divider">
<a class="delete dropdown-item" href="#">Logout</a>
</div>
</div>
</div>
</div>
<div class="app-body">
<div class="app-body-wrapper">
<div class="app-body-header bg-white border-bottom p-6 pb-0">
<div class="d-flex justify-content-between align-items-center pb-6">
<div class="header-details">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#" title="Home"><i class="far fa-house-blank"></i></a></li>
<li class="breadcrumb-item"><a href="bots.html" title="Automation">Automation</a></li>
<li class="breadcrumb-item active" aria-current="page">Create answer</li>
</ol>
</nav>
<h1 class="mb-0">Create an answer</h1>
<span>Create an answer and let your bot handle every day queries.</span>
</div>
<div class="header-actions d-flex">
<button type="button" class="btn-icon-left btn btn-outline-primary me-2">
<i class="far fa-xmark"></i> Cancel
</button>
<button type="button" class="btn-icon-left btn btn-primary">
<i class="far fa-check-double"></i> Save answer
</button>
</div>
</div>
</div>
<div class="app-body-content p-6">
<div class="answer card border shadow-none">
<div class="card-body">
<div class="answer-basic-info mb-8 pb-8 border-bottom">
<div class="mb-4">
<h2 class="mb-0">Basic information</h2>
<p class="text-secondary">Name and tag your answer for internal management.</p>
</div>
<form>
<div class="mb-3">
<label for="answer-title" class="form-label">Answer title <span class="required text-red-600">*</span></label>
<input type="text" class="form-control" id="answer-title">
<div class="form-text mt-1">
The title of your answer will not be visible to the student, they will see one of the sample questions if we are verifying their intent.
</div>
</div>
<div>
<label class="form-label">Tags</label>
<select class="form-select" aria-label="Default select example">
<option selected>Select tags</option>
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
</div>
</form>
</div>
<div class="answer-build mb-8 pb-8 border-bottom">
<div class="mb-4">
<h2 class="mb-0">Build answer</h2>
<p class="text-secondary">Choose how to reply to the questions asked.</p>
</div>
<form>
<div class="mb-3">
<label for="answer-title" class="form-label d-flex">Respond to the question with <span class="required text-red-600">*</span></label>
<div role="group" class="btn-checkbox-group btn-checkbox-icon btn-group">
<input class="btn-check" name="radio-check-icon" type="radio" autocomplete="off" id="tbg-check-4" value="4" checked>
<label tabindex="-1" for="tbg-check-4" class="btn-radio btn btn-outline-primary">
<div class="btn-check-body">
<i class="btn-check-icon far fa-comment-captions"></i>Answer
</div>
</label>
<input class="btn-check" name="radio-check-icon" type="radio" autocomplete="off" id="tbg-check-5" value="5">
<label tabindex="-1" for="tbg-check-5" class="btn-radio btn btn-outline-primary">
<div class="btn-check-body">
<i class="btn-check-icon far fa-list-tree"></i>Skill
</div>
</label>
</div>
</div>
<div div class="mb-3">
<label class="form-label" for="exampleFormControlTextarea1">Compose answer <span class="required text-red-600">*</span></label>
<textarea class="form-control" id="exampleFormControlTextarea1" rows="8"></textarea>
</div>
<div>
<button type="button" class="btn-icon-left btn btn-secondary">
<i class="far fa-comment-plus" aria-hidden="true"></i> Add another message
</button>
</div>
</form>
</div>
<div class="question-build">
<div class="mb-4">
<h2 class="mb-0">Questions</h2>
<p class="text-secondary">We recommend at least 10 variations on a question to allow us to predict the intent of the message more accurately.</p>
</div>
<form>
<div class="mb-6">
<div class="d-flex align-items-end">
<div class="d-flex flex-column flex-grow-1 me-2">
<label class="form-label" for="ask-question">Ask a question <span class="required text-red-600">*</span></label>
<input type="text" class="form-control" aria-label="" aria-describedby="" id="ask-question">
</div>
<button type="button" class="btn-icon-left btn btn-secondary">
<i class="far fa-plus" aria-hidden="true"></i> Add question
</button>
</div>
</div>
<div div class="mb-8">
<label class="form-label">Question bank</label>
<div class="d-flex align-items-center mb-2">
<span class="fw-medium me-2">Q1</span>
<input type="text" class="form-control" placeholder="Where is the library?" aria-describedby="" title="Question">
<button type="button" class="btn-icon btn btn-outline-primary ms-2" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="Clone this question" title="Clone">
<i class="far fa-clone"></i>
</button>
<button type="button" class="btn-icon btn btn-outline-danger ms-2" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="Delete this question" title="Delete">
<i class="far fa-trash-alt"></i>
</button>
</div>
<div class="d-flex align-items-center mb-2">
<span class="fw-medium me-2">Q2</span>
<input type="text" class="form-control" placeholder="Whar's the library, neeber?" aria-describedby="">
<button type="button" class="btn-icon btn btn-outline-primary ms-2" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="Clone this question" title="Clone">
<i class="far fa-clone"></i>
</button>
<button type="button" class="btn-icon btn btn-outline-danger ms-2" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="Delete this question" title="Delete">
<i class="far fa-trash-alt"></i>
</button>
</div>
</div>
<div class="answer-training-level bg-grey-50 rounded p-4 d-flex flex-row align-items-center">
<div class="progress-ring-container me-2">
<div class="progress-ring">
<svg height="60" width="60">
<circle cx="30" cy="30" r="22" fill="none" stroke="#FDB9C2" stroke-width="4"></circle>
<circle stroke="#E11D48" fill="transparent" stroke-width="4" stroke-dasharray="138.23007675795088 138.23007675795088" r="22" cx="30" cy="30" style="stroke-dashoffset: 390;"></circle>
<text x="50%" y="50%" text-anchor="middle" stroke="#9F1239" stroke-width="1px" dy=".3em" style="font-family: inherit; font-size: 12px;">20%</text>
</svg>
</div>
</div>
<div class="bot-metric-meta">
<h4 class="mb-0">Recommended number of questions not set</h4>
<span class="fs-3 text-secondary">You have set 2 questions. For optimal results we recommend adding at least 10 variations of your question.</span>
</div>
</div>
</form>
</div>
</div>
<div class="card-footer">
<div class="footer-container">
<div class="footer-col-right">
<button type="button" class="btn-icon-left btn btn-outline-primary">
<i class="far fa-xmark"></i> Cancel
</button>
<button type="button" class="btn-icon-left btn btn-primary">
<i class="far fa-check-double"></i> Save answer
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="search-modal" tabindex="-1" aria-labelledby="search-modal" aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content">
<div class="search-input position-relative border-bottom d-flex align-items-center">
<i class="search-icon far fa-search position-absolute text-primary"></i>
<input placeholder="Search Gecko Chat" type="search" class="form-control position-relative p-4">
<button type="button" class="btn-close position-absolute" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body p-2">
<div class="search-category-filter">
<span class="fs-3 fw-semibold text-secondary mb-2 px-2">Search in</span>
<ul class="list-unstyled">
<li>
<div class="search-category-filter-item rounded p-2 d-flex justify-content-between align-items-center">
<span><i class="category-icon text-center far fa-comments me-1"></i> <span class="fw-medium">Conversations</span></span>
<span>
<div class="rounded border p-1 fs-3 fw-semibold text-grey-400 bg-grey-25 border-grey-50">⌘ A</div>
</span>
</div>
</li>
<li>
<div class="search-category-filter-item rounded p-2 d-flex justify-content-between align-items-center">
<span><i class="category-icon text-center far fa-circle-bolt me-1"></i> <span class="fw-medium">Automation</span></span>
<span>
<div class="rounded border p-1 fs-3 fw-semibold text-grey-400 bg-grey-25 border-grey-50">⌘ B</div>
</span>
</div>
</li>
<li>
<div class="search-category-filter-item rounded p-2 d-flex justify-content-between align-items-center">
<span><i class="category-icon text-center far fa-address-book me-1"></i> <span class="fw-medium">Contacts</span></span>
<span>
<div class="rounded border p-1 fs-3 fw-semibold text-grey-400 bg-grey-25 border-grey-50">⌘ C</div>
</span>
</div>
</li>
<li>
<div class="search-category-filter-item rounded p-2 d-flex justify-content-between align-items-center">
<span><i class="category-icon text-center far fa-users me-1"></i> <span class="fw-medium">Agents and teams</span></span>
<span>
<div class="rounded border p-1 fs-3 fw-semibold text-grey-400 bg-grey-25 border-grey-50">⌘ D</div>
</span>
</div>
</li>
<li>
<div class="search-category-filter-item rounded p-2 d-flex justify-content-between align-items-center">
<span><i class="category-icon text-center far fa-route me-1"></i> <span class="fw-medium">Workflows</span></span>
<span>
<div class="rounded border p-1 fs-3 fw-semibold text-grey-400 bg-grey-25 border-grey-50">⌘ E</div>
</span>
</div>
</li>
<li>
<div class="search-category-filter-item rounded p-2 d-flex justify-content-between align-items-center">
<span><i class="category-icon text-center far fa-tags me-1"></i> <span class="fw-medium">Tags</span></span>
<span>
<div class="rounded border p-1 fs-3 fw-semibold text-grey-400 bg-grey-25 border-grey-50">⌘ F</div>
</span>
</div>
</li>
</ul>
</div>
</div>
<div class="modal-footer fs-3 bg-grey-25">
💡 Tip: You can use in: or from: in the search box to focus your search.
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm" crossorigin="anonymous"></script>
<script>
(function () {
'use strict'
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
tooltipTriggerList.forEach(function (tooltipTriggerEl) {
new bootstrap.Tooltip(tooltipTriggerEl)
})
})()
</script>
</body>
</html>