Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
voting.typo3.org
extensions
election
Commits
0faf9d3c
Commit
0faf9d3c
authored
Mar 14, 2020
by
Marco Huber
Browse files
Datetimepicker for date fields
parent
1a5765b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Resources/Private/Partials/Model/Election/FormFields/EndDate.html
View file @
0faf9d3c
...
...
@@ -3,8 +3,9 @@
<label>
<f:translate
key=
"model.election.field.end_date"
>
End date
</f:translate>
</label>
<div
class=
"form-control-wrap"
style=
"max-width: 480px"
>
<f:form.textfield
class=
"form-control"
property=
"endDate"
value=
"{election.endDate -> f:format.date(format:'Y-m-d H:i:s')}"
/>
<div
class=
"form-control-wrap"
style=
"max-width: 480px; position:relative;"
>
<f:be.pageRenderer
includeRequireJsModules=
"{0: 'TYPO3/CMS/Backend/DateTimePicker'}"
/>
<f:form.textfield
class=
"form-control t3js-datetimepicker"
data=
"{date-type: 'datetime', date-format: 'YYYY-MM-DD HH:mm:ss'}"
property=
"endDate"
value=
"{election.endDate -> f:format.date(format:'Y-m-d H:i:s')}"
/>
</div>
</div>
</fieldset>
Resources/Private/Partials/Model/Election/FormFields/StartDate.html
View file @
0faf9d3c
<f:render
partial=
"Model/Election/FormFields/Title"
arguments=
"{election:election}"
/>
<fieldset
class=
"form-section"
>
<div
class=
"form-group"
>
<label>
<f:translate
key=
"model.election.field.start_date"
>
Start date
</f:translate>
</label>
<div
class=
"form-control-wrap"
style=
"max-width: 480px"
>
<f:form.textfield
class=
"form-control"
property=
"startDate"
value=
"{election.startDate -> f:format.date(format:'Y-m-d H:i:s')}"
/>
<div
class=
"form-control-wrap"
style=
"max-width: 480px; position:relative;"
>
<f:be.pageRenderer
includeRequireJsModules=
"{0: 'TYPO3/CMS/Backend/DateTimePicker'}"
/>
<f:form.textfield
class=
"form-control t3js-datetimepicker"
data=
"{date-type: 'datetime', date-format: 'YYYY-MM-DD HH:mm:ss'}"
property=
"startDate"
value=
"{election.startDate -> f:format.date(format:'Y-m-d H:i:s')}"
/>
</div>
</div>
</fieldset>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment