rezamalik15

Untitled

May 8th, 2023
754
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.00 KB | None | 0 0
  1. <button class="btn btn-warning" data-bs-toggle="modal" data-bs-target="#editStudent-{{ student.id }}">Edit</button>
  2.  
  3.                             <div class="modal fade" id="editStudent-{{ student.id }}" tabindex="-1" aria-labelledby="editStudentLabel" aria-hidden="true">
  4.                                 <div class="modal-dialog modal-dialog-centered">
  5.                                     <div class="modal-content">
  6.                                         <div class="modal-header">
  7.                                             <h1 class="modal-title fs-5" id="editStudentLabel">Edit Student</h1>
  8.                                         </div>
  9.  
  10.                                         <div class="modal-body">
  11.                                             <form action="" method="POST">
  12.                                                 {% csrf_token %}
  13.                                                 <input type="text" name="fullname" value="{{ student.name }}">
  14.                                                 <textarea name="address" value>{{ student.address }}</textarea>
  15.                                                 <input type="text" name="phone" value="{{ student.phone }}">
  16.                                                 <input type="submit">
  17.                                             </form>
  18.                                         </div>
  19.  
  20.                                         <div class="modal-footer">
  21.                                             asndnas,mdn,as
  22.                                         </div>
  23.                                     </div>
  24.                                 </div>
  25.                             </div>
Advertisement
Add Comment
Please, Sign In to add comment