<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title> Project Detail</title>

  <!-- Google Font: Source Sans Pro -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="/css/adminlte.min.css">
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="/plugins/fontawesome-free/css/all.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="/css/adminlte.min.css">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    <!-- jQuery library -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <!-- Popper JS -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
    <!-- Latest compiled JavaScript -->
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script>
    <link type="text/css" href="/css/style.css" rel="stylesheet">
     <!-- Google Font: Source Sans Pro -->
 <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
 <!-- Font Awesome Icons -->
 <link type="text/css" rel="stylesheet" href="/plugins/fontawesome-free/css/all.min.css">
 <!-- overlayScrollbars -->
 <link type="text/css" rel="stylesheet" href="/plugins/overlayScrollbars/css/OverlayScrollbars.min.css">

<script src="/js/renderTable.js"></script>
<script src="/js/dataTable.js"></script>

 <link rel="stylesheet" href="https://cdn.datatables.net/1.12.1/css/jquery.dataTables.min.css">

 <link rel="stylesheet" href="/css/modal-dialog.css">

    <!-- <script src="/js/plnClient.js"></script> -->
    <script src="/js/projectDetail.js"></script>
    <script src="/js/addUser.js"></script>

</head>


<body class="hold-transition dark-mode sidebar-mini layout-fixed layout-navbar-fixed layout-footer-fixed" >
  <!-- Site wrapper -->
