{%load static%}
<!DOCTYPE html>
<html>
<head>
<title>Student Detail</title>
<!-- <link rel=“stylesheet” href=“{% static ‘assets/css/custom.css’ %}”> -->
<link rel=“stylesheet” href=“https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css”>

<link rel=“stylesheet” href=“https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css” />
<script src=“https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.slim.min.js”></script>

<script src=“https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js”></script>

<script src=“https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js”></script>
</head>
<body>
<div class=“container”>
<div class=“row”>
<div class=“col-md-6 offset-md-3”>
<div class=“card”>
<div class=“card-body”>
<h5 class=“card-title”>{{ student.first_name }} {{ student.last_name }}</h5>
<p class=“card-text”>Email: {{ student.email }}</p>
<p class=“card-text”>Phone Number: {{ student.phone_number }}</p>
<a href=“{% url ‘students:student_edit’ student.pk %}” class=“btn btn-primary”>Edit</a>
<a href=“{% url ‘students:student_delete’ student.pk %}” class=“btn btn-danger”>Delete</a>
<a href=“{% url ‘students:student_list’ %}” class=“btn btn-secondary”>Back to List</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>


<!DOCTYPE html>
<html>
<head>
<title>Student List</title>
<link rel=“stylesheet” href=“https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css”>
<link rel=“stylesheet” href=“https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css” />
<script src=“https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.slim.min.js”></script>
<script src=“https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js”></script>
<script src=“https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js”></script>
</head>
<body>
<div class=“container”>
<h1>Student List</h1>
<div class=“row”>
{% for student in students %}
<div class=“col-lg-4 col-md-6 col-sm-12 mb-4”>
<div class=“card h-100”>
<div class=“card-body”>
<h5 class=“card-title”>{{ student.first_name }} {{ student.last_name }}</h5>
<p class=“card-text”>{{ student.email }}</p>
<p class=“card-text”>{{ student.phone_number }}</p>
</div>
<div class=“card-footer”>
<a href=“{% url ‘students:student_detail’ student.pk %}” class=“btn btn-primary mr-2”>Details</a>
<a href=“{% url ‘students:student_edit’ student.pk %}” class=“btn btn-secondary mr-2”>Edit</a>
<a href=“{% url ‘students:student_delete’ student.pk %}” class=“btn btn-danger”>Delete</a>
</div>
</div>
</div>
{% endfor %}
</div>
<a href=“{% url ‘students:student_add’ %}” class=“btn btn-success mt-4”>Add Student</a>
</div>
</body>
</html> -->



{% load static %}

<!DOCTYPE html>
<html>
<head>
<title>Student List</title>
<link rel=“stylesheet” href=“https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css”>
<link rel=“stylesheet” href=“https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css” />
<script src=“https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.slim.min.js”></script>
<script src=“https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js”></script>
<script src=“https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js”></script>
</head>
<body>
<div class=“container”>
<h1 class=“mt-5 mb-4”>Student List</h1>
<table class=“table table-striped”>
<thead>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Email</th>
<th>Phone Number</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for student in students %}
<tr>
<td>{{ student.first_name }}</td>
<td>{{ student.last_name }}</td>
<td>{{ student.email }}</td>
<td>{{ student.phone_number }}</td>
<td>
<a href=“{% url ‘students:student_detail’ student.pk %}” class=“btn btn-sm btn-primary”>View</a>
<a href=“{% url ‘students:student_edit’ student.pk %}” class=“btn btn-sm btn-secondary”>Edit</a>
<form action=“{% url ‘students:student_delete’ student.pk %}” method=“post” style=“display: inline-block”>
{% csrf_token %}
<input type=“submit” value=“Delete” class=“btn btn-sm btn-danger”>
</form>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href=“{% url ‘students:student_add’ %}” class=“btn btn-primary”>Add Student</a>
</div>
</body>
</html>