Commit Graph

319 Commits

Author SHA1 Message Date
alekseybobkov a6d8ab20f7 More styling for the drop-down processor. Not finished. TODO: investigate and fix the memory leaking in the drop-down cell processor (detached DOM tree) 2014-12-04 22:48:25 -08:00
Samuel Georges c485622f5b FormController is now responsible for purging data from the set (NO_SAVE_DATA) 2014-12-05 16:48:27 +11:00
Samuel Georges 2533b4ab4d ThemeData now applies default values, Theme object will proxy to ThemeData 2014-12-05 16:45:20 +11:00
alekseybobkov e032fd682d Table drop-down processor, in progress 2014-12-03 22:48:26 -08:00
Samuel Georges 89c878b439 Fixes checkboxlist ignoring empty data sets 2014-12-04 17:20:53 +11:00
nicolas-lescop 746a5749c7 Allow to prepare list model from controller
I need reach this method from the controller to create an export feature
2014-12-03 18:08:44 +01:00
alekseybobkov d2e4225bae Updates in the readme 2014-12-02 22:10:04 -08:00
alekseybobkov d03370c5bf Added the checkbox cell processor 2014-12-02 21:46:54 -08:00
alekseybobkov a73ef52d36 Styling and column alignemnt 2014-12-01 22:31:11 -08:00
alekseybobkov 1f420c88fd Minor refactoring in the navigation code. Implemented cell focusing on the record deletion with enabled pagination. The code profiled and checked for memory leaks. 2014-11-27 21:55:37 -08:00
Samuel Georges 78c5a6af5d Fixes #761 - Widgets can support proxy fields too 2014-11-27 19:15:15 +11:00
alekseybobkov 839c686bb3 Implementing record deletion feature, in progress 2014-11-26 23:14:46 -08:00
alekseybobkov 8c5cd78143 Implemented adding row above and below the current row features 2014-11-25 21:47:37 -08:00
alekseybobkov 719d3831ec Refactored navigation, implemented record adding and updating for the client-memory dataset 2014-11-24 22:36:55 -08:00
alekseybobkov 3fb9184b1f Fixed typos 2014-11-20 22:16:00 -08:00
alekseybobkov d8ad718f1d Added pagination, improved the navigation code 2014-11-20 22:12:36 -08:00
alekseybobkov 2bd40037d1 The Table navigation functionality was factored out to the Navigation class. Minor table performance fixes. 2014-11-17 22:27:54 -08:00
alekseybobkov 917958bc4c Added keyboard navigation 2014-11-16 21:48:40 -08:00
alekseybobkov 4e921aab7a Minor performance changes in the core JS and CSS. Table widget, in progress. 2014-11-16 18:00:15 -08:00
alekseybobkov 228253fdf6 Merge branch 'develop' into table-widget 2014-11-11 19:50:16 -08:00
alekseybobkov 11be3fede3 Defining the table widget classes 2014-11-11 19:45:50 -08:00
Sam Georges f458fb7704 Overhaul Form layouts, adds FormTabs.php class for managing tab properties 2014-11-12 07:33:58 +11:00
Sam Georges c32ba4cbad Minor code clean 2014-11-04 17:41:48 +11:00
Sam Georges 2011a21e6f Minor 2014-11-01 12:03:38 +11:00
Sam Georges c83797231d Subsequent expressions are on a new line (see developer guide > PSR exceptions) 2014-11-01 12:00:45 +11:00
Sam Georges 167eb74474 Fixes logic bug 2014-10-21 20:22:04 +11:00
Sam Georges 23f6d75416 Peer review of #679 2014-10-19 10:58:18 +11:00
Stefan Talen 4fa6db3bd5 Fixing minor issue 2014-10-11 12:15:02 +02:00
Stefan Talen 61cf1ad710 Merge branch 'develop' of https://github.com/octobercms/october into feature/PSR-2
Conflicts:
	modules/backend/behaviors/FormController.php
	modules/backend/classes/AuthManager.php
	modules/backend/lang/fa/lang.php
	modules/backend/widgets/Form.php
	modules/cms/classes/CmsCompoundObject.php
	modules/cms/classes/ComponentHelpers.php
	modules/cms/formwidgets/Components.php
