Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <button class="btn btn-warning" data-bs-toggle="modal" data-bs-target="#editStudent-{{ student.id }}">Edit</button>
- <div class="modal fade" id="editStudent-{{ student.id }}" tabindex="-1" aria-labelledby="editStudentLabel" aria-hidden="true">
- <div class="modal-dialog modal-dialog-centered">
- <div class="modal-content">
- <div class="modal-header">
- <h1 class="modal-title fs-5" id="editStudentLabel">Edit Student</h1>
- </div>
- <div class="modal-body">
- <form action="" method="POST">
- {% csrf_token %}
- <input type="text" name="fullname" value="{{ student.name }}">
- <textarea name="address" value>{{ student.address }}</textarea>
- <input type="text" name="phone" value="{{ student.phone }}">
- <input type="submit">
- </form>
- </div>
- <div class="modal-footer">
- asndnas,mdn,as
- </div>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment