meeting-room-booking-system / mrbs-code

MRBS application code
Other
121 stars 59 forks source link

Add additional items to room request Form and Database #1666

Open jberanek opened 8 years ago

jberanek commented 8 years ago

I'm trying and reading the How to Guide, but still not understanding how to add additional items to the room booking form.

for example I want to be able to add the Hospitality Extras: None Water Coffee Decaf Coffee Soda Diet Soda Catering

( can't see the check boxes) I have other items which are like this, where you would fill out the form for items that you want to go with the room booking.

I can attach the current MRBS that we are using , which it is outdated by about 13 yrs... so that is why we are updating to the newer code. I didnt put this in place 13 yrs ago... so trying to figure this out

Reported by: *anonymous

Original Ticket: mrbs/support-requests/942

jberanek commented 8 years ago

I did it with:

$select_options['entry.payment'] = array( '' => 'Please select the payment', 'E' => 'Cash in shop (Paid)', 'F' => 'Bank transfer (Open)', 'G' => 'Bank transfer (Paid)', 'H' => 'Credit card in shop (Paid)', 'I' => 'Credit card on phone (Open)', 'J' => 'Credit card on phone (Paid)'

in the file config.inc.php. But first you have to add the column payment (in my example) in database entry and repeat. hope, I could help you...

Original comment by: sundalf

jberanek commented 8 years ago

Ok, what type of column did you add this as in the databases?

this looks like it will create a Drop Down , I'm looking for more of a checkbox solutions

Original comment by: *anonymous

jberanek commented 8 years ago

No, only into the config.inc.php but you have to add the columns in the mysql (if using mysql) database. See screenshots attached

Original comment by: sundalf

Attachments: https://sourceforge.net/p/mrbs/support-requests/_discuss/thread/825df953/2c9b/attachment/Screenshot%20from%202016-04-19%2018%3A54%3A50.png

jberanek commented 8 years ago

Next screenshot

Original comment by: sundalf

Attachments: https://sourceforge.net/p/mrbs/support-requests/_discuss/thread/825df953/34c5/attachment/Screenshot%20from%202016-04-19%2018%3A55%3A01.png

jberanek commented 8 years ago

is this for a drop down or a checkbox solutions?

Original comment by: *anonymous

jberanek commented 8 years ago

Dropdown, because in my case only one method of payment is possible

Original comment by: sundalf

jberanek commented 8 years ago

yeah, I need checkboxes, as people need to select multiple items

Original comment by: *anonymous

jberanek commented 8 years ago

See also https://sourceforge.net/p/mrbs/support-requests/953/

Original comment by: campbell-m