{{!
    This file is part of Moodle - http://moodle.org/

    Moodle is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Moodle is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
}}
{{!
    @template block_edwiser_site_monitor/courseus

    This template renders contact us form

    Example context (json):
    {
        "firstname" : "Admin",
        "lastname"  : "User",
        "email"     : "admin@test.com",
        "policy"    : "I agree"
    }
}}
<div class="edwiser_plugins_contactus container">
    <form id="contactus_form" method="POST" action="#">
        <div class="form-row row">
            <div class="form-group col-6">
                <label for="firstname">{{#str}} firstname {{/str}} <span class="text-danger">*</span>:</label>
                <input required name="firstname" type="text" class="form-control" id="firstname" value="{{firstname}}">
            </div>
            <div class="form-group col-6">
                <label for="lastname">{{#str}} lastname {{/str}} <span class="text-danger">*</span>:</label>
                <input required name="lastname" type="text" class="form-control" id="lastname" value="{{lastname}}">
            </div>
        </div>
        <div class="form-group">
            <label for="email">{{#str}} email {{/str}} <span class="text-danger">*</span>:</label>
            <input required name="email" type="text" class="form-control" id="email" value="{{email}}">
        </div>
        <div class="form-group">
            <label for="subject">{{#str}} subject, core_hub {{/str}} <span class="text-danger">*</span>:</label>
            <input required name="subject" type="text" class="form-control" id="subject">
        </div>
        <div class="form-group">
            <label for="message">{{#str}} message, core_message {{/str}} <span class="text-danger">*</span>:</label>
            <textarea required name="message" class="form-control" id="message"></textarea>
        </div>
        <div class="checkbox">
            <label><input required type="checkbox"> {{{policy}}}</label>
        </div>
        <button type="submit" class="btn btn-primary">Submit</button>
    </form>
    <div id="contactus_form_succes" class="alert alert-icon alert-success alert-block alert-dismissible fade mt-10" role="alert">
        <button type="button" class="close" data-dismiss="alert">×</button>
        <i class="icon fa fa-check font-size-18" aria-hidden="true"></i>
        {{#str}} emailsuccess, block_edwiser_site_monitor {{/str}}
    </div>
</div>
