Main #16
No files matched your search
+7
-7
@@ -122,7 +122,7 @@ export default function AdminPage() {
|
||||
<Card title="Neues Liederbuch">
|
||||
<div className="space-y-4">
|
||||
<div>
|
||||
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Name des Buchs</label>
|
||||
<Input.Label>Name des Buchs</Input.Label>
|
||||
<Input.Text
|
||||
type="text"
|
||||
placeholder="z.B. Gesangbuch"
|
||||
@@ -131,7 +131,7 @@ export default function AdminPage() {
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Sprache (Optional)</label>
|
||||
<Input.Label>Sprache (Optional)</Input.Label>
|
||||
<Input.Text
|
||||
type="text"
|
||||
placeholder="z.B. Deutsch"
|
||||
@@ -151,7 +151,7 @@ export default function AdminPage() {
|
||||
<Card title="Lied hinzufügen">
|
||||
<div className="space-y-4">
|
||||
<div>
|
||||
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Liederbuch wählen</label>
|
||||
<Input.Label>Liederbuch wählen</Input.Label>
|
||||
<Input.Select
|
||||
value={selectedSongbookId}
|
||||
onChange={(e) => setSelectedSongbookId(e.target.value)}
|
||||
@@ -166,7 +166,7 @@ export default function AdminPage() {
|
||||
</div>
|
||||
<div className="grid grid-cols-3 gap-2">
|
||||
<div className="col-span-1">
|
||||
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Nummer</label>
|
||||
<Input.Label>Nummer</Input.Label>
|
||||
<Input.Text
|
||||
type="text"
|
||||
placeholder="12a"
|
||||
@@ -175,7 +175,7 @@ export default function AdminPage() {
|
||||
/>
|
||||
</div>
|
||||
<div className="col-span-2">
|
||||
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Liedtitel</label>
|
||||
<Input.Label>Titel</Input.Label>
|
||||
<Input.Text
|
||||
type="text"
|
||||
placeholder="Großer Gott, wir..."
|
||||
@@ -193,7 +193,7 @@ export default function AdminPage() {
|
||||
<input type="hidden" name="songbookId" value={selectedSongbookId} />
|
||||
<div className="space-y-4">
|
||||
<div>
|
||||
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Ziel-Liederbuch</label>
|
||||
<Input.Label>Ziel-Liederbuch</Input.Label>
|
||||
<Input.Select
|
||||
value={selectedSongbookId}
|
||||
onChange={(e) => setSelectedSongbookId(e.target.value)}
|
||||
@@ -207,7 +207,7 @@ export default function AdminPage() {
|
||||
</Input.Select>
|
||||
</div>
|
||||
<div>
|
||||
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">Datei auswählen (.csv)</label>
|
||||
<Input.Label>Datei auswählen (.csv)</Input.Label>
|
||||
<Input.File
|
||||
name="csvFile"
|
||||
accept=".csv"
|
||||
|
||||
@@ -47,9 +47,18 @@ function Button({ children, ...props }: ComponentPropsWithoutRef<"button">) {
|
||||
)
|
||||
}
|
||||
|
||||
function Label( {children}: ComponentPropsWithoutRef<"label">) {
|
||||
return (
|
||||
<label className="block text-xs font-semibold text-neutral-400 uppercase tracking-wider mb-1.5">
|
||||
{children}
|
||||
</label>
|
||||
)
|
||||
}
|
||||
|
||||
export const Input = {
|
||||
Text: Textfield,
|
||||
Select: Dropdown,
|
||||
File: File,
|
||||
Button: Button,
|
||||
Label: Label,
|
||||
};
|
||||
Reference in new issue
Block a user