Files
beamer/templates/edit_channel.html

40 lines
1.8 KiB
HTML

<!DOCTYPE html>
<html lang="en" data-bs-theme="light">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Edit Channel</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css" rel="stylesheet">
</head>
<body>
<div class="container mt-4">
<h2>Edit Channel</h2>
<form method="post">
<div class="mb-3">
<label for="name" class="form-label">Channel Name</label>
<input type="text" class="form-control" name="name" value="{{ channel.name }}" required>
</div>
<div class="mb-3">
<label for="description" class="form-label">Description</label>
<textarea class="form-control" name="description">{{ channel.description or '' }}</textarea>
</div>
<div class="mb-3">
<div class="form-check">
<input class="form-check-input" type="checkbox" name="is_default" {{ 'checked' if channel.is_default else '' }}>
<label class="form-check-label">Set as default channel</label>
</div>
</div>
<div class="mb-3">
<div class="form-check">
<input class="form-check-input" type="checkbox" name="is_active" {{ 'checked' if channel.is_active else '' }}>
<label class="form-check-label">Channel is active</label>
</div>
</div>
<button type="submit" class="btn btn-primary">Update Channel</button>
<a href="{{ url_for('view_channels') }}" class="btn btn-secondary">Cancel</a>
</form>
</div>
</body>
</html>