kaauh_ats/templates/meetings/list_meetings.html

249 lines
7.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Zoom Meetings</title>
<style>
:root {
--primary-color: #1b8354;
--background-color: #fcfcfc;
--text-color: #333;
--border-color: #e0e0e0;
--card-bg: #ffffff;
--secondary-text: #666;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: var(--background-color);
color: var(--text-color);
line-height: 1.6;
padding: 20px;
}
.container {
max-width: 1000px;
margin: 0 auto;
}
.header {
text-align: center;
margin-bottom: 30px;
padding: 20px 0;
border-bottom: 1px solid var(--border-color);
}
.header h1 {
color: var(--primary-color);
margin-bottom: 10px;
}
.meetings-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
}
.meeting-card {
background: var(--card-bg);
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
padding: 20px;
transition: transform 0.3s ease, box-shadow 0.3s ease;
border: 1px solid var(--border-color);
}
.meeting-card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.meeting-topic {
font-size: 1.2em;
font-weight: 600;
color: var(--primary-color);
margin-bottom: 10px;
}
.meeting-detail {
display: flex;
margin-bottom: 8px;
}
.detail-label {
font-weight: 600;
min-width: 100px;
color: var(--secondary-text);
font-size: 0.9em;
}
.detail-value {
flex: 1;
font-size: 0.9em;
}
.status-badge {
display: inline-block;
padding: 4px 10px;
border-radius: 20px;
font-size: 0.8em;
font-weight: 600;
}
.status-waiting {
background-color: #fff8e1;
color: #ff8f00;
}
.actions {
margin-top: 15px;
display: flex;
gap: 10px;
}
.btn {
padding: 8px 15px;
border-radius: 5px;
text-decoration: none;
font-weight: 600;
font-size: 0.85em;
display: inline-block;
text-align: center;
transition: all 0.3s ease;
flex: 1;
text-align: center;
}
.btn-primary {
background-color: var(--primary-color);
color: white;
border: 1px solid var(--primary-color);
}
.btn-secondary {
background-color: white;
color: var(--primary-color);
border: 1px solid var(--primary-color);
}
.btn-danger {
background-color: #ff4d4d;
color: white;
border: 1px solid #ff4d4d;
}
.btn:hover {
opacity: 0.9;
}
.messages {
margin-bottom: 20px;
}
.alert {
padding: 10px;
border-radius: 5px;
margin-bottom: 10px;
font-size: 0.9em;
}
.alert-success {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.alert-error {
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
@media (max-width: 768px) {
.meetings-grid {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>Zoom Meetings</h1>
<p>Your upcoming and past meetings</p>
</div>
<!-- Messages -->
{% if messages %}
<div class="messages">
{% for message in messages %}
<div class="alert alert-{{ message.tags }}">
{{ message }}
</div>
{% endfor %}
</div>
{% endif %}
<a href="{% url 'create_meeting' %}" class="btn btn-primary" style="margin-bottom: 20px;">Create Meeting</a>
{% if meetings %}
<div class="meetings-grid">
{% for meeting in meetings %}
<div class="meeting-card">
<div class="meeting-topic">{{ meeting.topic }}</div>
<div class="meeting-detail">
<div class="detail-label">ID:</div>
<div class="detail-value">{{ meeting.id }}</div>
</div>
<div class="meeting-detail">
<div class="detail-label">Time:</div>
<div class="detail-value">{{ meeting.start_time }}</div>
</div>
<div class="meeting-detail">
<div class="detail-label">Duration:</div>
<div class="detail-value">{{ meeting.duration }} minutes</div>
</div>
<div class="meeting-detail">
<div class="detail-label">Status:</div>
<div class="detail-value">
<span class="status-badge status-waiting">{{ meeting.status|title }}</span>
</div>
</div>
<div class="actions" style="display: flex; align-items: center;">
<a href="{% url 'meeting_details' meeting.pk %}" class="btn btn-primary">View</a>
<a href="{% url 'update_meeting' meeting.pk %}" class="btn btn-secondary" style="margin-left: 10px;">Update</a>
<form method="post" action="{% url 'delete_meeting' meeting.pk %}" style="display:inline; margin-left: 10px;">
{% csrf_token %}
<button type="submit" class="btn btn-danger">Delete</button>
</form>
</div>
</div>
{% endfor %}
</div>
<!-- Pagination -->
{% if next_page_token %}
<div style="text-align: center; margin-top: 30px;">
<a href="?next_page_token={{ next_page_token }}" class="btn btn-primary">Load More</a>
</div>
{% endif %}
{% else %}
<div class="meeting-card">
<p>No meetings found.</p>
</div>
{% endif %}
</div>
</body>
</html>