littwin-blue in digitale Ausgänge Schalter
This commit is contained in:
@@ -84,7 +84,7 @@ const GeneralSettings = () => {
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
className="bg-gray-500 text-white px-3 py-1 rounded text-xs"
|
||||
className="bg-littwin-blue text-white px-3 py-1 rounded text-xs"
|
||||
onClick={() => handleSetDateTime()}
|
||||
>
|
||||
Setzen
|
||||
@@ -129,33 +129,42 @@ const GeneralSettings = () => {
|
||||
/>
|
||||
</div>
|
||||
<div className="col-span-2 flex items-center gap-2">
|
||||
<label className="block text-xs font-medium">NTP Aktiv:</label>
|
||||
<input
|
||||
id="ntpActive"
|
||||
type="checkbox"
|
||||
className="peer hidden"
|
||||
checked={active}
|
||||
onChange={(e) => setActive(e.target.checked)}
|
||||
/>
|
||||
<label
|
||||
htmlFor="ntpActive"
|
||||
className="w-5 h-5 border-2 border-gray-300 rounded cursor-pointer flex items-center justify-center
|
||||
peer-checked:bg-littwin-blue peer-checked:border-littwin-blue peer-checked:text-white"
|
||||
>
|
||||
✓
|
||||
</label>
|
||||
<span className="text-xs font-medium">NTP Aktiv</span>
|
||||
</div>
|
||||
|
||||
{/* ✅ Buttons */}
|
||||
<div className="col-span-2 flex justify-between mt-2">
|
||||
<button
|
||||
type="button"
|
||||
className="bg-blue-500 text-white px-3 py-1 rounded text-xs"
|
||||
className="bg-littwin-blue text-white px-3 py-1 rounded text-xs"
|
||||
onClick={() => handleReboot()}
|
||||
>
|
||||
Neustart
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className="bg-red-500 text-white px-3 py-1 rounded text-xs"
|
||||
className="bg-littwin-blue text-white px-3 py-1 rounded text-xs"
|
||||
onClick={() => handleClearDatabase()}
|
||||
>
|
||||
Datenbank leeren
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className="bg-green-500 text-white px-3 py-1 rounded text-xs"
|
||||
className="bg-littwin-blue text-white px-3 py-1 rounded text-xs"
|
||||
onClick={() =>
|
||||
handleSubmit(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user