Contact Forms

To use the contact form functionality with eDash, make sure the required plugin is installed and configured properly.


📦 Required Plugin

Install the Contact Form plugin from the official Moodle plugin directory:
🔗 https://moodle.org/plugins/local_contact

✅ This plugin must be installed and active for the contact form to work.


📖 Documentation

For full configuration details and usage instructions, refer to the plugin’s documentation:
📚 https://github.com/michael-milette/moodle-local_contact


🧩 Theme Contact Form Code

Below is the contact form shortcode used in the eDash theme. You can paste this into any HTML block or content area where you want the form to appear:

<form id="contact-form" class="contact-form" action="../../local/contact/index.php" method="post">
    <div class="row">
        <div class="col-lg-6 col-md-6 col-sm-6">
            <div class="form-group">
                <label>Your Name</label>
                <input type="text" name="name" class="form-control" id="name" required>
            </div>
        </div>
        <div class="col-lg-6 col-md-6 col-sm-6">
            <div class="form-group">
                <label>Email Address</label>
                <input type="email" name="email" class="form-control" id="email" required>
            </div>
        </div>
        <div class="col-lg-6 col-md-6 col-sm-6">
            <div class="form-group">
                <label>Subject</label>
                <input type="text" name="msg_subject" class="form-control" id="msg_subject" required>
            </div>
        </div>
        <div class="col-lg-6 col-md-6 col-sm-6">
            <div class="form-group">
                <label>Phone Number</label>
                <input type="text" name="phone_number" class="form-control" id="phone_number" required>
            </div>
        </div>
        <div class="col-lg-12 col-md-12 col-sm-12">
            <div class="form-group">
                <label>Message...</label>
                <textarea name="message" id="message" class="form-control" cols="30" rows="5"></textarea>
            </div>
        </div>
        <input type="hidden" id="sesskey" name="sesskey" value="">
        <script>document.getElementById('sesskey').value = M.cfg.sesskey;</script>
        <div class="col-lg-12 col-md-12 col-sm-12">
            <button type="submit" name="submit" id="submit" value="Send" class="default-btn">Send Message <i class='bx bx-right-arrow-alt'></i></button>
        </div>
    </div>
</form>