{% extends "index.html"%} {% block content%}
<div class="card">

  <div class="card-header text-light bg-gradient-danger">
    <h3>Edit Data {{member.nama}}</h3> </div>
  <hr>
  <div class="card-body col-5">
  <form method="post" action="{% url 'updatemember' member.id%}" enctype="multipart/form-data">
      {% csrf_token %}
      <div class="form-group row">
        <label class="col-4 col-form-label" for="nama">nama member</label> 
        <div class="col-8">
          <input id="nama" name="nama"  value="{{member.nama}}" placeholder="Masukan Nama member" type="text" class="form-control" required="required">
        </div>
      </div>
      <div class="form-group row">
        <label for="alamat" class="col-4 col-form-label"> alamat</label> 
        <div class="col-8">
          <input id="alamat" name="alamat" value="{{member.alamat}}" placeholder="Masukan Alamat Mmeber" type="text" class="form-control" required="required">
        </div>
      </div> 
      <div class="form-group row">
        <label for="email" class="col-4 col-form-label"> email</label> 
        <div class="col-8">
          <input id="email" name="email" value="{{member.email}}" placeholder="Masukan Email Member" type="text" class="form-control" required="required">
        </div>
      </div> 

      <button type="submit" name="submit" class="btn btn-primary align-items-center">Edit</button>
    </form>
  </div>
</div>
{% endblock content%}