This commit is contained in:
CorwinDev committed 2022-08-18 14:44:12 +02:00
1 parent 29fff68ff0
commit f16305c6ad
25 files changed
+1079 -350

No files matched your search

+15 -2
View File
@@ -15,12 +15,15 @@
<th scope="col" class="py-3 px-6">
Owner
</th>
<th scope="col" class="py-3 px-6">
Verify
</th>
</tr>
</thead>
<tbody>
<% var nbots = bots.filter(bot => bot.verified == false); %>
<% var nbots = bots.filter(bot => bot.verified == false); %>
<% nbots.forEach(function(bot) { %>
<tr class="hover:bg-gray-100 dark:hover:bg-gray-800" onclick="location.href='/admin/bot/<%= bot.id %>'">
<tr class="hover:bg-gray-100 dark:hover:bg-gray-800">
<td class="py-3 px-6">
<%= bot.name %>
</td>
@@ -33,6 +36,16 @@
<td class="py-3 px-6">
<%= bot.owner %>
</td>
<td class="py-3 px-6">
<form action="/admin/bot/<%= bot.id %>/verify" method="post">
<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full" type="submit">
Verify
</button>
</form>
<button class="bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded-full" onclick="location.href='/admin/bot/<%= bot.id %>/reject'">
Reject
</button>
</td>
</tr>
<% }) %>