Commit Graph

2280 Commits

Author SHA1 Message Date
Samuel Georges e5358a81ce Custom icon support for treeview 2017-06-08 14:25:45 +10:00
Priit Perna eff3f2e905 Backend translation for estonian (#2911)
* Added language files for Estonian (et). Thanks to @priitperna!
2017-06-07 11:07:34 -06:00
Samuel Georges edcd899a79 Base getLoadValue to look at form field first
Fixes https://github.com/octobercms/october/pull/2663
Adding to build 420+ because this might cause some issues, although it shouldn't. Hoping we don't ever have to roll this back because it fixes another inconsistency when using the model `filterFields` method... some will change values via $field->value (field accessor) and others will change via $this->value ($model accessor). This now puts the field accessor at a consistent priority (first) while retaining the fallback to model.
2017-06-06 20:44:15 +10:00
Samuel Georges 305f962e1f Merge pull request #2904 from arzola/patch-event-doc
Update Report widget event-extensibility docblock
2017-06-06 20:22:54 +10:00
Samuel Georges 41cc1744f1 Tab panes now support CSS spec
See form docs > paneCssClass
2017-06-05 17:37:13 +10:00
Samuel Georges bda98e7353 Selectable box and fancy breadcrumb 2017-06-05 17:35:15 +10:00
Oscar Arzola 8a40e1cc89 Update Report widget docblock 2017-06-02 23:53:27 -05:00
Samuel Georges f672a3cf19 String to ::class 2017-06-03 10:31:24 +10:00
Samuel Georges ef94decb1a Merge pull request #2898 from arzola/master
Added Extensibility to ReportWidgets
2017-06-03 00:56:35 +10:00
Oscar Arzola a7d20211ae Fixed Formatting and added docblock 2017-06-02 09:51:13 -05:00
Samuel Georges e2781c5fdf URL -> Url 2017-06-02 23:34:50 +10:00
Samuel Georges bfcab59021 Fixes hover event on mobile 2017-06-02 23:33:55 +10:00
Samuel Georges ff04fbff35 Tighten up the look of extra small
Scales down the sidenav by converting px to em then dialing down the container font size
Made the list search less dominating over the primary buttons
2017-06-02 23:05:29 +10:00
Samuel Georges 3be6dafa6b Fixes int folder name showing as 0
Fixes #2902
Code dusting
2017-06-02 20:16:26 +10:00
Samuel Georges eadd889813 Improve mobile and settings page
Use native scroll on mobile devices (much better UX)
Stack settings menu items 2 column medium, 3 column large
The settings search is now forcibly focused
2017-06-02 17:39:26 +10:00
Oscar Arzola 0bd12cf0e6 Added Extensibility to ReportWidgets 2017-05-30 16:49:35 -05:00
Samuel Georges db82bfa815 Tighten up font weight and login screen
Recompile assets
2017-05-30 20:10:48 +10:00
Samuel Georges f0df1f458b Merge branch 'develop' into l55upgrade
Conflicts:
	modules/system/assets/ui/storm.css
2017-05-27 22:24:57 +10:00
Samuel Georges 2cbe849ee7 Style fixes 2017-05-22 20:01:09 +10:00
Samuel Georges 605c8221a9 getPlainForeignKey -> getForeignKeyName 2017-05-20 20:03:48 +10:00
Samuel Georges 00ddd8e2b4 string -> ::class + docs 2017-05-20 20:01:19 +10:00
Samuel Georges cefa19af7d Backend UI improvements 2017-05-20 20:00:24 +10:00
Samuel Georges aa393dc54b Backend style improvements
This should make Windows PCs look a little nicer, albeit inconsistent with others (Sergoe UI is unique). If it's good enough for GitHub, then it's good enough for October.
All text shadows have been stripped, along with some box shading. They were barely noticeable and should speed up the UI.
2017-05-20 17:37:58 +10:00
Samuel Georges 04f89dc5bb getToken -> token 2017-05-20 13:19:51 +10:00
Samuel Georges bab7976331 Merge branch 'develop' into l55upgrade 2017-05-20 09:08:09 +10:00
Samuel Georges 081a32c928 Change versions for testing 2017-05-19 14:13:23 +10:00
Priit Perna 2b3b6ece46 Made checkbox quick selection configurable
With this change the following configuration will show the quick selection links:
"quickselect" => true
2017-05-18 15:16:42 +03:00
Priit Perna 8ee7d3f5ae Added scope support to the Relation formwidget 2017-05-17 13:00:40 +03:00
Samuel Georges 7e76f39e6c Add app.name config
Various other refittings
2017-05-16 18:50:41 +10:00
Samuel Georges 57aa723c23 filterExtendScopes -> listFilterExtendScopes
extendFilterScopes -> extendListFilterScopes
Filter still belongs to the "List", this would help resolve conflicts if there were ever a FilterController that would carry rightful claim to "filterExtendScopes"
2017-05-14 14:47:17 +10:00
CSNWEB fe3e44efeb Add method to easily extend filter scopes (#2866)
* Add method to easily extend filter scopes
* Add non static method for filter scope extension
2017-05-13 17:31:09 -06:00
Samuel Georges 453e48924e Apply web middleware group for the good cookies 2017-05-13 22:18:13 +10:00
Samuel Georges 59d1e7736c Bump min version to PHP 7
Restore tinker command
2017-05-13 09:04:22 +10:00
Luke Towers 95cd3f7077 Translate group name and description
Refs: https://github.com/octobercms/october/issues/2772#issuecomment-301125572
2017-05-12 11:22:13 -06:00
Samuel Georges 6a6378a24d Strip indexes from repeater data sets 2017-04-26 08:10:45 +10:00
Quezler cc17b679f1 Code dusting (#2826)
Code cleaning according to PSR-2 w/ exemptions (mostly dust).
2017-04-24 21:38:19 +10:00
Samuel Georges cb56c61e36 Retain true backward compatibility with early repeater 2017-04-24 19:06:59 +10:00
Samuel Georges d7ef8cdcf8 Minor logic change 2017-04-24 13:24:57 +10:00
Samuel Georges 6825ce12c8 Allow external group field definition - Refs #2772 2017-04-24 13:24:57 +10:00
Samuel Georges c52f91a6d2 Collapsed items should default to or include the group name - Refs #2772 2017-04-24 13:24:56 +10:00
Samuel Georges dac744dbc6 Scrollpad not rendering on open - Refs #2772 2017-04-24 13:24:56 +10:00
Samuel Georges acfe619cb9 Add button lacks loading state - Refs #2772 2017-04-24 13:24:55 +10:00
Luke Towers 0fa0301557 Merge pull request #2803 from CSNWEB/patch-5
Add readonly / disabled support for checkboxlist (relation form widget)
2017-04-22 10:23:52 -06:00
Samuel Georges ac7da4634a Implement working prototype of a grouped repeater
Refs #2772
2017-04-22 22:01:17 +10:00
Samuel Georges 83e80745b3 Fixes issue with index incrementation 2017-04-22 21:40:35 +10:00
Samuel Georges 46fcdbc636 Progress on repeater field groups
Refs #2772
2017-04-22 21:04:37 +10:00
Samuel Georges 4644218312 Move autocomplete to Storm UI
Rename select AJAX from "source" to "handler" (Refs #2836)
Document select handler usage
Recompile assets
2017-04-22 11:44:27 +10:00
Luke Towers 248af140bb Merge pull request #2835 from interworks-morr/fix_backend_sidenav_layout
Fixing case-sensitive issue with Backend Sidenav Layout - Issue #2834
2017-04-21 13:42:00 -06:00
interworks-morr 46d8ac8972 Fixing case-sensitive issue with Html 2017-04-20 11:47:11 -05:00
Szabó Gergő 130d502f41 Update the Hungarian translation 2017-04-19 10:35:58 +02:00
Luke Towers a64260c2ff Merge pull request #2808 from jlongo/master
Added support/files for pt_pt language
2017-04-11 01:58:52 -06:00
Samuel Georges 015b34fe88 Block media manager entirely if user lacks access 2017-04-11 08:40:39 +10:00
José Longo 0de1306427 add locale pt-pt in $localeOptions 2017-04-10 15:08:50 +01:00
José Longo 4f3287822b Add dir/file for pt_pt language 2017-04-10 15:04:58 +01:00
CSNWEB 3cfb8c7587 DRY up the code 2017-04-09 04:01:34 +02:00
Samuel Georges 24c8b4368a Various security and UI fixes
The Media Manager now uses a white list approach to blocking files, we have been advised that the blacklist approach is too fragile and we agree.
Asset List and Media Manager now use $.oc.alert when displaying errors
2017-04-09 08:00:56 +10:00
Christophe Vuagniaux 9e74fe6a53 Repeaters Firefox compatibility fixes (#2738)
* Repeaters fix Firefox collapse/expand buttons not working

* Repeaters fix Firefox open new tab when CTRL + click on Expand/Collapse buttons
2017-04-08 20:21:34 +10:00
CSNWEB ee2dd7ac1c Add readOnly / disabled support for checkboxlist
Relations rendered with the relation formwidget using checkboxlist are now correctly rendered like in the previewMode.
2017-04-07 21:04:20 +02:00
Samuel Georges 982bc43348 Fixes recordfinder (again)
Lots of complicated stuff going on here, all elements are getting wiped out when a record is updated and the control is getting disposed at the same time. We've created a dedicated variable to store the datalocker name as a string, this represents a small memory leak but a necessary one it seems.
Fixes #2798
2017-04-07 07:48:04 +10:00
Samuel Georges 5daf4365ae Move the change event to the input element
This should bubble to the parent control element and persist any logic that depends on the old event
Fixes #2684
2017-04-06 08:08:50 +10:00
Samuel Georges 328a74c1ff Fixes JS error in recordfinder
It looks like the inheritance of the foundation library has caused a logic error
Refs #2756
Recompile assets
2017-04-06 07:51:04 +10:00
Alwin Drenth dbd9af3ba0 Update Dutch language for build v409 2017-04-01 15:43:14 +02:00
Luke Towers d1c9b1a6f1 Support updating existing sidemenus
Fixes #2757, #2777
2017-03-24 09:05:35 -06:00
Samuel Georges 330a41f39c Improve form controller docs 2017-03-23 08:48:26 +11:00
Samuel Georges f8e7fa03e0 Refactor remove option implementation
Refs #2756

Add disabled support
Fixes #1199
2017-03-22 09:26:05 +11:00
Samuel Georges e8f6cb4dc5 Merge pull request #2756 from ChVuagniaux/RecordFinder-Remove-button
RecordFinder - add a remove button
2017-03-22 09:06:27 +11:00
Samuel Georges a40357cec9 Added a check for missing dependencies in two places
- System dashboard now lists missing dependencies
- Installing a plugin with missing dependencies will also attempt to install those dependencies at the same time
Fixes #36
2017-03-21 17:42:56 +11:00
juysoft be7490c878 Update _recordfinder_form hard coded button "Cancel" text 2017-03-18 23:54:24 +02:00
Samuel Georges 6697e00649 Backend::URL -> Backend::url 2017-03-16 17:16:03 +11:00
Samuel Georges 0a981a25f7 API docs progress
Controller -> SystemController for consistency
2017-03-16 17:08:20 +11:00
Samuel Georges 51ac144049 Moves CMS components to directory where they belong
Improve inline docs
2017-03-16 07:00:39 +11:00
Samuel Georges b841f9e066 {@inheritDoc} -> @inheritDoc 2017-03-16 06:26:14 +11:00
Christophe Vuagniaux 91d39d275c RecordFinder - add a remove button 2017-03-15 12:33:02 +01:00
Samuel Georges 18c6bb63a2 API docs progress 2017-03-15 18:03:26 +11:00
Samuel Georges ec18697ae2 Cannot use Cms\Classes\Controller as Controller because the name is already in use
Remove test code
2017-03-14 19:42:37 +11:00
Samuel Georges e54cf7133b Improve some inline docs in preparation for API docs 2017-03-14 19:36:17 +11:00
Samuel Georges 5f91c45f79 Implement disabled support for some form widgets
Recompile assets
Fixes #2749 (Media Finder)
Fixes #2750 (File upload)
Fixes #2751 (Rich Editor)
Refs #2724
2017-03-14 13:52:47 +11:00
Samuel Georges e7fa4b832a Rollback 84b533454e
See #2749, #2750 & #2751 on notes for how to better handle this. Put simply, the control of disabled VS previewMode should be given to the individual form widget, as opposed to the spawning parent.
2017-03-14 06:49:33 +11:00
Luke Towers 3876dc61d1 Rollback c836d92f9f
Rollback due to discussion on c836d92f9f. Will be looked into again later when addressing #2311.
2017-03-13 09:36:49 -06:00
Luke Towers 84b533454e Allow FormWidgets to be disabled like regular FormFields
Adds support for the `disabled` property to FormWidgets so that they will match the behaviour present in regular FormFields. Fixes #2724 and a personal annoyance of mine :)
2017-03-11 02:12:47 -06:00
Samuel Georges d642605f87 Remove old fix and spruce up code 2017-03-04 15:23:12 +11:00
Samuel Georges 380a71d7b9 IE11 will not honor height 100% when overflow is used on the Y axis
Fixes #2672
2017-03-04 14:55:19 +11:00
Samuel Georges bc161b94f7 Menu items are supposed to be counted in 100s
Plugin authors may need to adjust their menu items from this.
2017-03-03 08:07:13 +11:00
Szabó Gergő 8cfc10280a Update Hungarian translation 2017-03-02 13:52:01 +01:00
Samuel Georges e9cc782120 Peer review #2723 2017-03-01 14:31:37 +11:00
Luke Towers 3aa251db4e Client side enforcement of repeater maxitems
Adds client side enforcement of the max items property of the repeater form widget
2017-02-28 20:43:08 -06:00
Luke Towers 5c56c9579d Add support for maxItems to the Repeater FormWidget
Refs: #2710
2017-02-28 20:36:32 -06:00
Samuel Georges 023f2ac0f5 Push add/remove events to JS
Refs #2710 /cc @LukeTowers
2017-03-01 12:40:15 +11:00
Vladimir Kattsov c73e0ea811 Unhardcoded lang string in active theme widget, add russian translation 2017-02-25 12:05:08 +03:00
Luke Towers c836d92f9f Make number field an HTML5 number field
Makes the `number` form field actually be an HTML5 `type="number"` field.
2017-02-15 08:44:12 -06:00
Samuel Georges d9a2b88852 Pass records by reference to overcome halting event issue
Refs https://github.com/octobercms/october/pull/1853
2017-02-15 05:58:44 +11:00
Luke Towers 9f3c2b8bf6 Switched backend.list.extendRecords event triggering
Made the event triggering for the new backend.list.extendRecords event triggering more consistent with the rest of the class.
2017-02-14 02:20:23 -06:00
Luke Towers fd3fbf5e52 Merge pull request #1853 from leocavalcante/feature-list-extend-records
Make available to extends Lists records
2017-02-14 02:17:16 -06:00
Samuel Georges 8ffc744dc0 Merge branch 'develop' of github.com:octobercms/october into develop 2017-02-08 19:11:57 +11:00
Samuel Georges 13471b4178 Bump froala_editor to v2.4.2 2017-02-08 19:10:24 +11:00
octolit 43391688be Lithuanian translation for system/lang (#2648)
* Lithuanian translation for system/lang

* Lithuanian backend translation for cms/lang

* Lithuanian backend translation

Final and complete translation for backend/lang for Lithuanian. Also
added locale option in modules/backend/models/Preference.php for
back-end users to be able to select new locale -> Lietuvių (Lithuanian)

* reset_error translated
2017-02-07 14:56:06 -06:00
Samuel Georges 462c9cd4e8 Introduce theme logging + log settings
CmsObject changes can now be tracked (disabled by default)
Request logging is now disabled by default (security vector)
2017-02-08 05:44:04 +11:00
Samuel Georges 4ade0d4952 Minor styling tweak /cc @LukeTowers 2017-02-08 05:44:04 +11:00
Mattias Hamberg 1d31fe3baa Updated swedish language file 2017-02-03 06:40:28 +11:00
Samuel Georges 0d1fc43212 Add isSelected() helper to form field
Fixes an issue where dropdown NULL and 0 are treated as the same
Fixes #2612
2017-02-03 06:35:23 +11:00
Samuel Georges 3365aee129 Halcyon models don't support relations
Use a simple fill() approach instead of trying to set nested fields via their relations
Refs https://github.com/rainlab/translate-plugin/issues/216
2017-02-03 06:00:52 +11:00
Luke Towers 749835f73d Merge pull request #2642 from norotaro/patch-1
Update RelationController::onRelationManageUpdate
2017-02-01 15:07:46 -06:00
Samuel Georges 4d4bad4f75 Setup => Installation - Fixes #2569 2017-02-02 07:07:52 +11:00
Samuel Georges bf17fa44e6 Merge pull request #2610 from lukaszbanas-extremecoding/issue_2609
Support deferred binding for single view modes in RelationController
2017-02-02 06:46:09 +11:00
norotaro 2ac4dad4e9 Update RelationController::onRelationManageUpdate
As in `onRelationManageCreate()`, `onRelationManageDelete()`, `onRelationManageAdd()`, etc, it needs to return `$this->relationRefresh()` for `relationExtendRefreshResults()` to be executed
2017-02-01 12:14:41 -03:00
Luke Towers 13aef49ebb Respect custom sort_order column value
Adds support to the ReorderController behavior for custom `sort_order` column names.
2017-01-30 19:05:16 -06:00
Luke Towers 8caf3c5d02 Merge pull request #2638 from gabsource/translation-fr
Update the french translation
2017-01-30 09:38:28 -06:00
Jérémy Gaulin 09ffbac2ce New translation keys for french 2017-01-30 15:38:03 +04:00
Szabó Gergő ebd476e00f Update the Hungarian translate 2017-01-30 10:07:55 +01:00
Luke Towers 8545c9cdab Merge pull request #2365 from shellus/master
improve zh-cn lang coverage
2017-01-28 16:10:41 -06:00
Luke Towers a3b98944be Fix typo in RelationController (original #2460)
Fixes minor typo initially proposed in #2460, resubmitted here as original author vanished.
2017-01-28 15:47:25 -06:00
Samuel Georges e7609aa5e8 Improvements to repeater collapsing
Removed the expand all, collapse all buttons, they are a bit too bulky so have been replaced with the standard CTRL+click behavior.
Added foundation library to repeater.js
Add "titleFrom" option to specify which input to use for the collapsed title
Styling improvements

Refs #2632 + #2631
2017-01-28 11:59:28 +11:00
Christophe Vuagniaux 4dbe172a43 Repeaters add Expand Collapse buttons see #2631 2017-01-28 11:03:49 +11:00
Aleksey Bobkov 761b03ef16 Merge branch 'develop' of github.com:octobercms/october into develop 2017-01-25 20:16:23 -08:00
Aleksey Bobkov 0d30931045 Minor styling fixes in the table widget. Fixed a bug where empty values in the table widget could be rendered as 'undefined' in Safari. 2017-01-25 20:15:12 -08:00
Samuel Georges 5b5e23bfb8 Minor touch up from #2604 2017-01-26 11:30:26 +11:00
Samuel Georges 5e729f9978 Merge pull request #2604 from dubcanada/patch-1
If CMS module is loaded (and MediaManager exists) bind it
2017-01-26 11:27:56 +11:00
Samuel Georges 56ad25ec6f Remove code deprecations for 2017
Recompile assets
2017-01-26 11:26:53 +11:00
Samuel Georges 513a75c87e Remove data-title from table data
This was utilized by an older responsive table implementation, no longer in use
2017-01-26 11:00:23 +11:00
Samuel Georges 0251d1dd83 Merge pull request #2601 from GinoPane/develop
Belarusian Localization
2017-01-24 08:17:47 +11:00
lbanas b6683c2329 issue 2609 2017-01-13 09:59:11 +01:00
Samuel Georges 6b56476f66 Merge pull request #2469 from joseph-d/patch-1
Update Filter.php
2017-01-13 06:29:54 +11:00
dubcanada 0a4390b4d9 If CMS module is loaded (and MediaManager exists) bind it
I am using OctoberCMS without the CMS module (removed from modules directory and turned off in cms.php) and I am getting an error in the backend regarding missing `MediaManager` class. I wrapped this in a class_exists to check that MediaManager exists before binding it.

Let me know your thoughts.
2017-01-10 13:45:59 -04:00
Sergey Karavay 22d09e50db Add Belarusian translated language files into backend, cms and system modules.
All lines translated.
2017-01-10 08:06:28 +00:00
Sergey Karavay 024ec54051 Merge remote-tracking branch 'upstream/develop' into develop 2017-01-09 20:07:41 +00:00
Samuel Georges 54160d069d Merge pull request #2597 from LukeTowers/patch-10
[bugFix] RelationController manage[title] not respected in Create contexts
2017-01-10 06:08:51 +11:00
Samuel Georges f9c659343b Further styling improvements
Refs #2575
2017-01-09 08:37:36 +11:00
Samuel Georges 62d7ff9532 Merge pull request #2575 from triasrahman/develop
Enhance usability of list pagination.
2017-01-09 07:51:01 +11:00
Samuel Georges 5caf40c4ad Merge pull request #2593 from gpasztor87/patch-1
Fix backendPreferences live update script.
2017-01-09 06:28:30 +11:00
Samuel Georges 5f4945af7c Merge pull request #2586 from octoberfa/master
Update Persian Language
2017-01-08 11:37:57 +11:00
Samuel Georges f9a8d02172 Merge pull request #2577 from gpasztor87/develop
Style fixes on report container and plugin details page.
2017-01-08 11:20:38 +11:00
Samuel Georges 7e7e9720d2 Merge pull request #2582 from tschallacka/ukraine-fix
Unescaped quote fix
2017-01-08 10:31:57 +11:00
Marvin 6bdd1c2d9c Improve French translation (#2581)
* Fix french translation for login

* Translated new keys for french locales

* Changed french form translation to something more gender neutral
2017-01-08 10:30:43 +11:00
Samuel Georges c9bb4d396e Merge pull request #2573 from sw-double/feature/datepicker-year-range
Support yearRange property for datepicker form field
2017-01-07 12:10:49 +11:00
Luke Towers 83474c96eb Make the changes to the _manage_form.htm partial to support custom titles on manage forms in Create contexts 2017-01-06 18:01:33 -06:00
Luke Towers 102831ecc2 Improve RelationController evalManageTitle()
Improves the evalManageTitle() method of the RelationController by making it possible to detect being the create manage form, which will enable us to utilize the results of the evalManageTitle in the manage_form partial.
2017-01-06 17:45:58 -06:00
Pásztor Gábor bb5b20ed94 Fix backendPreferences live update script. 2017-01-05 18:42:03 +01:00
Sajjad 3d3a788076 Update Persian Language 2016-12-30 18:14:53 +03:30
Tschallacka 1c1082fdcd Also missing closing bracket fix 2016-12-27 23:09:08 +01:00
Tschallacka c97b68e531 Unescaped quote fix 2016-12-27 23:00:31 +01:00
Sergey Karavay fe4d593519 Add Belarusian language into preferences, fix translations of languages for all locales.
Notes:
Translations for all languages in preferences' drop-down should be written in native language not depending from current locale. As for example, you can take Youtube language settings at the bottom of the screen. And user can choose a language he can actually read.
As all localisation strings go to "en" as a fallback, we can just remove locale translations from all localization files except "en"".
2016-12-23 10:12:56 +00:00
Pásztor Gábor 039a49979a Style improvements on reportcontainer's manage widget dropdown. 2016-12-21 20:15:07 +01:00
Trias Nur Rahman 897c875fa9 Enhance usability of list pagination. 2016-12-21 21:50:44 +07:00
Konstantin L 15cea23308 Support yearRange property for datepicker field. 2016-12-20 20:21:02 +01:00
Samuel Georges 38b6c51381 Merge pull request #2566 from sw-double/feature/fix-ru-lang
Fix ru lang for backend users
2016-12-17 10:16:38 +11:00
Samuel Georges 6af6ebe733 Added config backendForceSecure used to force HTTPS
Refs https://security.googleblog.com/2016/09/moving-towards-more-secure-web.html
2016-12-17 10:16:02 +11:00
Konstantin L d077801ab8 Fix ru lang for backend users. 2016-12-16 18:45:47 +01:00
Samuel Georges c644f8b66d Fixes issue where nested columns forcibly hide
Eg: "myrelation[attribute]" as a column name would cause the list setup to hide these fields with no ability to bring them back
2016-12-14 19:14:41 +11:00
Meysam 9ab9c87e6a Fix typo 2016-12-10 06:33:21 +03:30
Samuel Georges b85c4f9b7b Improve list tree styling and minor fix
Fixes bug with non standard primary key on model when using tree mode
Fixes #2532
Recompile assets
2016-12-10 13:19:32 +11:00