moved admin panel buttons to separate div

This commit is contained in:
Václav Šmejkal 2024-05-22 15:36:46 +02:00
parent da7f8510bb
commit 8b1e1185ee
Signed by: ENGO150
GPG Key ID: 4A57E86482968843
2 changed files with 15 additions and 9 deletions

View File

@ -3,18 +3,16 @@
Zde budou uživatelé.
</div>
<div id="right_panel">
<button onclick="remove_user()" id="remove_btn">Odstranit Uživatele</button>
<div id="buttons">
<button class="btn">Uložit Změny</button>
<button onclick="remove_user()" class="btn">Odstranit Uživatele</button>
</div>
</div>
</div>
<script>
var right_panel_buffer = null;
var username = null;
$(document).ready(function()
{
$("#remove_btn").hide();
});
$.ajax
({
url: "./res/forum/api/list_users.php",
@ -32,7 +30,7 @@
$("#left_panel").on("click", ".output", function(event)
{
$("#remove_btn").show();
$("#buttons").show();
if (right_panel_buffer == null) right_panel_buffer = document.getElementById("right_panel").innerHTML;
username = event.target.innerHTML;

View File

@ -75,14 +75,22 @@ img:hover
margin-top: 1.5vh;
}
#remove_btn
#buttons
{
position: absolute;
bottom: 0.3vh;
right: 0.3vh;
display: none;
}
.btn
{
width: fit-content;
width: 10%;
padding: 0.3vh;
padding-left: 0.9vh;
padding-right: 0.9vh;
background-color: #9E6812;
border: 1px solid #3E392F;
color: #C1BFBE;