From 3d64194ec8f11532eb051fb7036f1710ab4e9d81 Mon Sep 17 00:00:00 2001 From: labmecanicatec <58854556+labmecanicatec@users.noreply.github.com> Date: Fri, 24 Jan 2025 18:44:10 -0500 Subject: [PATCH 1/3] userPopup como card --- Web/css/librebooking.css | 14 +---------- Web/scripts/userPopup.js | 2 +- tpl/Ajax/user_details.tpl | 52 +++++++++++++++++++++++++++------------ 3 files changed, 38 insertions(+), 30 deletions(-) diff --git a/Web/css/librebooking.css b/Web/css/librebooking.css index 18e0ffef6..b904f2f90 100644 --- a/Web/css/librebooking.css +++ b/Web/css/librebooking.css @@ -477,6 +477,7 @@ table.reservations td { cursor: pointer; } +#userDetailsDiv, #resourceDetailsDiv { max-width: 50%; display: none; @@ -484,19 +485,6 @@ table.reservations td { z-index: 99999; } -#userDetailsDiv, -#customize-columns { - display: none; - position: absolute; - border: solid 1px var(--color-lines); - background-color: #fff; - padding: 5px; - -webkit-box-shadow: 0px 0px 3px 0px #212121; - -moz-box-shadow: 0px 0px 3px 0px #212121; - box-shadow: 0px 0px 3px 0px #212121; - z-index: 99999; -} - #reservation-box label { min-width: 50px; } diff --git a/Web/scripts/userPopup.js b/Web/scripts/userPopup.js index ac998ea5b..d18879b17 100644 --- a/Web/scripts/userPopup.js +++ b/Web/scripts/userPopup.js @@ -9,7 +9,7 @@ $.fn.bindUserDetails = function (userId, options) { function getDiv() { if ($('#userDetailsDiv').length <= 0) { - return $('
').appendTo('body'); + return $('').appendTo('body'); } else { diff --git a/tpl/Ajax/user_details.tpl b/tpl/Ajax/user_details.tpl index b4560874a..3577fc4d0 100644 --- a/tpl/Ajax/user_details.tpl +++ b/tpl/Ajax/user_details.tpl @@ -1,22 +1,42 @@ {if $CanViewUser}