Revize 424379e9
Přidáno uživatelem Ondřej Drtina před téměř 4 roky(ů)
application/view/searchContent.php | ||
---|---|---|
654 | 654 |
result += "<td>" + item.description2 + "</td>"; |
655 | 655 |
result += "<td class=\"action-td\">" + |
656 | 656 |
"<button class=\"btn mr-1\" title=\"Upravit\" data-toggle=\"modal\" data-target=\"#edit-modal\" data-pseudo-id='" + id + "' data-title=\"Upravit záznam\"><i class=\"fa fa-pencil\"></i></button>" + //TODO ADMIN change , regular send report |
657 |
"<button class=\"btn\" title=\"Detail\" data-toggle=\"modal\" data-target=\"#detail-modal\" data-pseudo-id='" + id + "'><i class=\"fa fa-search\"></i></button>" + |
|
658 |
"<button class=\"btn ml-1\" title=\"Odstranit\" data-toggle=\"modal\" data-target=\"#remove-modal\" data-pseudo-id='" + id + "'><i class=\"fa fa-trash\"></i></button>" + //TODO ADMIN change , regular send report |
|
659 |
"</td>"; |
|
657 |
"<button class=\"btn\" title=\"Detail\" data-toggle=\"modal\" data-target=\"#detail-modal\" data-pseudo-id='" + id + "'><i class=\"fa fa-search\"></i></button>"; |
|
658 |
<?php if(isset($_SESSION['loggedIn']) && $_SESSION['loggedIn'] == true) { ?> //show remove only if logged in |
|
659 |
result += "<button class=\"btn ml-1\" title=\"Odstranit\" data-toggle=\"modal\" data-target=\"#remove-modal\" data-pseudo-id='" + id + "'><i class=\"fa fa-trash\"></i></button>"; |
|
660 |
<?php }?> |
|
661 |
result += "</td>"; |
|
660 | 662 |
result += "</tr>"; |
661 | 663 |
}); |
662 | 664 |
document.getElementById("search-table").innerHTML = result; |
Také k dispozici: Unified diff
#8643 - smazání se neukazuje nepřihlášeným, ok, serverside