Merge pull request #54 from SylvanoP/main
fix: notification group delete func GET to POST
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -60,3 +60,4 @@ yarn.lock
|
|||||||
# Build artifacts
|
# Build artifacts
|
||||||
dist/
|
dist/
|
||||||
build/
|
build/
|
||||||
|
.agent
|
||||||
@@ -120,12 +120,13 @@ ob_start();
|
|||||||
<i class="fas fa-exchange-alt"></i>
|
<i class="fas fa-exchange-alt"></i>
|
||||||
</button>
|
</button>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<a href="/groups/<?= $group['id'] ?>/delete"
|
<form method="POST" action="/groups/<?= $group['id'] ?>/delete" class="inline" onsubmit="return confirm('Are you sure? Domains will be unassigned from this group.')">
|
||||||
class="text-red-600 hover:text-red-800"
|
<input type="hidden" name="csrf_token" value="<?= csrf_token() ?>">
|
||||||
title="Delete"
|
<button type="submit" class="text-red-600 hover:text-red-800" title="Delete"
|
||||||
onclick="return confirm('Are you sure? Domains will be unassigned from this group.')">
|
aria-label="Delete group <?= htmlspecialchars($group['name']) ?>">
|
||||||
<i class="fas fa-trash"></i>
|
<i class="fas fa-trash"></i>
|
||||||
</a>
|
</button>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -165,11 +166,12 @@ ob_start();
|
|||||||
<a href="/groups/<?= $group['id'] ?>/edit" class="flex-1 px-3 py-1.5 bg-blue-50 text-blue-600 rounded text-center text-sm hover:bg-blue-100 transition-colors">
|
<a href="/groups/<?= $group['id'] ?>/edit" class="flex-1 px-3 py-1.5 bg-blue-50 text-blue-600 rounded text-center text-sm hover:bg-blue-100 transition-colors">
|
||||||
<i class="fas fa-cog mr-1"></i> Manage
|
<i class="fas fa-cog mr-1"></i> Manage
|
||||||
</a>
|
</a>
|
||||||
<a href="/groups/<?= $group['id'] ?>/delete"
|
<form method="POST" action="/groups/<?= $group['id'] ?>/delete" class="flex-1" onsubmit="return confirm('Are you sure? Domains will be unassigned from this group.')">
|
||||||
class="flex-1 px-3 py-1.5 bg-red-50 text-red-600 rounded text-center text-sm hover:bg-red-100 transition-colors"
|
<input type="hidden" name="csrf_token" value="<?= csrf_token() ?>">
|
||||||
onclick="return confirm('Are you sure? Domains will be unassigned from this group.')">
|
<button type="submit" class="w-full px-3 py-1.5 bg-red-50 text-red-600 rounded text-center text-sm hover:bg-red-100 transition-colors">
|
||||||
<i class="fas fa-trash mr-1"></i> Delete
|
<i class="fas fa-trash mr-1"></i> Delete
|
||||||
</a>
|
</button>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user