meeting-room-booking-system / mrbs-code

MRBS application code
Other
124 stars 61 forks source link

Place Holder #1644

Open jberanek opened 8 years ago

jberanek commented 8 years ago

Hello,

How can I use a PlaceHolder="" when using MRBS, I want the placeholder to show up in de description box when submitting an entry.

Sven

Reported by: *anonymous

Original Ticket: mrbs/support-requests/920

jberanek commented 8 years ago

You need to modify edit_entry.php. For the brief description, modify the function create_field_entry_name() by adding the element

                  'attributes' => 'placeholder="This is a placeholder"',

to the $params array.

For the full description the attributes are defined separately. Modify the function create_field_entry_description() by changing the line

    $params['attributes'] = array('rows="8"', 'cols="40"');

to

    $params['attributes'] = array('rows="8"', 'cols="40"',
                                                               'placeholder="This is a placeholder"');

Original comment by: campbell-m

jberanek commented 8 years ago

Thank you, I've another Question is it possible to automaticly send a confirmation email to the user, I've stored the email adres already, I only need to know where the information is uploaded to the database so that I can mail in the same function.

Original comment by: *anonymous

jberanek commented 8 years ago

Do you mean a confirmation email when a room is booked? If so, this is just a matter of config settings. See $mail_settings in systemdefaults.inc.php.

Original comment by: campbell-m