()
| 586 | } |
| 587 | |
| 588 | function showAddStudentModal() { |
| 589 | const content = ` |
| 590 | <form id="addStudentForm"> |
| 591 | <div class="form-group"> |
| 592 | <label>Ism Familiya</label> |
| 593 | <input type="text" id="studentName" required> |
| 594 | </div> |
| 595 | <div class="form-group"> |
| 596 | <label>Sinf</label> |
| 597 | <select id="studentClass" required> |
| 598 | <option value="">Sinfni tanlang</option> |
| 599 | <option value="9-A">9-A</option> |
| 600 | <option value="10-A">10-A</option> |
| 601 | <option value="11-A">11-A</option> |
| 602 | </select> |
| 603 | </div> |
| 604 | <div class="form-group"> |
| 605 | <label>Telefon</label> |
| 606 | <input type="tel" id="studentPhone" required> |
| 607 | </div> |
| 608 | <div class="form-group"> |
| 609 | <label>Email</label> |
| 610 | <input type="email" id="studentEmail" required> |
| 611 | </div> |
| 612 | <div class="form-group"> |
| 613 | <button type="submit" class="btn btn-primary">Qo'shish</button> |
| 614 | <button type="button" class="btn btn-secondary" onclick="closeModal()">Bekor qilish</button> |
| 615 | </div> |
| 616 | </form> |
| 617 | ` |
| 618 | |
| 619 | showModal("Yangi O'quvchi Qo'shish", content) |
| 620 | |
| 621 | document.getElementById("addStudentForm").addEventListener("submit", (e) => { |
| 622 | e.preventDefault() |
| 623 | addStudent() |
| 624 | }) |
| 625 | } |
| 626 | |
| 627 | function showAddTeacherModal() { |
| 628 | const content = ` |
no test coverage detected