only dates in the future can be selected, add help message for expiration date

This commit is contained in:
Uwe Steinmann 2023-09-29 14:32:27 +02:00
parent 520515303a
commit ede79bf40d

View File

@ -85,11 +85,14 @@ $(document).ready( function() {
'id'=>'presetexpdate',
'name'=>'presetexpdate',
'options'=>$options
),
array(
'help'=>getMLText('set_expiration_date_help')
)
);
$this->formField(
getMLText("expires"),
$this->getDateChooser($expdate, "expdate", $this->params['session']->getLanguage())
$this->getDateChooser($expdate, "expdate", $this->params['session']->getLanguage(), '', '+1d')
);
$this->contentContainerEnd();
$this->formSubmit("<i class=\"fa fa-save\"></i> ".getMLText('save'));