19 Commits

Author SHA1 Message Date
Matias Griese
9be238c4cb Fixed stringable objects breaking the inputs 2020-11-25 15:42:35 +02:00
Matias Griese
4af1da9d95 Optimize datetime field 2019-08-26 15:09:04 +03:00
Djamil Legato
d6afa39624 It is now possible to manually specify a format for the datetime field (fixes getgrav/grav#1261) 2017-01-20 13:57:54 -08:00
Djamil Legato
6b34336599 [WIP] Ajax Files Upload (#748)
* Reworked the `file` field. All files get uploaded via Ajax and are stored upon Save

This improves the Save task tremendously as now there is no longer the need of waiting for the files to finish uploading. Fully backward compatible, `file` field now includes also a `limit` and `filesize` option in the blueprints. The former determines how many files are allowed to be uploaded when in combination with `multiple: true` (default: 10), the latter determines the file size limit (in MB) allowed for each file (default: 5MB)

* Added support for `accept: [‘*’]` to allow any file type

* Minor tweaks in the comments and messages

* Delete any orphan file when discarding the uploaded files session

* Minor optimization

* Fixed issue with `_json` elements where nested fields merging would get stored in an unexpected way

* Potential fix for wrong order of value in Datetime

* Fixed nested fields for files

* Fixed tmp streams

* Minor cleanup

* Update JSON data when removing a file. Implemented task to remove files that haven’t been saved yet, from the flash object session

* Ensure temporary files are deleted when removing un-saved files from the flash object session

* Fixed wrong reference of HTML file field when clicking on the drop zone area to pick a file

* Added JSON template for pages

* fix a CSS issue in page order

* More CSS fixes

* Trigger file field mutation when adding or removing a file

* Recompiled JS

* Removed twig templates that are no longer needed

* Fixed issue with nested header fields in a page, not properly merging data

* [internal] Fixed issue with collections not capable of handling both param and dot notations at the same time

* Reorganized FileField structure to be more consistent with the other fields

* Added support for dynamically created file fields (ie, autoinitialization on new lists items)

* Added translationable strings for file uploads errors

* Added translasions for all Dropzone available strings

* Changed default values
2016-08-29 11:12:09 -07:00
Andy Miller
47a0d18350 removed dump() statements 2016-05-10 17:00:14 -06:00
Andy Miller
710d2c6fd5 Try to guess the format! 2016-05-10 13:32:17 -06:00
Djamil Legato
d09db10285 Removed 2 digit year guess 2016-05-10 11:32:58 -07:00
Djamil Legato
3c1566d90b Better automatic guess for page date formats (#565) 2016-05-10 11:20:37 -07:00
Andy Miller
6dc90180ef encoding fixes 2016-04-15 16:17:27 -06:00
Flavio Copes
6fbbaff110 Moved datetime from the Form plugin to Admin 2016-03-22 19:42:49 +01:00
Flavio Copes
a63262763d Drop erroneously re-added datetime, now provided by the form plugin 2015-09-07 15:48:52 +02:00
Andy Miller
34a2f13d61 remove dump() 2015-09-02 18:18:10 -06:00
Andy Miller
d597447293 backed out the date format stuff in picker 2015-09-02 18:02:19 -06:00
Andy Miller
3c0c114887 conditional check on date 2015-09-02 17:51:37 -06:00
Andy Miller
b59b410486 datefield update 2015-09-02 17:44:29 -06:00
Djamil Legato
c934baa3b5 Fixed datetimepicker 2015-07-31 14:32:49 -07:00
Flavio Copes
fc5eb88787 Load datetime js only once 2015-07-31 19:28:45 +02:00
Andy Miller
04ab734f83 reworked diatomite 2015-07-29 12:05:52 -06:00
Gert
9d05f0dfb3 add support for datetime field 2015-05-22 17:12:18 +02:00