This commit is contained in:
2026-07-19 20:58:52 +02:00
parent 5eca2f162b
commit fedb6f59f5
+10 -22
View File
@@ -237,7 +237,7 @@ if ($replyAuthor === null) {
<form method="post" <form method="post"
action="index.php?pfad=deleteComment" action="index.php?pfad=deleteComment"
class="delete-comment-form"> class="delete-comment-form confirm-delete-comment">
<input type="hidden" <input type="hidden"
name="comment_id" name="comment_id"
@@ -251,23 +251,10 @@ if ($replyAuthor === null) {
(string) $comment->getArticleId() (string) $comment->getArticleId()
); ?>"> ); ?>">
<form method="post" <button type="submit"
action="index.php?pfad=deleteComment" class="delete-comment-button">
class="delete-comment-form confirm-delete-comment"> Kommentar löschen
</button>
<input type="hidden"
name="comment_id"
value="<?php echo htmlspecialchars((string) $comment->getId()); ?>">
<input type="hidden"
name="article_id"
value="<?php echo htmlspecialchars((string) $comment->getArticleId()); ?>">
<button type="submit"
class="delete-comment-button">
Kommentar löschen
</button>
</form>
</form> </form>
<?php endif; ?> <?php endif; ?>
@@ -381,7 +368,7 @@ if ($replyAuthor === null) {
<form method="post" <form method="post"
action="index.php?pfad=deleteComment" action="index.php?pfad=deleteComment"
class="delete-comment-form"> class="delete-comment-form confirm-delete-comment">
<input type="hidden" <input type="hidden"
name="comment_id" name="comment_id"
@@ -395,9 +382,10 @@ if ($replyAuthor === null) {
(string) $reply->getArticleId() (string) $reply->getArticleId()
); ?>"> ); ?>">
<form method="post" <button type="submit"
action="index.php?pfad=deleteComment" class="delete-comment-button">
class="delete-comment-form confirm-delete-comment"> Antwort löschen
</button>
</form> </form>
<?php endif; ?> <?php endif; ?>