410 Commits

Author SHA1 Message Date
Samuel Georges
39e91575af Write docs for datepicker plugin 2016-04-24 09:43:26 +10:00
Samuel Georges
e772e87de5 Complete rebuild of datepicker form widget
The datepicker now handles timezones and locale mainly on the client side. When a user selects a date/time, the value is chosen in their timezone preference, the script will then convert the value to the application timezone (UTC) for storage in the database. The reverse is true: when the value is loaded, it is converted from UTC to the user preference. The entire process is seamless. Dates are also formatted in the locale preference.

Example scenario: This fixes the issue when selecting the blog post published date. In some cases, the date could be set to 24th April but the server time is 23rd April, so the post appears unpublished against the user's intent.

There is still some issues around DATE and TIME column types stored in the database. It is best to always use TIMESTAMP/DATETIME to retain the timezone conversions. DATE will reset the time to 00:00 UTC which can cause issues and TIME does not play nicely with Carbon at all. We should still try to add support for these columns in the datepicker, even though they are not recommended.
2016-04-24 09:33:39 +10:00
Samuel Georges
13fb0e6388 Update moment, add moment.timezone library + locales 2016-04-23 13:11:26 +10:00
Samuel Georges
6c081d9265 Combine editor preferences and backend preferences
Add backend timezone setting used for converting display dates
2016-04-23 05:31:05 +10:00
Samuel Georges
abaa65cc0e Cut back the design
Switch to hard lines
2016-04-22 08:21:08 +10:00
Samuel Georges
76faef7c17 Sync styles on media picker and file upload 2016-04-21 06:11:31 +10:00
Alexander Guth
13276a500e Add conditions config to RecordFinder
Fixes #1524
2016-04-21 05:36:53 +10:00
Samuel Georges
f2d8fcaf14 Record finder now supports scopes and search options 2016-04-21 05:36:29 +10:00
Samuel Georges
51bef96db9 More styling changes and other minor improvements 2016-04-21 04:52:21 +10:00
Lucas Martín
e2566c36a0 update codeeditor with new features (#1863)
update ace v1.2.0 to v1.2.3
add codecompletion and live codecompletion(with documentation inline)
add snippets to lenguajes(php,javascript,html,css)
add translation to spanish
add search and replace buttons
2016-04-19 16:36:45 +10:00
Samuel Georges
be7b3b3009 Remove the cray defaults on datepicker
Recompile assets
Fixes #1920
2016-04-19 05:59:32 +10:00
jfoliveira
6a897b1072 Datepicker: allow specify display format (#1919)
* Apply datepicker `format` property reading from config.

* Using the format property on partial.
2016-04-19 05:11:40 +10:00
Samuel Georges
4043921834 Adds extra flavor to buttons
Reduce font sizes a bit
Fixes rogue hand from appearing when clicking drag scroll enabled elements
2016-04-07 20:17:48 +10:00
Samuel Georges
ed6e01c2c5 File model is now abstract 2016-04-05 19:47:06 +10:00
Samuel Georges
838f836051 Revert the nav to the classic style
Various sizing fixes
Set the standard padding to 20px
Mute system links unless hover or active
Fixes an issue where the scroll indicator appears always on fancy layout, these containers cannot use padding!
Refs #1895
2016-04-04 18:37:55 +10:00
Samuel Georges
1785c6c0d8 pikaday -> datepicker 2016-03-26 12:53:45 +11:00
Samuel Georges
8e14b9b649 Recompile assets 2016-03-26 12:40:55 +11:00
Jérémy GAULIN
f836b43bb3 Pikaday translation 2016-03-26 12:39:57 +11:00
Samuel Georges
5789d0242f Fixes single image uploader breaking with comment
Comment appears to the right of the uploader, should be under it
2016-03-25 18:21:21 +11:00
Samuel Georges
23f4d40ef2 Merge common functionality in to FormModelWidget 2016-03-25 18:01:58 +11:00
Samuel Georges
484579ac40 Sreamline events in richeditor
Add nwe event for visual mode (when visual mode is activated from code mode)
Always use spaces in redactor
2016-03-23 20:10:55 +11:00
Samuel Georges
e9c7e6b9d1 No it is not safe to share the alias and field name...
The field name could be nested, for example: user[data]
Using this as an alias is user[data]::onDoSomething
Resulting in an invalid AJAX handler name
2016-03-17 19:50:34 +11:00
alekseybobkov
aaff88b8c2 Reduced base border radius 2016-03-02 21:40:33 -08:00
Samuel Georges
1241f584d0 Merge remote-tracking branch 'remotes/origin/stable' into ui 2016-03-01 07:02:07 +11:00
Samuel Georges
fd16f38b11 Implement file definitions (extensions + ignore files)
Block "unsafe" extensions from being uploaded to the Media manager
Fixes #1801
2016-02-29 18:12:26 +11:00
alekseybobkov
00ced6c79f UI update 2016-02-28 19:52:21 -08:00
Samuel Georges
d76863a3ec Merge branch 'develop' into stable
Conflicts:
	composer.json
2016-02-27 14:55:52 +11:00
alekseybobkov
b1770626d7 UI updates 2016-02-23 21:44:05 -08:00
alekseybobkov
6ed4bd5ef6 Updates in the UI 2016-02-22 21:52:23 -08:00
alekseybobkov
a943708b99 UI updates 2016-02-19 22:12:41 -08:00
Samuel Georges
35c9f7e590 Merge pull request #1768 from jfoliveira/recordfinder_fix_hardcoded_id
Fix hardcoded column name `id` on recordfinder form widget
2016-02-13 16:42:56 +11:00
Samuel Georges
6347f2bb03 Complete multilingual richeditor support
Refs #1652
2016-02-13 12:59:49 +11:00
Szabó Gergő
7fb1ed9bdb Add multilingual support to Rich editor 2016-02-13 12:08:27 +11:00
Jeferson Oliveira
6ae4742ff4 Fix hardcoded column name id by reading the keyFrom option defined in the .yaml file. 2016-02-10 08:45:21 -02:00
Samuel Georges
6d8ec9b4dc Fixes data source polluting base proto
Recompile assets
2016-02-10 20:22:50 +11:00
flynsarmy
c62eb8fb86 Remove brackets from table widget alias 2016-02-04 21:25:33 +10:00
Samuel Georges
2855a4e344 Fixes issue in uploader when one of the dimensions is auto 2016-01-16 15:13:42 +11:00
Samuel Georges
d34350a7b1 Merge branch 'develop' into stable 2016-01-16 10:20:21 +11:00
Pásztor Gábor
4af9a374d6 Minor fix in timepicker 2016-01-14 13:17:45 +01:00
Pásztor Gábor
373c31a8e7 Remove deprecated DataGrid formwidget 2016-01-09 16:41:56 +01:00
alekseybobkov
7d9d2176ef Merge branch 'builder-ui' into develop
Conflicts:
	modules/system/assets/ui/js/input.monitor.js
	modules/system/assets/ui/js/inspector.editor.object.js
	modules/system/assets/ui/storm-min.js
2015-12-24 14:36:31 -08:00
alekseybobkov
e6d93cf3d4 Added YAML mode for the code editor 2015-12-10 21:41:27 -08:00
Samuel Georges
a186a60c43 Fixes the datepicker saving an empty value when disabled
Refs https://github.com/responsiv/campaign-plugin/issues/4
2015-12-09 08:19:53 +11:00
Samuel Georges
92e1d1bf13 Merge pull request #1606 from gergo85/master
Add alignment button to Rich editor
2015-12-05 10:22:31 +11:00
Samuel Georges
4db92fa8b5 Alt fix for #1585 2015-12-05 08:47:07 +11:00
Samuel Georges
f77f412f2f Merge pull request #1585 from brunoti/develop
Add filetypes of FileUpload formwidgets in uppercase too
2015-12-05 08:45:02 +11:00
Samuel Georges
32a079cfd1 Merge pull request #1621 from gergo85/patch-3
Improve the multilingual support
2015-11-28 16:17:41 +11:00
Samuel Georges
030e1977e8 Relation form field now supports model attributes in "nameFrom"
nameFromSelect -> select|sqlSelect
Refs https://github.com/octobercms/october/pull/1579
2015-11-28 15:31:11 +11:00
Samuel Georges
7885074cb0 Merge pull request #1579 from JoelESvensson/relation-select-from-name
Added support for 'nameFromSelect' in relation form fields
2015-11-28 14:43:04 +11:00
Samuel Georges
ca4a6e9679 Remove some unnecessary code from #1575 2015-11-28 11:24:34 +11:00