mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-09-18 09:29:24 +00:00
Make placeholder dates more obvious
This commit is contained in:
parent
860de72aab
commit
b0d16cf069
@ -1129,10 +1129,12 @@
|
|||||||
"format": "Format: yyyy/MM/dd HH:mm:ss"
|
"format": "Format: yyyy/MM/dd HH:mm:ss"
|
||||||
},
|
},
|
||||||
"creationDate": {
|
"creationDate": {
|
||||||
"label": "Creation Date"
|
"label": "Creation Date",
|
||||||
|
"placeholder": "e.g. 2025/01/17 14:30:00"
|
||||||
},
|
},
|
||||||
"modificationDate": {
|
"modificationDate": {
|
||||||
"label": "Modification Date"
|
"label": "Modification Date",
|
||||||
|
"placeholder": "e.g. 2025/01/17 14:30:00"
|
||||||
},
|
},
|
||||||
"trapped": {
|
"trapped": {
|
||||||
"label": "Trapped Status",
|
"label": "Trapped Status",
|
||||||
|
@ -15,9 +15,6 @@ interface ChangeMetadataSettingsProps {
|
|||||||
updateCustomMetadata: (id: string, key: string, value: string) => void;
|
updateCustomMetadata: (id: string, key: string, value: string) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Global date/time fixed at module load time
|
|
||||||
const currentDateTime = new Date();
|
|
||||||
const formattedDateTime = `${currentDateTime.getFullYear()}/${String(currentDateTime.getMonth() + 1).padStart(2, '0')}/${String(currentDateTime.getDate()).padStart(2, '0')} ${String(currentDateTime.getHours()).padStart(2, '0')}:${String(currentDateTime.getMinutes()).padStart(2, '0')}:${String(currentDateTime.getSeconds()).padStart(2, '0')}`;
|
|
||||||
|
|
||||||
const ChangeMetadataSettings = ({
|
const ChangeMetadataSettings = ({
|
||||||
parameters,
|
parameters,
|
||||||
@ -159,7 +156,7 @@ const ChangeMetadataSettings = ({
|
|||||||
|
|
||||||
<TextInput
|
<TextInput
|
||||||
label={t('changeMetadata.creationDate.label', 'Creation Date')}
|
label={t('changeMetadata.creationDate.label', 'Creation Date')}
|
||||||
placeholder={formattedDateTime}
|
placeholder={t('changeMetadata.creationDate.placeholder', 'e.g. 2025/01/17 14:30:00')}
|
||||||
value={parameters.creationDate}
|
value={parameters.creationDate}
|
||||||
onChange={(e) => onParameterChange('creationDate', e.target.value)}
|
onChange={(e) => onParameterChange('creationDate', e.target.value)}
|
||||||
disabled={fieldsDisabled}
|
disabled={fieldsDisabled}
|
||||||
@ -167,7 +164,7 @@ const ChangeMetadataSettings = ({
|
|||||||
|
|
||||||
<TextInput
|
<TextInput
|
||||||
label={t('changeMetadata.modificationDate.label', 'Modification Date')}
|
label={t('changeMetadata.modificationDate.label', 'Modification Date')}
|
||||||
placeholder={formattedDateTime}
|
placeholder={t('changeMetadata.modificationDate.placeholder', 'e.g. 2025/01/17 14:30:00')}
|
||||||
value={parameters.modificationDate}
|
value={parameters.modificationDate}
|
||||||
onChange={(e) => onParameterChange('modificationDate', e.target.value)}
|
onChange={(e) => onParameterChange('modificationDate', e.target.value)}
|
||||||
disabled={fieldsDisabled}
|
disabled={fieldsDisabled}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user