<div class="wrapper">
  <!-- Navbar -->
  <nav class="main-header navbar navbar-expand navbar-dark">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
      </li>
      
    </ul>

    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">
           <!-- Navbar Search -->
           <li class="nav-item">
            <a class="nav-link" data-widget="navbar-search" href="#" role="button">
              <i class="fas fa-search"></i>
            </a>
            <div class="navbar-search-block">
              <form class="form-inline">
                <div class="input-group input-group-sm">
                  <input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search">
                  <div class="input-group-append">
                    <button class="btn btn-navbar" type="submit">
                      <i class="fas fa-search"></i>
                    </button>
                    <button class="btn btn-navbar" type="button" data-widget="navbar-search">
                      <i class="fas fa-times"></i>
                    </button>
                  </div>
                </div>
              </form>
            </div>
          </li>
    
    
          <li class="nav-item">
            <a class="nav-link" data-widget="fullscreen" href="#" role="button">
              <i class="fas fa-expand-arrows-alt"></i>
            </a>
          </li>
          <li class="nav-item">
            <a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#" role="button">
              <i class="fas fa-th-large"></i>
            </a>
          </li>
        </ul>
      </nav>
  <!-- /.navbar -->

  <!-- Main Sidebar Container -->
  <aside class="main-sidebar sidebar-dark-primary elevation-4">


    <!-- Sidebar -->
    <div class="sidebar">
      <!-- Sidebar user (optional) -->
      <div class="user-panel mt-3 pb-3 mb-3 d-flex">
        <div class="image">
          <img src="/images/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image">
        </div>
        <div class="info">
          <a href="#" class="d-block">Alexander Pierce</a>
        </div>
      </div>

      <!-- SidebarSearch Form -->
      <div class="form-inline">
        <div class="input-group" data-widget="sidebar-search">
          <input class="form-control form-control-sidebar" type="search" placeholder="Search" aria-label="Search">
          <div class="input-group-append">
            <button class="btn btn-sidebar">
              <i class="fas fa-search fa-fw"></i>
            </button>
          </div>
        </div>
      </div>

      <!-- Sidebar Menu -->
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
          <!-- Add icons to the links using the .nav-icon class
               with font-awesome or any other icon font library -->



             <li class="nav-item">
               <a href="#" class="nav-link">
                 <i class="nav-icon fas fa-book"></i>
                 <p>
                   Project
                   <i class="fas fa-angle-left right"></i>
                 </p>
               </a>
               <ul class="nav nav-treeview">



                 <li class="nav-item" >
                   <a href="projects.html" class="nav-link">
                     <i class="far fa-circle nav-icon"></i>
                     <p>Projects</p>
                   </a>
                 </li>

                 <li class="nav-item">
                   <a href="project-add.html" class="nav-link">
                     <i class="far fa-circle nav-icon"></i>
                     <p>Project Add</p>
                   </a>
                 </li>

                 <li class="nav-item">
                   <a href="project-edit.html" class="nav-link">
                     <i class="far fa-circle nav-icon"></i>
                     <p>Project Edit</p>
                   </a>
                 </li>
                 <li class="nav-item">
                   <a href="project-detail.html" class="nav-link">
                     <i class="far fa-circle nav-icon"></i>
                     <p>Project Detail</p>
                   </a>
                 </li>



               </ul>
             </li>
        </ul>
      </nav>
      <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1>Project  <span id="projectID"></span>  </h1>
          </div>

        </div>
      </div><!-- /.container-fluid -->
    </section>

    <!-- Main content -->
    <section class="content">

      <!-- Default box -->
      <div class="card">
        <div class="card-header">
          <h3 class="card-title">Projects Detail</h3>

          <div class="card-tools">
            <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
              <i class="fas fa-minus"></i>
            </button>
            <button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
              <i class="fas fa-times"></i>
            </button>
          </div>
        </div>
        <div class="card-body">
          <div class="row">
            <div class="col-12 col-md-12 col-lg-8 order-2 order-md-1">
              <div class="row">
                <div class="col-12 col-sm-4">
                  <div class="info-box bg-light">
                    <div class="info-box-content">
                      <span class="info-box-text text-center text-muted">Estimated budget</span>
                      <span class="info-box-number text-center text-muted mb-0" id="estimatedBudget"></span>
                    </div>
                  </div>
                </div>
                <div class="col-12 col-sm-4">
                  <div class="info-box bg-light">
                    <div class="info-box-content">
                      <span class="info-box-text text-center text-muted">Status</span>
                      <span class="info-box-number text-center text-muted mb-0" id ="projectStatus"></span>
                    </div>
                  </div>
                </div>
                <div class="col-12 col-sm-4">
                  <div class="info-box bg-light">
                    <div class="info-box-content">
                      <span class="info-box-text text-center text-muted" >Estimated project duration</span>
                      <span class="info-box-number text-center text-muted mb-0" id="estimatedDuration"></span>
                    </div>
                  </div>
                </div>
              </div>

            </div>
            <div class="col-12 col-md-12 col-lg-4 order-1 order-md-2">
              <h3 class="text-primary"><i class="fas fa-paint-brush"></i> <span id="projectName"></span></h3>
              <p class="text-muted"><span id="descreption"></span></p>
              <br>
              <div class="text-muted">
                <p class="text-sm">Client Name
                  <b class="d-block" id="clientName"></b>
                </p>
                <p class="text-sm">Project Leader
                  <b class="d-block" id="projectLeader"></b>
                </p>
              </div>

              <!-- <h5 class="mt-5 text-muted">Project files</h5>
              <ul class="list-unstyled">
                <li>
                  <a href="" class="btn-link text-secondary"><i class="far fa-fw fa-file-word"></i> Functional-requirements.docx</a>
                </li>
                <li>
                  <a href="" class="btn-link text-secondary"><i class="far fa-fw fa-file-pdf"></i> UAT.pdf</a>
                </li>
                <li>
                  <a href="" class="btn-link text-secondary"><i class="far fa-fw fa-envelope"></i> Email-from-flatbal.mln</a>
                </li>
                <li>
                  <a href="" class="btn-link text-secondary"><i class="far fa-fw fa-image "></i> Logo.png</a>
                </li>
                <li>
                  <a href="" class="btn-link text-secondary"><i class="far fa-fw fa-file-word"></i> Contract-10_12_2014.docx</a>
                </li>
              </ul> -->

              <!-- <div class="text-center mt-5 mb-3">
                <a href="#" class="btn btn-sm btn-primary">Add files</a>
                <a href="#" class="btn btn-sm btn-warning">Report contact</a>
              </div> -->

            </div>

            
          </div>
        </div>
        <!-- /.card-body -->
      </div>
      <!-- /.card -->



      <div class="card">
        <div class="card-header">
          <h3 class="card-title">Project's tasks</h3>

          <div class="card-tools">
            <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
              <i class="fas fa-minus"></i>
            </button>
            <button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
              <i class="fas fa-times"></i>
            </button>
          </div>
        </div>
        <div class="card-body p-0">
          <table class="table table-striped projects" id ="queryAllTasksTable">
              <thead>
                <tr>
                  <th style="width: 15%">
                      #
                  </th>
                  <th style="width: 15%">
                      Task Name
                  </th>
                  <th style="width: 15%">
                      Employee
                  </th>
                  <th style="width: 25%">
                    defecaltDegree,
                  </th>
                  <th style="width: 15%" >
                      Status
                  </th>
                  <th style="width: 15%">
                  </th>
              </tr>
              </thead>
 
          </table>
          <button type="button" class="btn btn-secondary" data-toggle="modal" data-target="#modal-secondary">
            Add New Task
          </button>

          <form>
          <div class="modal fade" id="modal-secondary">
            <div class="modal-dialog">
              <div class="modal-content bg-secondary">
                <div class="modal-header">
                  <h4 class="modal-title">Add New Task</h4>
                  <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                  </button>
                </div>
                <div class="modal-body">
                  <div class="row">
                  <div class="card-body">
                    <div class="form-group">
                      <label for="taskName">Task Name</label>
                      <input type="text" id="taskName" class="form-control" required>
                    </div>
                    <div class="form-group">
                      <label for="taskdescreption">Task Description</label>
                      <textarea id="taskdescreption" class="form-control" rows="4" required></textarea>
                    </div>
                    
                    <div class="form-group">
                      <label for="taskStatus">Status</label>
                      <select id="taskStatus" class="form-control custom-select" required>
                        <option selected disabled>Select one</option>
                        <option>On Hold</option>
                        <option>Canceled</option>
                        <option>Success</option>
                        <option>Not Started</option>
                        <option>In progress</option>
                        
                      </select>
                    </div>
                    <div class="form-group">
                      <label for="taskEmployee">Employee</label>
                      <input type="text" id="taskEmployee" class="form-control" required>
                    </div>
                    <div class="form-group">
                      <label for="defecaltDegree">Defecalt Degree</label>
                      <select id="defecaltDegree" class="form-control" required>
                          <option value="1">1</option>
                          <option value="2">2</option>
                          <option value="3">3</option>
                          <option value="4">4</option>
                          <option value="5">5</option>
                          <option value="6">6</option>
                          <option value="7">7</option>
                          <option value="8">8</option>
                          <option value="9">9</option>
                          <option value="10">10</option>
                        </select>
                    </div>
                  </div>




                  <div class="card-body">
                    <div class="form-group">
                      <label for="taskWage">Task wage</label>
                      <input type="number" id="taskWage" class="form-control" required>
                    </div>
          
                    <div class="form-group">
                      <label for="estematedTaskDuration">Estimated task duration</label>
                      <input type="number" id="estematedTaskDuration" class="form-control" required>
                    </div>
      
                    <div class="form-group">
                      <label for="taskDeadline">deadline</label>
                      <input type="Date" id="taskDeadline" class="form-control" required>
                    </div>
                  </div>

                </div>




                </div>
                <div class="modal-footer justify-content-between">
                  <button type="button" class="btn btn-outline-light" data-dismiss="modal">Close</button>
                  <button type="submit" id="addNewTask" class="btn btn-outline-light">Save changes</button>
                </div>
              </div>
              <!-- /.modal-content -->
            </div>
            <!-- /.modal-dialog -->
          </div>
        </form>
        </div>
        <!-- /.card-body -->
      </div>

    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->



  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Control sidebar content goes here -->
  </aside>
  <!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->



