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', 'id'=>'presetexpdate',
'name'=>'presetexpdate', 'name'=>'presetexpdate',
'options'=>$options 'options'=>$options
),
array(
'help'=>getMLText('set_expiration_date_help')
) )
); );
$this->formField( $this->formField(
getMLText("expires"), getMLText("expires"),
$this->getDateChooser($expdate, "expdate", $this->params['session']->getLanguage()) $this->getDateChooser($expdate, "expdate", $this->params['session']->getLanguage(), '', '+1d')
); );
$this->contentContainerEnd(); $this->contentContainerEnd();
$this->formSubmit("<i class=\"fa fa-save\"></i> ".getMLText('save')); $this->formSubmit("<i class=\"fa fa-save\"></i> ".getMLText('save'));