feat: update UI of buttons for checked reports
This commit is contained in:
@@ -919,13 +919,19 @@ function showReportModal(report, isAdmin = false) {
|
||||
if (report.isVerified || report.verified) {
|
||||
// Verified: only unverify + close
|
||||
buttons.innerHTML = `
|
||||
<div class="mb-2 text-yellow-700 font-medium text-sm">Отчет подтвержден. Для внесения изменений снимите подтверждение.</div>
|
||||
<button id="unverifyReportBtn" class="bg-yellow-500 text-white px-4 py-2 rounded-lg hover:bg-yellow-600">
|
||||
<i class="fas fa-undo mr-2"></i>Снять подтверждение
|
||||
</button>
|
||||
<button id="closeReportModalBtn" class="bg-gray-500 text-white px-4 py-2 rounded-lg">
|
||||
<i class="fas fa-times mr-2"></i>Закрыть
|
||||
</button>
|
||||
<div class="grid grid-cols-2 items-center justify-between gap-4">
|
||||
<div class="text-yellow-700 font-medium text-sm">
|
||||
Отчет подтвержден.<br>Для внесения изменений снимите подтверждение.
|
||||
</div>
|
||||
<div class="flex justify-end gap-3">
|
||||
<button id="unverifyReportBtn" class="bg-yellow-500 text-white px-4 py-2 rounded-lg hover:bg-yellow-600 flex items-center">
|
||||
<i class="fas fa-undo mr-2"></i>Снять подтверждение
|
||||
</button>
|
||||
<button id="closeReportModalBtn" class="bg-gray-500 text-white px-4 py-2 rounded-lg flex items-center">
|
||||
<i class="fas fa-times mr-2"></i>Закрыть
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
document
|
||||
.getElementById("unverifyReportBtn")
|
||||
|
||||
Reference in New Issue
Block a user