<div class="modal fade" id="modal-new-user" tabindex="-1" role="dialog" aria-labelledby="modal-form" aria-hidden="true">
    <div class="modal-dialog modal- modal-dialog-centered modal-md" role="document">
       <div class="modal-content">
          <div class="modal-body p-0">
               <div class="card bg-secondary border-0 mb-0">
                  <div class="card-body px-lg-5 py-lg-5">
                     <form role="form" id="formCreateUser">
                     <div class="form-group mb-3">
                        <label for="Name" class="form-control-label">User</label>
                        <div class="input-group input-group-merge input-group-alternative">
                           <div class="input-group-prepend">
                              <span class="input-group-text"><i class="ni ni-single-02"></i></span>
                           </div>
                           <input name="username" class="form-control" placeholder="Nama User" type="text" id="Name">
                        </div>
                     </div>
                     <div class="form-group">
                        <label for="modalCompanySelect" class="form-control-label">Company</label>
                        <div class="input-group input-group-merge input-group-alternative">
                           <div class="input-group-prepend">
                              <span class="input-group-text"><i class="ni ni-istanbul"></i></span>
                           </div>
                           <select name="company" class="form-control modalCompanySelect">
                              <option  value="">Pilih company dari list</option>
                              <% if(locals.companies){for(var i=0; i<companies.length; i++) {%>
                                 <option value="<%= companies[i].id %>"><%= companies[i].attributes.Name %></option>
                              <% }} %>
                            </select>
                        </div>
                     </div>
                     <div class="form-group">
                        <label for="modalDivisionSelect" class="form-control-label">Division</label>
                        <div class="input-group input-group-merge input-group-alternative">
                           <div class="input-group-prepend">
                              <span class="input-group-text"><i class="ni ni-shop"></i></span>
                           </div>
                           <select name="division" class="form-control modalDivisionSelect" disabled>
                              <option  value="">Pilih divisi dari list</option>
                            </select>
                        </div>
                     </div>
                     <!-- <div class="form-group">
                        <label for="Email" class="form-control-label">User</label>
                        <div class="input-group input-group-merge input-group-alternative">
                           <div class="input-group-prepend">
                              <span class="input-group-text"><i class="ni ni-email-83"></i></span>
                           </div>
                           <input name="email" class="form-control" placeholder="User" type="text" id="Email">
                        </div>
                     </div> -->
                     <div class="form-group">
                        <label for="Password" class="form-control-label">Password</label>
                        <div class="input-group input-group-merge input-group-alternative">
                           <div class="input-group-prepend">
                              <span class="input-group-text"><i class="ni ni-lock-circle-open"></i></span>
                           </div>
                           <input name="password" class="form-control" type="password" placeholder="Password User" id="Password">
                        </div>
                     </div>
                     <div class="text-center">
                        <button type="button" class="btn btn-secondary" data-dismiss="modal">Batal</button>
                        <button type="submit" class="btn btn-primary">Buat</button>
                     </div>
                     </form>
                  </div>
               </div>
          </div>
       </div>
   </div>
</div>