<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="../css/all.css" rel="stylesheet" type="text/css" />
    <link href="../css/bootstrap.css" rel="stylesheet" id="bootstrap-css">
    <link href="../css/alert.css" rel="stylesheet" id="alert-css">
    <title>SMS Templates</title>
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="../css/all.css" rel="stylesheet" type="text/css" />
    <link href="../css/bootstrap.css" rel="stylesheet" id="bootstrap-css">
    <link href="../css/alert.css" rel="stylesheet" id="alert-css">
    <link href="../css/custom.css" rel="stylesheet" id="custom-css">
    <link href="../css/master.css" rel="stylesheet" id="master-css">
    <title>SMS Mailer</title>
</head>
<body>
    <input type="checkbox" name="nav-toggle" id="nav-toggle">
    <div class="sidebar">
        <div class="sidebar-brand">
            <h2>
                <i class="fas fa-warehouse"></i><span>Tornson</span>
            </h2>
        </div>

        <?php require_once("sidebar.txt");  ?>
    </div>

    <div class="main-content">
        <div class="header">
            <h2>
                <label for="nav-toggle">
                    <i class="fas fa-bars"></i>
                </label>
                Templates
            </h2>

            <div class="search-wrapper">
               <i class="fas fa-search"></i>
                <input type="text" name="search" id="search" placeholder="Search here ...">
            </div>

            <div class="user-wrapper">
                <img src="../images/user_profiles/1.jpg"  hieight="40px" width="40px"alt="">
                <div>
                    <h4>Jozibeck Properties Ltd</h4>
                    <small>Super Admin</small>
                </div>
            </div>
        </div>
        <main>
            <div class="row">
                <div class="col col-md-4">
                    <h6 class="mt-2">Templates in the System</h6>
                    <div>
                        <select name="templateslist" id="templateslist" multiple></select>
                    </div>
                    <div id="templatesummary">
                        <span id="templatecount"></span> template(s) listed
                    </div>
                </div>
                <div class="col col-md-8">
                    <div class="mt-2" id="errors"></div>
                    <input type="hidden" name="id" id="id" value="0">
                    <div class="row">
                        <div class="col">
                            <div class="form-group">
                                <label for="templatename">Template Name</label>
                                <input type="text" name="templatename" id="templatename" class="form-control form-control-sm">
                            </div>
                        </div>
                        <div class="col">
                            <div class="form-group">
                                <label for="datasource">Data Source</label>
                                <select name="datasource" id="datasource" class="form-control form-control-sm"></select>
                            </div>
                        </div>
                        <div class="col">
                            <div class="form-group">
                                <label for="insertmergefield">Insert Merge Field</label>
                                <select name="insertmergefield" id="insertmergefield" class="form-control form-control-sm"></select>
                            </div>
                        </div>
                    </div>

                    <div class="row">
                        <div class="col">
                            <div class="form-group">
                                <label for="smstext">Template Details</label>
                                <textarea name="smstext" id="smstext" cols="30" rows="10" class="form-control form-control-sm"></textarea>
                            </div>
                        </div>
                    </div> 
                    <div class="row">
                        <div class="col">
                            <button class="btn btn-success btn-sm" id="savesmstemplate">Save Template</button>
                            <button class="btn btn-danger btn-sm" id="clearsmstemplate">Clear Fields</button>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>
<script src="../js/jquery-2.2.4.js"></script>
<script src="../js/alert.js"></script>
<script src="../js/functions.js"></script>
<script src="../js/smstemplates.js"></script>
</html>