diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-06-19 16:32:39 +0200 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-06-19 16:32:39 +0200 |
| commit | 41e17b3ed7579104d9a9ec741fca0c576ac86cef (patch) | |
| tree | 06fe8a8a568665a929b8887183daddc0841c0865 /templates | |
| parent | fafe09daf59e8a2138af7c895da62b23735ee8ab (diff) | |
allow date and time data fields entries to be emptied (unless they are required) and fix time datafield input, fixes #5649, fixes #5650
Closes #5649 and #5650
Merge request studip/studip!4267
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/datafields/time.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/datafields/time.php b/templates/datafields/time.php index 0fe3c92..23e52f0 100644 --- a/templates/datafields/time.php +++ b/templates/datafields/time.php @@ -8,10 +8,10 @@ <? endif ?> <div style="white-space: nowrap;"> - <input type="text" name="<?= $name ?>[<?= $model->id ?>][]" + <input type="text" name="<?= $name ?>[<?= $model->id ?>]" value="<?= $value ?>" title="<?= _('Uhrzeit') ?>" <?= !$entry->isEditable() ? "disabled" : "" ?> - maxlength="2" class="size-s no-hint has-time-picker" + class="size-s no-hint has-time-picker" <? if ($model->is_required) echo 'required'; ?>> </div> </label> |
