Bartosz Dziewoński
2d382b198f
HTMLDateTimeField: Load styles for PHP widget
...
Bug: T220601
Change-Id: Id507459fea434bd6eb1af2bb6d1163c138a3a9d1
2019-04-11 00:50:11 +02:00
jdlrobson
7a52d71e2a
Use DateInputWidget for date inputs which do not need time
...
For those that still need the precision of time, the
DateTimeInputWidget can be used.
Bug: T107069
Change-Id: I2e0b0168b53594760c2630dc4ecd4e6af7404a7c
2019-03-27 21:59:10 +00:00
Bartosz Dziewoński
205231d7da
HTMLDateTimeField: Remove hacks for HTML5 form validation attributes
...
No longer needed after I08244addcf9b6eb96137895f28e7b750914fef5c.
Also remove datetime.js from mediawiki.htmlform module.
Change-Id: Ic2410c689de3f70f573fa1c71456e6d3f334f80b
2017-01-10 22:53:33 +00:00
jenkins-bot
d05562d0db
Merge "HTMLDateTimeField: Fix 'placeholder' attribute handling"
2016-11-25 18:58:48 +00:00
Bartosz Dziewoński
ce247df6b5
HTMLDateTimeField: Fix 'placeholder' attribute handling
...
Parent class HTMLTextField handles this specially and we have to match it.
Change-Id: Ibff3caba2a58c2bcbfb342789aae9f0939b7687f
2016-11-24 16:13:40 +01:00
Brad Jorsch
7fdbe15fb6
HTMLForm: Allow returning Message objects from HTMLFormField::validate()
...
It mostly already worked. HTMLForm::trySubmit() needed a little
adjustment to handle things properly.
Change-Id: Ibb17bb61ac0b2d41953249980bc2f23b8a3ae5b6
2016-11-14 13:25:14 -05:00
addshore
63dd31cd31
Add access modifiers to htmlform classes
...
Change-Id: Id8c0f0676b3200993af3cec493efc99839211bcc
2016-11-04 11:40:42 +01:00
Brad Jorsch
627148d2bb
HTMLDateTimeField: Properly handle empty input
...
i.e. don't parse it as "now" in date or datetime mode.
Bug: T148200
Change-Id: I5a3839540222160e8d7376b5b961147c41d48885
2016-10-14 12:39:31 -04:00
Brad Jorsch
12bdc84219
HTMLForm: Add HTMLDateTimeField
...
And to do that, an OOUI PHP widget for
mw.widgets.datetime.DateTimeInputWidget too.
Bug: T146340
Change-Id: Iaa8b5892b6c3a1f3698cef59684cc3cdc9d483ea
2016-09-26 12:08:56 -04:00