forked from ChickenAI/multizlogin
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathupdateWebhookForm.html
More file actions
82 lines (80 loc) · 3.23 KB
/
updateWebhookForm.html
File metadata and controls
82 lines (80 loc) · 3.23 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cập nhật Webhook URL</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
background-color: #f8f9fa;
}
.navbar-brand {
font-weight: bold;
}
.container {
max-width: 600px;
margin-top: 50px;
}
.card {
border: none;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.btn-custom {
padding: 10px 20px;
}
</style>
</head>
<body>
<!-- Navigation Bar -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="/home">Zalo Bot</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link" href="/home">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/list" target="_blank">Tài liệu API</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Webhook Update Form -->
<div class="container">
<div class="card p-4">
<div class="card-body">
<h2 class="card-title text-center mb-4">Cập nhật Webhook URL</h2>
<p class="text-center text-muted mb-4">Nhập các URL webhook để nhận thông báo từ Zalo</p>
<form action="/updateWebhook" method="post">
<div class="mb-3">
<label for="messageWebhookUrl" class="form-label">Message Webhook URL:</label>
<input type="url" id="messageWebhookUrl" name="messageWebhookUrl" class="form-control" placeholder="https://example.com/webhook-message" required>
</div>
<div class="mb-3">
<label for="groupEventWebhookUrl" class="form-label">Group Event Webhook URL:</label>
<input type="url" id="groupEventWebhookUrl" name="groupEventWebhookUrl" class="form-control" placeholder="https://example.com/webhook-group-event" required>
</div>
<div class="mb-3">
<label for="reactionWebhookUrl" class="form-label">Reaction Webhook URL:</label>
<input type="url" id="reactionWebhookUrl" name="reactionWebhookUrl" class="form-control" placeholder="https://example.com/webhook-reaction" required>
</div>
<div class="mb-3">
<label for="connectionWebhookUrl" class="form-label">Connection Webhook URL:</label>
<input type="url" id="connectionWebhookUrl" name="connectionWebhookUrl" class="form-control" placeholder="https://example.com/webhook-connection">
</div>
<div class="d-grid">
<button type="submit" class="btn btn-primary btn-custom">Cập nhật</button>
</div>
</form>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>