feat: show raw informations about selected song

This commit is contained in:
robin committed 2026-07-27 18:39:26 +02:00
1 parent 9b73ce99e7
commit f68d9cd9e5
1 file changed
+17 -2
+17 -2
View File
@@ -247,8 +247,23 @@ export default function AdminPage() {
/>
<Card title="Ausgewähltes Lied">
<Input.Text value={selectedSong ? selectedSong.title : ""} disabled></Input.Text>
<Card title="Zu Liederbuch hinzufügen" className="mt-4">
<p>Content is comming soon</p>
<Card title="Informationen" className="mt-4">
<p>Liederbuch-ID: {selectedSong?.songbook_id}</p>
<p>Nummer: {selectedSong?.song_number}</p>
<p>Lied-ID: {selectedSong?.song_id}</p>
</Card>
<Card title="Zu Liederbuch hinzufügen">
<Input.Select
value={selectedSongbookId}
onChange={(e) => setSelectedSongbookId(e.target.value)}
>
<option value="">-- Bitte wählen --</option>
{songbooks.map((book) => (
<option key={book.id} value={String(book.id)}>
{book.name}{book.language ? ` (${book.language})` : ""}
</option>
))}
</Input.Select>
</Card>
</Card>
</div>