

<form action="<?=URLROOT?>/dashboard/saveUser" method="POST" onsubmit="return false;">
<div class="modal fade" tabindex="-1" id="kt_modal_user">
    <div class="modal-dialog modal-lg">
        <div class="modal-content ">
            <div class="modal-header">
                <h5 class="modal-title">User Model</h5>
                <div class="btn btn-icon btn-sm btn-active-light-primary ms-2" data-bs-dismiss="modal" aria-label="Close">
                    <span class="svg-icon svg-icon-2x"></span>
                </div>
            </div>

            <div class="modal-body">
                <div class="alert alert-success" id="user_message" style="color: black !important; display: none;"></div>
                <div class="alert alert-danger" id="user_message1" style="color: black !important; display: none;"></div>
               
               <div class="form-group">
                    <label>User name</label>
                   <input type="text" class="form-control" required placeholder="Username" id="username" name="username" >
                   <small class="text-danger error_username" style="display: none;">UserName is required</small>
               </div>

               <div class="form-group">
                    <label>Password </label>
                   <input type="text" class="form-control" required placeholder="Password" id="password" name="password" >
                   <small class="text-danger error_password" style="display: none;">Password is required</small>
               </div>
            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-light" data-bs-dismiss="modal">Close</button>
                <button type="button" onclick="CreateUser()" class="btn btn-primary">Save User</button>
            </div>
        </div>
    </div>
</div>
</form>