38 lines
1.9 KiB
HTML
38 lines
1.9 KiB
HTML
{% extends 'base.html' %}
|
|
{% block title %} Home{% endblock title %}
|
|
{% block body %}
|
|
|
|
<div class="container my-3">
|
|
<h2>Update Student</h2>
|
|
<form action="/update/{{student.id}}" method="POST">
|
|
<div class="mb-3">
|
|
<label for="fname" class="form-label">First name</label>
|
|
<input type="text" class="form-control" name="fname" id="fname" value="{{fname}}" aria-describedby="emailHelp">
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="lname" class="form-label">Last Name</label>
|
|
<input type="text" class="form-control" name="lname" id="lname" value="{{lname}}" aria-describedby="emailHelp">
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="grade" class="form-label">Grade</label>
|
|
<input type="text" class="form-control" name="grade" id="grade" value="{{student.grade}}" >
|
|
</div>
|
|
|
|
<button type="submit" class="btn btn-dark">Update</button>
|
|
</form>
|
|
</div>
|
|
|
|
<!-- Optional JavaScript; choose one of the two! -->
|
|
|
|
<!-- Option 1: Bootstrap Bundle with Popper -->
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js"
|
|
integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0"
|
|
crossorigin="anonymous"></script>
|
|
|
|
<!-- Option 2: Separate Popper and Bootstrap JS -->
|
|
<!--
|
|
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.6.0/dist/umd/popper.min.js" integrity="sha384-KsvD1yqQ1/1+IA7gi3P0tyJcT3vR+NdBTt13hSJ2lnve8agRGXTTyNaBYmCR/Nwi" crossorigin="anonymous"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.min.js" integrity="sha384-nsg8ua9HAw1y0W1btsyWgBklPnCUAFLuTMS2G72MMONqmOymq585AcH49TLBQObG" crossorigin="anonymous"></script>
|
|
-->
|
|
|
|
{% endblock body %} |