2014-10-11 11:58:20 +02:00
Sam Georges 153fcfbb13 Refs #598 - Ignore phantom columns stored in preferences 2014-10-11 17:58:48 +11:00
Sam Georges f03db8be5d Fixes #669 - Labels in filter do not translate 2014-10-11 16:38:23 +11:00
Sam Georges d92268b516 Oops, broke the switch 2014-10-11 14:32:30 +11:00
Sam Georges 71f9df8e13 Use HTML to pass unchecked checkboxes/switches. Refs #648 2014-10-11 14:31:09 +11:00
Samuel Georges 182bb01167 Merge pull request #648 from Flynsarmy/checkboxZeroVal
Send a 0 value when a checkbox is unchecked
2014-10-11 14:21:43 +11:00
Sam Georges 1dcaa0d1d6 Fixes #677 - use FQN for "instanceof Model" expressions 2014-10-11 12:13:25 +11:00
Sam Georges 4504d5bf4c Improve translation handling 2014-10-11 10:37:48 +11:00
Stefan Talen b64a744498 Updating modules/backend/widgets 2014-10-11 00:39:34 +02:00
Sam Georges eff70e2342 Minor 2014-10-08 18:55:17 +11:00
Sam Georges 8d5253930d Form fields can now be marked as hidden 2014-10-08 18:55:09 +11:00
alekseybobkov dcf7bb7d4f Merge branch 'develop' into misc-tmp 2014-09-27 23:29:41 -07:00
flynsarmy 7d8425538b Send a 0 value when a checkbox is unchecked 2014-09-26 09:20:01 +10:00
Sam Georges 746f425d88 Added new containerAttributes property to form fields 2014-09-25 18:05:35 +10:00
alekseybobkov a9e2e2d80f Improvements in the CMS objects and back-end UI. 2014-09-18 20:34:24 -07:00
alekseybobkov a77b290a8e Improvements in the back-end widgets 2014-09-18 20:34:24 -07:00
Sam Georges cc8d833ea8 Minor 2014-09-18 08:22:22 +10:00
Sam Georges bbfc665e88 Minor 2014-09-17 17:18:44 +10:00
Sam Georges a5f17edc45 Handle fields that differ by fieldName and valueFrom 2014-09-17 17:10:13 +10:00
Sam Georges 4f00fbdbc6 Minor. keyField -> keyFrom 2014-09-17 16:47:55 +10:00
Sam Georges 4763c9598a Add valueFrom to form field, rename field->columnName to field->fieldName 2014-09-17 14:43:24 +10:00
Sam Georges 028339ec02 nameFrom -> valueFrom (lists) 2014-09-17 14:13:07 +10:00
Sam Georges 3b2b858b65 nameColumn -> nameFrom 2014-09-17 13:52:05 +10:00
Sam Georges 109df00340 nameColumn -> nameFrom
descriptionColumn -> descriptionFrom
2014-09-17 13:39:37 +10:00
Samuel Georges d8bd36e2f5 Merge pull request #624 from Flynsarmy/balloonOptions
Add dynamic option support to balloon-selector fields
2014-09-13 21:44:54 +10:00
flynsarmy 635cb4f4d3 Add dynamic option support to balloon-selector fields 2014-09-13 21:43:43 +10:00
flynsarmy 60958efeed Set number fields to null if no value entered 2014-09-13 18:29:10 +10:00
Samuel Georges cb3083c17c Merge pull request #620 from Flynsarmy/numberFieldValue
Correctly sanitize number fields
2014-09-13 17:21:45 +10:00
flynsarmy 0fd0b29772 Correctly sanitize number fields 2014-09-13 17:17:15 +10:00
Sam Georges d4e28a62cc Added new `hint` form field type (see Backend > Forms docs). 2014-09-13 15:14:03 +10:00
Sam Georges 8291dbf4d3 Widgets can now state that they contribute no data when the form is saved
Applied to FileUpload.php
2014-09-06 22:22:59 +10:00
Sam Georges f3c6260c3e Slightly different fix to #580. Closes #580 2014-09-06 22:02:56 +10:00
Sam Georges df26e201df Alleviate the Search Widget of its need for a <form> tag 2014-09-06 14:03:37 +10:00
Sam Georges 2460e54028 Update changelog, move relation config under view/manage array respectively 2014-09-06 12:09:00 +10:00
Sam Georges 29b132a4a0 treeExpanded default is now false 2014-09-06 11:28:01 +10:00
alekseybobkov 324d0b11a5 Fixes dropdowns in the report widgets. Closes #588 2014-09-04 22:49:29 -07:00
Sam Georges f829fbca3c column-name -> field-name 2014-08-30 15:06:11 +10:00
Sam Georges 0243f47651 Fixes empty reference when using Form widget outside FormController 2014-08-30 09:49:48 +10:00
Samuel Georges f6189053b2 Merge pull request #592 from planetadeleste/patch1
Fixes #591 - Use translations in filters
2014-08-29 19:30:11 +10:00
Alvaro Cánepa 12c9efbde6 Use translations instead of direct English word. 2014-08-29 00:47:05 -03:00
alekseybobkov e72c30a3c8 Fixes drop-down fields in dashboard widgets. Closes #588 2014-08-29 14:19:20 +11:00
Sam Georges c1bb7cec32 Typo 2014-08-23 21:52:35 +10:00
Sam Georges 4e4df36dad Tidy up code 2014-08-23 21:46:03 +10:00
Samuel Georges 789d798eb1 Merge pull request #585 from Flynsarmy/listOrderColumn
Allow complex sortable columns
2014-08-23 21:16:44 +10:00
flynsarmy 9bf5821a3b Allow complex sortable columns 2014-08-23 17:35:18 +10:00
Sam Georges 9cebf5fbb8 Make extend truly come last 2014-08-23 13:07:39 +10:00
Sam Georges 2adeb7de2d Streamline partial usage in form fields and list columns 2014-08-23 11:11:49 +10:00
Denis Malinochkin 7104dec490 duplicate keys 2014-08-16 17:46:22 +04:00
Paul Wilde 2c46036d2c Added a couple of missing translation strings. Fixed a translation typo for the request log empty button - It should be request_log not event_log. 2014-08-16 05:18:37 +01:00
Sam Georges d52fe388db Fixes #530 - No more joinWith() and groupBy(), align with Laravel to the best of our ability.
Adds new list column type "nameFrom" (take name from X attribute) as an alternative to "select".
2014-08-16 14:08:51 +10:00
Sam Georges 3b41b3e81f Finish up basic Filter implementation 2014-08-13 21:23:19 +10:00
Sam Georges 21242b22b8 Fixes #543 - default fallback title isn't being translated inside the modal 2014-08-13 08:11:29 +10:00
Sam Georges 7d4e535165 Progress to filter widget, added animation less stylesheet 2014-08-13 07:52:46 +10:00
Paul Wilde a3c94d6355 Escape unescaped translations. Add trans() function during output for the Balloon and Widget Selector. 2014-08-12 21:46:19 +01:00
Paul Wilde 1d038d3173 More translation strings. 2014-08-12 01:15:38 +01:00
Sam Georges f1849c2ea0 Refs #5 - Progress to Filter widget 2014-08-11 21:46:29 +10:00
Sam Georges 13587f155c Move trans from logic-less array to inside business logic. Convert tabs to spaces. 2014-08-09 12:21:17 +10:00
Paul Wilde 906370c6bd Added translation strings for permission labels, mail template/layout column labels, editor fullscreen, list pagination and list setup modal. 2014-08-09 03:02:15 +01:00
Paul Wilde de98451148 Allow the dashboard widget inspector and report widget to be translated. 2014-08-09 01:29:19 +01:00
Samuel Georges 4bf9da8b56 Merge pull request #528 from whsol/add_translation_to_backend
Add Translation to backend controls
2014-08-07 20:41:18 +10:00
felix 7fd9e267a9 add Translation to backend
switch
relation create_button
relation add_button
2014-08-07 12:58:17 +04:00
Sam Georges e5830171f6 Fixes bug where dropdown are empty for non string values 2014-08-06 11:50:20 +10:00
Sam Georges 09106ff560 Improvements to logging screens and internals of List widget 2014-08-06 11:19:59 +10:00
Sam Georges 72dff8fdfa Minor 2014-08-05 20:03:03 +10:00
Sam Georges db18e3c828 Translate and improve dash widget popup 2014-08-05 16:54:39 +10:00
Sam Georges d050cff3c6 Improved Grid widget
Grid widget now supports custom toolbar
Remove row is triggered as "data changed"
2014-08-05 16:54:39 +10:00
Sam Georges f99bd0e427 Tidy up the Form widget object, allFields and formWidgets no longer public 2014-08-03 10:25:19 +10:00
alekseybobkov fecfeee2ac Fixed drop-down widget properties on the dashboard 2014-08-02 12:29:41 +11:00
Sam Georges 56d0c3351b private -> protected 2014-08-01 14:54:16 +10:00
Sam Georges 6388ecef52 private -> protected 2014-08-01 13:58:59 +10:00
Sam Georges 8b7bbd1062 Add 'partial' type to list columns. 2014-08-01 10:42:14 +10:00
Sam Georges b10b41f3bf Improvements to List widget, CSS classes can now be passed through 2014-07-31 19:37:11 +10:00
flynsarmy eea0a5e7c7 Support custom currency formats 2014-07-31 10:05:13 +10:00
flynsarmy 88fba61a78 Prioritize sourceHandler over dataLocker 2014-07-30 15:17:28 +10:00
Sam Georges 4fa00f1c7b Fixes an issue where unfilled relations are not populated in forms 2014-07-28 17:01:54 +10:00
Sam Georges 49d40e77ad Add deselect function to API 2014-07-25 15:57:00 +10:00
Samuel Georges 9f1b0415aa Merge pull request #443 from jbh-/hotfix/NumberFieldValidation
Add pattern to number field to only allow for numbers
2014-07-19 09:14:35 +10:00
Sam Georges 05842b6cad Fixes #444 2014-07-18 22:47:36 +10:00
Sam Georges baec411fd3 Add change monitoring to Grid widget 2014-07-18 19:16:23 +10:00
Josh Hall 67437098cb Add pattern to number field to only allow for numbers 2014-07-17 16:07:29 -05:00
Sam Georges a2e755e439 Simplify grid widget data sources 2014-07-17 21:03:47 +10:00
Sam Georges 2aa13c685f Wrapper for set data 2014-07-17 19:25:01 +10:00
Sam Georges 242a3a5cde Buttons inside a popup support new `data-popup-load-indicator` attribute.
Other minor improvements
2014-07-17 16:42:49 +10:00
Sam Georges f4c13092dd Minor 2014-07-16 19:36:16 +10:00
Sam Georges 1a11f371d8 Remove native scroll from handsontable 2014-07-16 17:30:03 +10:00
Sam Georges f6fffad37d Convert DataGrid form widget in to Grid widget (no longer exclusive to forms) 2014-07-16 17:28:37 +10:00
Sam Georges 54cf043dea Fixes #433 2014-07-15 17:16:06 +10:00
Sam Georges 62df6948b0 Required fields are now automatic from model validation
Make required asterisk more obvious
2014-07-12 16:56:26 +10:00
Josh Hall 6219c9ef1b Adds an asterisk to required backend form fields 2014-07-11 11:21:20 -05:00
Sam Georges f4a9286c45 Improve form widget 2014-07-09 19:36:49 +10:00
Sam Georges 3fc226b0ad Add search to record finder 2014-07-08 12:23:32 +10:00
Samuel Georges cfc14e4529 Merge pull request #391 from Flynsarmy/listImprovements
Add list-data-column-<columnName> class to head and body columns
2014-07-06 09:54:15 +10:00
Sam Georges d912b73aab Clean up event parameters to dev standards 2014-07-04 19:14:14 +10:00
Sam Georges 2f3d42a3f9 Improvements to mailer classes 2014-07-04 19:14:13 +10:00
flynsarmy 760fb5920e Add list-data-column-<columnName> class to head and body columns 2014-07-04 11:41:46 +10:00
Sam Georges b09b6d6863 Improved naming onReload -> onRefresh
Improved Record finder
2014-07-03 18:37:51 +10:00
Sam Georges ddb6337efe EditorSettings -> EditorPreferences (System has settings, User has preferences, App has configuration)
Create a My Settings page, now linked when clicking a User
Create backend preferences form for setting locale
Dropdown options now support an image or icon in their options
2014-07-01 17:17:53 +10:00
Sam Georges 5ce21e2fae List widget now supports injecting cssClasses 2014-06-30 16:58:10 +10:00
Sam Georges 2f63a6ca0b Improvements to naming standards 2014-06-30 13:30:57 +10:00
Sam Georges 893f7746f7 Improvements to naming standards 2014-06-30 13:27:28 +10:00
Sam Georges 766d012187 Refactor Form widget logic and partials, better naming and container usage. 2014-06-30 13:23:08 +10:00
Sam Georges e1778f62a4 Minor 2014-06-29 14:00:20 +10:00
Sam Georges 4a9fe06d50 Form fields can now define "depends" to refresh individual fields when they are changed
Form field options can now be deferred using a closure
2014-06-29 13:36:25 +10:00
Sam Georges a8371264dc Improve efficiency of List widget, empty relations now no longer try to load themselves and show empty JSON array "[]" 2014-06-29 09:12:11 +10:00
Sam Georges 9207424fbe For field partial, if no path specified, use the field name 2014-06-28 21:12:19 +10:00
alekseybobkov 4e2d6b5da8 Implemented the content tabs style, minor fixes in the back-end styling. 2014-06-27 00:17:22 +11:00
alekseybobkov ae3578e159 Minor improvements in the pagination and lists 2014-06-26 14:43:17 +11:00
Sam Georges 22484d12c2 Use text type instead of number type, spinners are bad 2014-06-20 21:04:53 +10:00
Sam Georges 433cf85bd4 All DateTime fields now validated in Lists 2014-06-20 19:30:37 +10:00
Sam Georges 60de683cb8 Add new form field type called "number" 2014-06-20 17:41:51 +10:00
Sam Georges 294961cf8a Refactor how the Form widget manages fields.
Widgets no longer need to pass configuration through "options".
2014-06-19 21:43:00 +10:00
Sam Georges df25c5d9f7 Fixes #308 2014-06-16 22:22:31 +10:00
Sam Georges 91a6918c02 Consider extensible classes (->methodExists()) when looking for dropdown options 2014-06-16 18:00:41 +10:00
Sam Georges dfee8dc5c0 When checkbox list has more than 10 items, display it in a scrollable area 2014-06-16 17:59:29 +10:00
Adis 949a5dc0d9 Add 'checked' property in _field_radio.htm
Add 'checked' property in _field_radio.htm
2014-06-15 23:50:17 +06:00
Sam Georges 8b9eb52afd Fixes #255 - Adds a code editor settings page
Email layouts now work
Form fields now support context in their names
2014-06-10 19:30:06 +10:00
Sam Georges 99408b6b2a Clean 2014-06-08 18:08:54 +10:00
Sam Georges c044e63a07 Bug 2014-06-08 18:07:56 +10:00
Sam Georges 8359baa719 Fixes issue where default value on form fields is not set 2014-06-08 10:58:39 +10:00
Sam Georges de47b6c6a4 Adds new event backend.list.extendColumns 2014-06-08 10:52:46 +10:00
Sam Georges f44b203e44 Removing plugins can now be purged from the db, orphaned plugins are visible, don't concat single list relations, add more events to Cms controller. 2014-06-05 18:52:53 +10:00
Sam Georges 88b138e0d7 Allows empty dropdown arrays 2014-06-01 10:35:14 +10:00
Sam Georges f525b7663b Fix logic flaws 2014-06-01 10:23:59 +10:00
Sam Georges c1e2e81d65 Fix drop down empty arrays being treated as nothing, add advanced callable array to get options from model 2014-06-01 10:15:33 +10:00
Sam Georges 6d190c3ef5 Fixes #238 - Missing else 2014-06-01 09:14:55 +10:00
Sam Georges 3f767774c4 Add a new global method getDropdownOptions() for specifying dropdown values
Dropdown overrides now supply the key value and form field name where appropriate.
2014-05-31 10:40:11 +10:00
Sam Georges 4f7a88d748 Fixes #221 - Relational search ambiguous column name problem 2014-05-29 19:40:02 +10:00
Sam Georges 2ea21ae2ac Fixes #213 - use a more friendly error when dates are not defined properly 2014-05-27 13:44:28 +10:00
Sam Georges 9e2a76d821 Add core build tag to core assets 2014-05-24 16:57:38 +10:00
Sam Georges 6788a32e8c Components have a new override method `onRender()` called before a component is rendered.
The `{% component %} tag now supports passing parameters that override the component properties when they are rendered.
Calling `addJs()` and `addCss()` in components without a starting slash (/) will now reference the component directory, instead of the theme.
2014-05-22 20:27:44 +10:00
Sam Georges ab2ea0a240 Minor inaccuracy 2014-05-21 21:26:28 +10:00
alekseybobkov 4a095160cd Added Preview mode for the multi-image file uploader, minor style improvements 2014-05-21 17:51:50 +11:00
Sam Georges a6cd797b22 Another fix for SQLite 2014-05-20 19:06:56 +10:00
Sam Georges cca27a77d6 Fixes #124 using DbDongle 2014-05-20 15:45:20 +10:00
Sam Georges 5091fd08c6 Adds support for objects (relations) when reading form data 2014-05-18 16:09:54 +10:00
Sam Georges bcf6d1a2bc Add custom SQL for SQLite 2014-05-16 11:49:08 +10:00
Jasper 8d82727310 Updated CMS language support
Moved hard-coded text in "cms" to the language files (English and
Dutch). And some minor changes.
2014-05-16 01:04:40 +02:00
Sam Georges bdff075058 Improve event emitter trait 2014-05-15 17:23:46 +10:00
Sam Georges fd5d176f60 Tighten up events 2014-05-15 16:22:22 +10:00
Sam Georges 4b0eed62a6 Fixes form widget saveData bug
Where nested checkboxes values get set at root level
2014-05-15 09:05:04 +10:00
Sam Georges 71a5dd67ab Welcome to the world, October :-) 2014-05-14 23:24:20 +10:00