meeting-room-booking-system / mrbs-code

MRBS application code
Other
129 stars 64 forks source link

fuldescriprion in week view #3040

Open jberanek opened 3 years ago

jberanek commented 3 years ago

Hi, it's possible view the "fulldescription" data in week view or in day view? thank you

Reported by: *anonymous

Original Ticket: mrbs/support-requests/2351

jberanek commented 3 years ago

Which release of MRBS are you running?

Campbell

Original comment by: campbell-m

jberanek commented 3 years ago

last version, 1.9.2 thank you

Original comment by: *anonymous

jberanek commented 3 years ago

Edit functions_table.inc and at line 69 add something like

$entry['name'] = $entry['name'] . ' - '. $entry['description'];

Original comment by: campbell-m

jberanek commented 3 years ago

thank you very very much Morrison!

Original comment by: *anonymous

jberanek commented 3 years ago

Hi Morrison, it's possible put "description" in a bottom new line whithout link and bold character?

Original comment by: *anonymous

jberanek commented 3 years ago

But you want the brief description still to be a link?

Original comment by: campbell-m

jberanek commented 3 years ago

yes, short description without changes, full description one line below without link. thanks for your patience

Original comment by: *anonymous

jberanek commented 3 years ago

Instead of the change above, insert after this line (333):

        $html .= htmlspecialchars($booking['name']) . '</a>';

the line

        $html .= '<br>' . htmlspecialchars($booking['description']);

This won't work with private bookings though.

Original comment by: campbell-m

jberanek commented 3 years ago

ok, I changed the line but it doesn't work, the description field is not displayed

Original comment by: *anonymous

jberanek commented 3 years ago

Is the slot big enough to display all the text? It will be clipped if the slot is too small.

Original comment by: campbell-m

jberanek commented 3 years ago

yes, the slot is big enough to display all text, i have only 3 room, and the slot is 4 hour with 30min step

Original comment by: *anonymous

jberanek commented 3 years ago

Is the full description appearing when you hover over the booking? Does it appear when you view the page source?

Original comment by: campbell-m

jberanek commented 3 years ago

no the full description does not appear, it appears only at the short description with link

Original comment by: *anonymous

jberanek commented 3 years ago

Even when you hover?

Original comment by: campbell-m

jberanek commented 3 years ago

sorry, long descriptio appears when the mouse is over. is it possible to have a line below fixed?

Original comment by: *anonymous

jberanek commented 3 years ago

hi Morrison, you have news? full description work perfect on mouse over, but i have the need that remains fixed a line below thank you

Original comment by: *anonymous

jberanek commented 3 years ago

Can you post as an attachment the version of functions_table.inc that you are using please?

Original comment by: campbell-m

jberanek commented 3 years ago

ok

Original comment by: *anonymous

Attachments: https://sourceforge.net/p/mrbs/support-requests/_discuss/thread/d6a0af5c6b/21b7/attachment/functions_table.inc

jberanek commented 3 years ago

OK, I see what the problem is. You should use this line instead

        $html .= '<br><span class="full_desc">' . htmlspecialchars($booking['description']) . '</span>';

and create a custom CSS file (see systemdefaults.inc.php for how to do this) and add the rule:

.full_desc {
  position: relative;
  z-index: 100;
  padding: 0.2em;
}

Original comment by: campbell-m

jberanek commented 3 years ago

awesome! work great! thank you very very much!

Original comment by: *anonymous