<form>
  <div class="modal fade" id="modal-edit">
    <div class="modal-dialog">
      <div class="modal-content bg-secondary">
        <div class="modal-header">
          
          <h4 class="modal-title">Edit Task 
          <br> <p id="taskIDEdit"></p> 
          </h4>
          
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">
          <div class="row">
          <div class="card-body">
  
            <div class="form-group">
              <label for="taskNameEdit">Task Name</label>
              <input type="text" id="taskNameEdit" class="form-control" required>
            </div>
            <div class="form-group">
              <label for="taskdescreptionEdit">Task Description</label>
              <textarea id="taskdescreptionEdit" class="form-control" rows="4" required></textarea>
            </div>
            
            <div class="form-group">
              <label for="taskStatusEdit">Status</label>
              <select id="taskStatusEdit" class="form-control custom-select" required>
                <option selected disabled>Select one</option>
                <option>On Hold</option>
                <option>Canceled</option>
                <option>Success</option>
                <option>Not Started</option>
                <option>In progress</option>
                
              </select>
            </div>
            <div class="form-group">
              <label for="taskEmployeeEdit">Employee</label>
              <input type="text" id="taskEmployeeEdit" class="form-control" required>
            </div>
            <div class="form-group">
              <label for="defecaltDegreeEdit">Defecalt Degree</label>
              <select id="defecaltDegreeEdit" class="form-control" required>
                  <option value="1">1</option>
                  <option value="2">2</option>
                  <option value="3">3</option>
                  <option value="4">4</option>
                  <option value="5">5</option>
                  <option value="6">6</option>
                  <option value="7">7</option>
                  <option value="8">8</option>
                  <option value="9">9</option>
                  <option value="10">10</option>
                </select>
            </div>
          </div>




          <div class="card-body">
            <div class="form-group">
              <label for="taskWageEdit">Task Wage</label>
              <input type="number" id="taskWageEdit" class="form-control" required>
            </div>
  
            <div class="form-group">
              <label for="estematedTaskDurationEdit">Estimated task duration</label>
              <input type="number" id="estematedTaskDurationEdit" class="form-control" required>
            </div>

            <div class="form-group">
              <label for="taskDeadlineEdit">deadline</label>
              <input type="Date" id="taskDeadlineEdit" class="form-control" required>
            </div>
          </div>

        </div>




        </div>
        <div class="modal-footer justify-content-between">
          <button type="button" class="btn btn-outline-light" data-dismiss="modal">Close</button>
          <button type="submit" id="fffffffffffffffffffffffffffffffffffffffffff" class="btn btn-outline-light">Save changes</button>
        </div>
      </div>
      <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
  </div>
</form>


<!-- jQuery -->
<script src="/plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="/js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="/js/demo.js"></script>
</body>
</html>
