<div class="alert alert-success margin-bottom-30" id="msg<?php print $form_id; ?>" style="display:none;">
    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
    <strong><?php _lang("Thank You", "templates/guesthouse"); ?>!</strong> <?php _lang("Your message successfully sent", "templates/guesthouse"); ?>!
</div>

<script>
/*    $(document).ready(function () {
        $('.section-42 form label').each(function () {
            var thisLabel = $(this).text().trim();
            $(this).next().find("input").attr("placeholder", thisLabel);
            $(this).remove();
        });
    });*/
</script>
<div class="section-42">
    <div class="form">
        <form id="contactform" data-form-id="<?php print $form_id ?>" name="<?php print $form_id ?>" method="post">
            <?php print csrf_form() ?>
            <input type="hidden" name="for" value="contact_form"/>
            <input type="hidden" name="for_id" value="<?php print $params['id']; ?>"/>
            <input type="hidden" name="room" value="<?php print content_title(); ?>"/>


            <!--<div class="row">
                <div class="col-12">
                    <div class="form-group">
                        <label class="control-label" for="first_name">Full Name</label>
                        <input class="form-control" id="first_name" name="first_name" type="text" placeholder="Full Name" required>
                    </div>
                </div>


                <div class="col-12">
                    <div class="form-group">
                        <label class="control-label" for="email">E-mail</label>
                        <input class="form-control" id="email" name="email" type="email" placeholder="E-mail">
                    </div>
                </div>

                <div class="col-12">
                    <div class="form-group">
                        <label class="control-label" for="phone">Phone Number</label>
                        <input class="form-control" name="phone" id="phone" type="text" placeholder="Phone Number">
                    </div>
                </div>

                <div class="col-12 col-md-6">
                    <div class="form-group">
                        <label class="control-label" for="nights">How many nights?</label>
                        <select class="form-control" name="nights" id="nights" placeholder="How many nights?">
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                            <option value="4">4</option>
                        </select>
                    </div>
                </div>

                <div class="col-12 col-md-6">
                    <div class="form-group">
                        <label class="control-label" for="guests">How many guests?</label>
                        <select class="form-control" name="guests" id="guests" placeholder="How many guests?">
                            <option value="1">1</option>
                            <option value="2">2</option>
                            <option value="3">3</option>
                            <option value="4">4</option>
                        </select>
                    </div>
                </div>

                <div class="col-12 col-md-6">
                    <div class="form-group">
                        <label class="control-label" for="date">Date</label>
                        <input class="form-control" id="date" type="date" value="<?php /*echo date('Y-m-d', time()); */?>" placeholder="Date">
                    </div>
                </div>

                <div class="col-12 col-md-6">
                    <div class="form-group">
                        <label class="control-label" for="date">Time</label>
                        <input class="form-control" id="time" type="time" value="20:00" placeholder="Time">
                    </div>
                </div>

                <div class="col-12 col-md-6">
                    <div class="form-group">
                        <label class="control-label" for="seats">Seats</label>
                        <input class="form-control" id="seats" type="text" placeholder="Seats">
                    </div>
                </div>


                <div class="col-12">
                    <div class="form-group">
                        <label class="control-label" for="message">Message</label>
                        <textarea class="form-control" id="message" name="message" placeholder="Type your message here"></textarea>
                    </div>
                </div>
            </div>-->

            <div class="row">
                <div class="col-12">
                    <module type="custom_fields" default-fields="name, email, phone, nights, guests, from_date, to_date, message" input_class="form-control"/>
                </div>
            </div>

            <div class="row">
                <div class="col-12">

                    <!-- <div class="form-group">
                        <?php /*if (get_option('disable_captcha', $params['id']) != 'y'): */ ?>
                            <module type="captcha" template="default"/>
                        <?php /*endif; */ ?>
                    </div>-->

                    <module type="btn" class="allow-drop"  template="bootstrap" button_action="submit" button_style="btn-default" button_size="btn-md btn-block" text="Send"/>
                </div>
            </div>
        </form>
    </div>
</div>
