<!DOCTYPE html>
<html lang="en">
  <%- include('./partials/head') %>
<body>
  <%- include('./partials/navbar1') %>
  <div class="jumbotron jumbotron-fluid" style="background-image: url(background2.svg); background-repeat: no-repeat; background-position: center;" >
    <div class="container">
      <div class="row" style="margin-top: 90px; margin-bottom: 200px;">
        <div class="col-lg-12">
          <h1 style="text-align: center; margin-top: 0px;  justify-content: center; font-weight: 800;">Welcome!!</h1>
        </div> 
      </div>
    </div>
  </div>

  <% if(member.user_image) { %> 
    <img class="card-img-top" src="<%=member.user_image%>" style="width: 10%;" alt="Card image cap">
  <% }else {%>
    <img class="card-img-top" src="avatar.svg" style="width: 30%; justify-content: center;" alt="Card image cap">
    <% } %>  
    <div class="jumbotron" style="background-color: white;">
        <div class="container">
            <form action="/memberupdate/<%=member.id %>" method="POST" >

            <div class="form-group">
              <label for="title">Name </label>
              <input type="text" class="form-control" name="name"  placeholder="Enter Member Name" value=<%= member.name%>  >
            </div>
            <div class="form-group">
              <label for="title">Mail Id</label>
              <input type="mail" class="form-control" name="mail_id"  placeholder="Enter Mail ID" value=<%= member.mail_id %>  >
            </div>
            <div class="form-group">
              <label for="title">Github Link</label>
              <input type="text" class="form-control" name="gitlink"   placeholder="Enter Github Link"  value=<%= member.gitlink %> >
            </div>
            <div class="form-group">
              <label for="password1">New Password</label>
              <input type="password" class="form-control" name="password1" id="title"  placeholder="Enter Password"  >
            </div>
            <div class="form-group">
              <label for="password2">Confirm Password</label>
              <input type="password" class="form-control" name="password2" placeholder="Re enter Password" >
            </div>

            <div class="form-group">
              <label for="user_image">Uplaod Your Pic</label>
              <input type="url" class="form-control" name="user_image" value=<%= member.user_image %> placeholder="Give the Link for Pic"   >
            </div>

            <div class="form-group" style="text-align: center;">
                <button type="submit" class="btn btn-outline-dark">Submit</button>
            </div>
          </form>
        </div>
    </div>






    <%- include('./partials/footer') %>



    <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>