Archived
1
0

Implement feature for deleting posts and improving ajax requests

This commit is contained in:
Marcel
2018-10-17 13:56:22 +02:00
parent b32b2790c8
commit 334aa22362
23 changed files with 193 additions and 96 deletions

View File

@@ -0,0 +1,21 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<form id="postDeleteForm">
<div class="alert alert-danger" role="alert">
<b>Bist du dir wirklich sicher, dass du diesen Post löschen willst?</b>
<ul class="comment-list" style="pointer-events: none">
<?php
$post['hideActionBtns'] = true;
$this->load->view('network/posts/post_item', $post) ?>
</ul>
<!-- --><?php //var_dump($post) ?>
</div>
<button type="reset" class="btn btn-sm btn-primary round float-right" data-dismiss="modal">
Nein, Post behalten
</button>
<button type="submit" class="btn btn-sm btn-red outline round float-right" onclick="deletePost('<?= $post['uuid'] ?>')">
Ja, endgültig löschen
</button>
</form>