Arbeitszeit nur in 15-Minuten-Schritten, berechnete Zeit wird aufgerundet
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
32bc3d7c3d
commit
3535f18a2b
5 files changed
+70
-37
No files matched your search
@@ -0,0 +1,20 @@
|
||||
import { stepOptions } from '../../lib/timeSteps'
|
||||
|
||||
/* Arbeitszeit nur in 15-Minuten-Schritten (15 min bis 12 h), siehe lib/timeSteps */
|
||||
export default function DurationSelect({ id, value, onChange, disabled }) {
|
||||
return (
|
||||
<select
|
||||
id={id}
|
||||
className="form-control"
|
||||
value={value}
|
||||
disabled={disabled}
|
||||
onChange={(e) => onChange(Number(e.target.value))}
|
||||
>
|
||||
{/* Kommentar ohne Arbeitszeit */}
|
||||
{!value && <option value={0}>–</option>}
|
||||
{stepOptions(value).map((o) => (
|
||||
<option key={o.value} value={o.value}>{o.label}</option>
|
||||
))}
|
||||
</select>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user