[32788f42] fix(list-generator): add missing UI inputs to fix TS unused variables error in frontend

This commit is contained in:
2026-03-18 19:43:59 +00:00
parent 0565ed678a
commit fb17445807

View File

@@ -65,11 +65,28 @@ function App() {
<input type="text" required value={dateInfo} onChange={(e) => setDateInfo(e.target.value)} placeholder="07.+09.07.2025" className="mt-1 block w-full border-gray-300 border p-2 rounded-md shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm" />
</div>
<div>
<label className="block text-sm font-medium text-gray-700">Listen-Typ</label>
<select
value={listType}
onChange={(e) => setListType(e.target.value)}
className="mt-1 block w-full border-gray-300 border p-2 rounded-md shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"
>
<option value="k">Schule / Kindergarten (Standard)</option>
<option value="e">Event / Veranstaltung</option>
</select>
</div>
<div>
<label className="block text-sm font-medium text-gray-700">Namensliste (CSV)</label>
<input type="file" required accept=".csv" onChange={(e) => setStudentsFile(e.target.files?.[0] || null)} className="mt-1 block w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-md file:border-0 file:text-sm file:font-semibold file:bg-indigo-50 file:text-indigo-700 hover:file:bg-indigo-100" />
</div>
<div>
<label className="block text-sm font-medium text-gray-700">Familienliste (Optional, CSV)</label>
<input type="file" accept=".csv" onChange={(e) => setFamiliesFile(e.target.files?.[0] || null)} className="mt-1 block w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-md file:border-0 file:text-sm file:font-semibold file:bg-indigo-50 file:text-indigo-700 hover:file:bg-indigo-100" />
</div>
<button type="submit" disabled={isLoading} className="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 disabled:opacity-50">
{isLoading ? "Generiere..." : "PDF Generieren & Herunterladen"}
</button>