Adapt video and episode editing forms to show distinct fields
Update the admin interface to conditionally display labels, placeholders, and input fields based on whether the content is a video or an episode, differentiating between song titles/artists and episode titles/performers. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 170e18f0-0f13-4eca-8643-546bba1dd8cc Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/170e18f0-0f13-4eca-8643-546bba1dd8cc/wfkjaU4
This commit is contained in:
parent
57c6462561
commit
d45aedfc0d
@ -347,29 +347,34 @@ function EditVideoDialog({
|
||||
<form onSubmit={handleSubmit} className="space-y-6">
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||
<div>
|
||||
<Label className="text-white/90">Title</Label>
|
||||
<Label className="text-white/90">
|
||||
{formData.episodeNumber ? 'Episode Title / Show Name' : 'Song Title'}
|
||||
</Label>
|
||||
<Input
|
||||
value={formData.title}
|
||||
onChange={(e) => setFormData({ ...formData, title: e.target.value })}
|
||||
className="bg-white/10 border-white/20 text-white"
|
||||
placeholder={formData.episodeNumber ? "Episode title or show name..." : "Song title..."}
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<Label className="text-white/90">Artist/Izvajalec</Label>
|
||||
<Label className="text-white/90">
|
||||
{formData.episodeNumber ? 'Guest / Performer' : 'Artist / Band'}
|
||||
</Label>
|
||||
<Input
|
||||
value={formData.artist}
|
||||
onChange={(e) => setFormData({ ...formData, artist: e.target.value })}
|
||||
className="bg-white/10 border-white/20 text-white"
|
||||
placeholder="Enter artist/band name..."
|
||||
placeholder={formData.episodeNumber ? "Guest name or performer..." : "Artist or band name..."}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<Label className="text-white/90">File Name (from Bunny.net)</Label>
|
||||
<Input
|
||||
value={formData.filename}
|
||||
value={formData.filename || ''}
|
||||
onChange={(e) => setFormData({ ...formData, filename: e.target.value })}
|
||||
className="bg-white/10 border-white/20 text-white"
|
||||
placeholder="Original filename..."
|
||||
@ -383,8 +388,13 @@ function EditVideoDialog({
|
||||
value={formData.episodeNumber}
|
||||
onChange={(e) => setFormData({ ...formData, episodeNumber: e.target.value })}
|
||||
className="bg-white/10 border-white/20 text-white"
|
||||
placeholder="e.g., 15"
|
||||
placeholder="e.g., 15 (leave empty for music videos)"
|
||||
/>
|
||||
{formData.episodeNumber && (
|
||||
<p className="text-sm text-blue-300 mt-1">
|
||||
🎭 Show mode: Fields above adjusted for episode content
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user