Commit Graph

672 Commits

Author SHA1 Message Date
Luke Towers c9e31fd83b Support previewMode for the balloon-selector
Add support for previewMode in the Balloon Selector form field type.
Refs: #2724, 5f91c45
2017-07-09 12:53:29 -06:00
Szabó Gergő f7f507dbdc Translate the value of the text field (#2942)
It is a useful feature, if you like to add translatable value.
2017-06-26 09:38:31 -06:00
Samuel Georges c3570ffd7e The event emitter should not be a dependency
Fixes #2938
2017-06-23 08:11:41 +10:00
Samuel Georges 9eb0cc24ae Opens a channel for model to talk with form widget
.. and controller and beyond.
2017-06-17 21:20:34 +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 f0df1f458b Merge branch 'develop' into l55upgrade
Conflicts:
	modules/system/assets/ui/storm.css
2017-05-27 22:24:57 +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
Samuel Georges 7e76f39e6c Add app.name config
Various other refittings
2017-05-16 18:50:41 +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
CSNWEB 3cfb8c7587 DRY up the code 2017-04-09 04:01:34 +02: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 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 b841f9e066 {@inheritDoc} -> @inheritDoc 2017-03-16 06:26:14 +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
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 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
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 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 6b56476f66 Merge pull request #2469 from joseph-d/patch-1
Update Filter.php
2017-01-13 06:29:54 +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
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
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
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
Samuel Georges 0a2b343047 Simplify system events
This pipes all event calls through a new EventEmitter trait, which substitutes the October Rain event emitter trait. The view event has been moved to this trait also.
Pass some variables by reference to allow multi-extension.
Fixes #2420
2016-12-10 09:02:06 +11:00
Pásztor Gábor 94ab13cd8b Fix exception message, remove some unneded imports. 2016-12-07 21:33:05 +01:00
Samuel Georges f771887ee5 When refreshing fields, forceFill is a bit too flaky
- Using a proxy field would populate a relation with an array of attributes, this is not good or consistent. Instead the FormModelSaver trait is used to bring the behavior in line with FormController and others. This should improve consistency in the behavior and developer expectations.

- The noticeable difference will be that relations and their values are now set by the postback data where possible. In cases where this is undesirable -- eg: updating a relation triggers proxy fields to update with existing values, when they should seed from the relation instead (desire to lose prior changes) -- the formExtendRefreshData controller override can be used to prune the existing values from the dataset, where they will then be seeded from the model as normal.

- Also the $data property is only rebuilt if it differs from the model. Previously it would corrupt the model-based dataset by converting to an array then back to an object. If the two objects are the same, they will be passed by reference and values will replicate this way.
2016-11-30 07:08:12 +11:00
Samuel Georges b39ebec812 Pass columns to search scope
This allows the default search to be applied and combined with any custom constraints
2016-11-29 06:46:52 +11:00
joseph-d af7950b9d0 Update Filter.php
There is an addScopes function for extensibility but no way to remove scopes which are already there.
2016-11-08 09:46:27 +00:00
Samuel Georges 46c473e2f2 Fixes fetching multi tiered pivot relation values
Refs https://github.com/daftspunk/oc-crm-plugin/issues/3
Minor code clean on select.js
2016-11-08 07:02:31 +11:00
Samuel Georges 4aca2d40ff Remove "allowClear" and tidy up #2459
Allow clear is not necessary, equivalent of allowClear false is "placeholder" and allowClear true is "emptyOption".
2016-11-07 08:43:52 +11:00
Joseba Juániz 1ee0250441 Dropdown can support either placeholder / emptyOption
The difference between a placeholder and an emptyOption is that the placeholder cannot be reselected,whereas the emptyOption can.
Fixes #2450
2016-11-07 08:29:49 +11:00
Samuel Georges 50d3ffb035 Halycon models do not declare forceFill
Only bind purgeable fallback event once (only needed once)
Refs https://github.com/rainlab/translate-plugin/issues/54#issuecomment-256067096
2016-11-05 10:59:53 +11:00
Samuel Georges 7b0f33e9b3 Adds an isNested flag to Form widget
This is useful when a form renders another form inside, specifically the repeater. In these cases the model and data will diverge, and it also provides an opportunity to not apply extension logic to nested form fields.
Fixes #2257
2016-11-05 09:53:23 +11:00
Samuel Georges 57b10704ce Support for overriding list views
For consistency, entry partial for controller behaviors should be called "container"
Added addViewPath() method to ViewMaker
Remove "fa" from icon docs (not necessary)
Fixes #2439
2016-10-29 14:10:21 +11:00
Samuel Georges ee2dd78b3d Exception handling for type: relation
It would appear many plugins incorrectly use type: relation as a list column, when this does nothing. Previously it would fallback to the text type, now that invalid types fail hard, this adds a softer landing by spamming the trace log instead.
Refs #2438
2016-10-22 04:18:28 +11:00
Samuel Georges 91e7e8b950 List column number type was falling back to text
Since custom list column types an exception is thrown for unknowns. This makes number known.
Fixes #2438
2016-10-22 03:10:50 +11:00
Samuel Georges f9dd5b2f57 Plugins can now define custom list column types 2016-10-21 07:15:08 +11:00
Samuel Georges 733158060e Fixes indentation
Refs #2400
2016-10-13 19:52:37 +11:00
Samuel Georges 19c3c19a00 Added extended useList options, including raw output 2016-10-06 18:44:26 +11:00
Samuel Georges fe74fcb8e0 Comma concat all single dimension arrays, for text columns
This is useful when the attribute is a basic jsonable store and needs to be in a suitable format for "useList" export mode
2016-09-28 16:31:21 +10:00
Samuel Georges 9b5851fbd5 Improves exception handling for invalid model resolver
A more specific error message is now shown when trying to resolve a model from an invalid source (eg: an array)
Fixes #2354
2016-09-18 13:44:13 +10:00
Samuel Georges 6c474bcae9 Move list pagination out of table footer
Remove docs on list-unresponsive (removed a while ago)
Add topPartial and sidePartial options to list controller configuration (experimental)
2016-09-03 12:13:38 +10:00
Szabó Gergő 749e4c031c Translate the remove widget dialog (#2323)
* Translate the remove widget dialog
2016-08-27 09:14:31 +10:00
Samuel Georges c70db75d38 Pass the data set along with getOptions methods
This is useful when the model is unreliable, because it is not always populated with the relevant data set. This argument is only needed in edge cases, like when using a repeater or other split class<->data scenarios
Refs #2235
2016-07-23 15:16:57 +10:00
Samuel Georges 675a6a4224 Code improvements
Refs #2235
2016-07-23 14:22:36 +10:00
Samuel Georges 07b0c7d0ce Merge pull request #2235 from acasar/nested-depends-on
DependsOn in repeater
2016-07-23 13:36:24 +10:00
CSNWEB 34bd318427 Fix searching in non text fields under Postgres
Fixes #2092
2016-07-23 12:24:41 +10:00
Anže Časar 79bb4c2035 Nested DependsOn 2016-07-22 00:38:32 +02:00
Samuel Georges 49641a31d0 Remove the dropup when there are no widgets
Fixes #2123
2016-07-03 14:53:37 +10:00
Samuel Georges bcff1d3ecd Widget classes are now extendable
Fixes #2078
Fixes #1586
2016-06-15 17:10:46 +10:00
Samuel Georges 1a3bf59301 Fixes not updating list record count immediately 2016-06-10 07:43:21 +10:00
Samuel Georges 74a6a71bcb Parameters -> Parameter
(Models should be singular)
2016-05-31 08:17:48 +10:00
Samuel Georges bb769db223 Dashboard now supports reset and make default
Added the new widgets to the add widget screen
System Parameters can now be reset
2016-05-28 14:18:25 +10:00
Samuel Georges 805c0939ad Introduce two new dash widgets: welcome and active theme
System warnings have been moved to the system dash widget
Minor styling and language changes
2016-05-28 11:10:33 +10:00
Samuel Georges cdb35f5070 UserPreferences -> UserPreference
(Models should be singular)
2016-05-27 07:35:32 +10:00
Samuel Georges 010a769b19 Create centered loader with text
Continuity styling updates
2016-05-26 05:20:26 +10:00
Szabó Gergő 6d86e44279 Add missing translation and update the Hungarian translate (#2017)
* Add missing translation

* Update the Hungarian translate

* Open the author's website in a new window

* Minor typo

* Minor change
2016-05-24 06:04:57 +10:00
Samuel Georges 7563670c49 Minor styling fixes on the table control 2016-05-23 17:32:20 +10:00
Samuel Georges f2e129e821 Fixes logic error
Fixes #2020
2016-05-18 05:57:08 +10:00
Samuel Georges 3bad70f041 Relation controller now applies the defined constraints by default
Relation controller now supports scope and conditions for the manage mode (list)
Logic has been modified across recordfinder and filter that only allows one constraint in this order (1. conditions, 2. scope, 3. defined constraints (where applicable))
Fixes #1203
2016-05-17 05:17:40 +10:00
Samuel Georges 41de93a2cb Fixes an issue where the default widgets are not loaded
Ping @ChadStrat
2016-05-16 06:41:15 +10:00
Jérémy GAULIN c43a460064 Allow specifying half bound daterange filter values (treat the missing one as "infinty", ie 0000-00-00 for min and 2999-12-31 for max) 2016-05-15 01:22:28 +02:00
Samuel Georges cb86e655dd Fixes disabled relation nulling value
Just like DatePicker, relation and even regular fields should omitted from the data set
The same logic should apply to hidden fields
Fixes #1827
Recompile assets
2016-05-15 06:47:28 +10:00
Jérémy GAULIN e988e1a171 Fix error thrown when `$date` is not set 2016-05-14 11:50:14 +02:00
Samuel Georges 36caa651f3 Datepicker was moved to storm, so no need to load it from the widget
Recompile assets
Refs #2008
2016-05-14 16:37:55 +10:00
Jérémy GAULIN 02c000530c Display dates with backend timezone. Manipulate date with app timezone. 2016-05-14 04:14:42 +02:00
Jérémy GAULIN 578319a204 - Fix submitting null dates.
- Allow scope functions for date and date range with Carbon instances at 00:00:00 (date / daterange after) and 23:59:59 (daterange before).
 - Introduced after / before (Y-m-d 00:00:00 / 23:59:59) for date widget. Kept filtered at Y-m-d
 - Introduced afterDate / beforeDate (Y-m-d) for daterange. Kept after / before at Y-m-d 00:00:00 / 23:59:59
2016-05-14 04:14:41 +02:00
Samuel Georges f3f8676479 The date format should be sourced from moment
Streamline JS formatting
Refs #1651
2016-05-12 07:02:29 +10:00
Samuel Georges 5ce890ba4a Cannot use default as a variable
Add missing date scope partials
2016-05-12 06:48:30 +10:00
Samuel Georges 37403f3ad4 Reorganise some code from #1651
Add getLang helper - Storm cannot depend on Backend
Recompile assets
2016-05-12 05:48:04 +10:00
Samuel Georges cdd280b6e1 Merge pull request #1651 from gabsource/feature/list-scope-filter-by-dates
Feature to allow filtering lists by date scopes (single date or range)
2016-05-12 04:46:06 +10:00
Samuel Georges f900ed8f62 Reshuffle the base color scheme again
Restyle the component area in the CMS
2016-05-12 04:33:01 +10:00
Jérémy Gaulin 51ac38dff7 Minor refactoring to match latest develop version 2016-05-11 17:27:52 +02:00
Jérémy GAULIN b08c215b72 Filter lists by dates with two new scope types (date and range) 2016-05-11 16:13:52 +02:00
Samuel Georges 5400ec7d2d Complete taglist form widget 2016-05-10 06:02:35 +10:00
Samuel Georges 5d27682f25 Create new TagList form widget (Experimental)
Update Select2 to latest
2016-05-08 17:43:21 +10:00
Samuel Georges d69053481c Tweak some styles 2016-05-05 17:39:36 +10:00
Samuel Georges 0d8a30730e Introduce scope "switch" type, allow options to be passed 2016-04-27 19:09:19 +10:00
Samuel Georges d3efc1af4c Make the datepicker preview mode show pretty dates
Improve styles of preview form controls
2016-04-26 06:59:02 +10:00
Samuel Georges 02165a8a4a Introduce a new localized date control
Added a helped Backend::DateTime() for rendering the appropriate HTML output as a <time /> tag
The meta now specifies the locale and timezone preference used here
Lists now take advantage of this to display dates relative to the timezone and language (awesome sauce)
@todo Still need to get apply this logic to the datepicker form widget
2016-04-23 13:17:04 +10:00
Samuel Georges 7cb9087ffb DateTime throws an invalid arg exception to prevent Twig crashing
Remove rounded search style
2016-04-23 05:29:42 +10:00
Samuel Georges 0504da41f2 Add hasFields methods
formHasOutsideFields, formHasPrimaryTabs + formHasSecondaryTabs
2016-04-23 05:13:08 +10:00
Samuel Georges 72d3fe3ebd More styling updates 2016-04-23 05:11:02 +10:00
Samuel Georges 51bef96db9 More styling changes and other minor improvements 2016-04-21 04:52:21 +10:00
Samuel Georges 788ffbb417 Minor fix to custom list search scope 2016-04-20 05:29:24 +10:00
Samuel Georges bff35e5f1a Lists can now define search scope or mode (see docs) 2016-04-19 19:54:22 +10:00
Samuel Georges b15cdadd99 Restrict scrolling to thead
Fixes fluidity issue on Apple trackpad
We can now use combo scroll for Windows users / more obvious UX
2016-04-14 05:24:19 +10:00
Samuel Georges 6c30e542a7 Replace the mobile list control with drag scroll implementation
Disable dragging if there is nothing to drag to
Fixes accidental list.rowlink clicks when dragging
List headers no longer wrap
2016-04-13 18:18:29 +10:00
Samuel Georges ba57dd8993 clearAssetDefinitions -> flushAssets 2016-04-12 18:04:15 +10:00
Samuel Georges 0aef151d9a Add showSearch option to dropdown
This is a highly specific option, so we shouldn't add it to the FormField class itself
2016-03-25 18:21:58 +11:00
leocavalcante f5f7ed08e4 Make available to extends Lists records 2016-03-18 21:05:23 -03:00
Samuel Georges c244aef2f8 Clean up 2016-03-18 19:54:27 +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
Samuel Georges 1241f584d0 Merge remote-tracking branch 'remotes/origin/stable' into ui 2016-03-01 07:02:07 +11:00
Samuel Georges 98eb4f8239 Add support for "relation" with Tree models
- This makes the list slightly more efficient for small collections, less efficient for larger collections. If this becomes a problem in future we may need to look at a solution that grabs all the root nodes to start, then lazy loads any expanded nodes as secondary AJAX requests.
- Write tests for the Tree trait improvements
Fixes #1647
2016-02-27 11:29:07 +11:00
Samuel Georges 21f3ac93c1 Add support for HTML comments
Fixes #1808
2016-02-27 09:46:00 +11:00
alekseybobkov b1770626d7 UI updates 2016-02-23 21:44:05 -08:00
Samuel Georges 202e542985 Oddly, JS may pass false as a string (@todo) 2016-02-20 17:15:21 +11:00
Samuel Georges da71a21172 Add oc.tableUpdateData event and readOnly to string processor
Minor tidy
2016-02-20 15:38:29 +11:00
Samuel Georges 18194fa0f9 Complete Table server data source
Recompile assets
2016-02-20 12:45:36 +11:00
Samuel Georges 808c8f0ca4 Minor tidy and rollback from #1720 2016-02-13 14:41:17 +11:00
Joshua Wilson 6f3d7a58f2 Phpdoc cleanup for System\Traits
removed in WidgetMaker trait

phpdoc cleanup of backend traits and classes

Minor fix for cases when file is not found
2016-02-13 14:06:50 +11:00
Samuel Georges e367febb93 Roll back some stuff from #1704 2016-02-13 13:18:48 +11:00
Alwin Drenth 386f958b6e Code improvements and added proper PhpDoc 2016-02-13 13:08:30 +11:00
Samuel Georges 6d8ec9b4dc Fixes data source polluting base proto
Recompile assets
2016-02-10 20:22:50 +11:00
Samuel Georges acfb35cbed Merge branch 'develop' into stable 2016-02-10 20:03:51 +11:00
alekseybobkov f6dec96c86 Improved memory management in the table widget client-side scripts. Minor CSS fixes. 2016-01-22 21:43:45 -08:00
Samuel Georges 6828094252 Lay initial ground work for server data source
- The first server data source (ServerEventDataSource) is event based, so the implementing code is responsible for handling the data maintenance logic explicitly.
- The nature of the server side data source should show the data is maintained automatically with AJAX by individual events triggered on the client side. Records are maintained one-to-one, when you edit it, it updates on the server and so on.
- Only the READ events are implemented at this point.
2016-01-16 17:38:05 +11:00
Samuel Georges f2699a7039 Fixes bug preventing pagination click 2016-01-16 16:20:33 +11:00
Samuel Georges 3cfc7b6a5d Move widget classes that are exclusive to their own space 2016-01-16 16:02:28 +11:00
Samuel Georges d34350a7b1 Merge branch 'develop' into stable 2016-01-16 10:20:21 +11:00
Samuel Georges c4f5a25193 Merge pull request #1687 from gpasztor87/stable
Remove deprecated code
2016-01-16 09:09:07 +11:00
Samuel Georges d2561dcfd0 Merge pull request #1689 from CSNWEB/patch-2
Use Grammar from Query in Widget List
2016-01-16 09:02:29 +11:00
Pásztor Gábor 31457bd2ee Cleanup 2016-01-15 10:20:57 +01:00
Samuel Georges a3b338671d Pass filter conditions thru dongle
Minor fix to new YAML syntax in demo theme
2016-01-12 21:17:07 +11:00
Samuel Georges d8922c263f Remove global scopes for join SQL
Fixes PostgreSQL strictness
Refs https://github.com/rainlab/blog-plugin/issues/171
2016-01-12 20:53:53 +11:00
CSNWEB aa5f37aae6 Use Grammar from Query in Widget List
When using models with a different database software than the default, the old code produced a syntax error. 
Using the Grammar from the query ensures that the alias is always wrapped correctly. 

Suggestion: The code should be scanned for similar errors, produced by using DB Facade.
2016-01-10 14:10:49 +01:00
Pásztor Gábor 373c31a8e7 Remove deprecated DataGrid formwidget 2016-01-09 16:41:56 +01:00
Samuel Georges 0762e5cf53 Remove dependency on illuminate\html 2016-01-02 14:59:59 +11:00
Samuel Georges 188351a82a Merge pull request #1675 from gpasztor87/patch-1
Minor fix
2016-01-02 11:55:54 +11:00
Pásztor Gábor e1a9d8d393 Minor fix
It does not worked for me in popup window.
2015-12-30 19:32:14 +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
Samuel Georges 04e61adac3 Add official support for "nolink" columns - Fixes #1599
To make a row non-clickable, use the `clickable` option in the list column definition
2015-12-05 10:05:42 +11:00
alekseybobkov c72920029e Minor extension in the table widget client-side API. 2015-11-20 21:02:45 -08:00
alekseybobkov 0e2e18af7f Added autocomplete column type to the Table widget 2015-11-17 21:26:03 -08:00
Samuel Georges af657e9399 Fixes #1042 - remove fillable constraint on models when saving
Form fields are already constrained by their fields.yaml definition (values not defined in the yaml will not be saved) so we don't need to double dip by enforcing fillable too.
2015-10-17 11:41:40 +11:00
Samuel Georges ef22ac934d DRY up code from #1504 2015-10-17 10:16:49 +11:00
Samuel Georges 5c12d99cc9 Minor revision to #1469 2015-10-17 08:41:10 +11:00
Samuel Georges 7543daa976 Merge pull request #1469 from Notuom/localize-backend-list-widget-switch
Add localization for the backend list Switch widget
2015-10-17 08:22:50 +11:00
alekseybobkov a5b217ff0b Merge branch 'develop' into builder-ui
Conflicts:
	modules/backend/widgets/table/assets/js/build-min.js
	modules/backend/widgets/table/assets/js/table.js
2015-10-15 17:32:19 -07:00
Samuel Georges b7505a2cd7 Returning save data now depends on form fields, so they should always be defined 2015-10-05 18:00:01 +11:00
Samuel Georges 3a7e1d6d31 Fixes #1480 - Allow postback key names to use dots 2015-10-05 12:11:25 +11:00
Samuel Georges f97b9a6831 Allows custom toolbar buttons to be injected
Removes the assumption that all anchors are pagination links
Make code easier to read in places
Sorry, had to use jQuery in some places too
2015-10-01 18:13:15 +10:00
Samuel Georges 97595a631e Adds the ability to inject custom buttons + icons 2015-10-01 17:24:12 +10:00
Karl Thibault d9e85380af Add localization for the backend Switch widget 2015-09-26 22:03:05 -04:00
Samuel Georges a636dd1ad8 Form widgets returns data only if it has a field definition 2015-09-26 11:41:02 +10:00
Jakub Zych 0e3e19a685 string replaced with translation key
backend::lang.list.no_records exists in all language files
2015-09-23 15:14:10 +02:00
Samuel Georges 6b916cb554 Adds a timetense list column, inspired by FB
Also added |time_since and |time_tense Twig filters
2015-09-17 05:15:12 +10:00
alekseybobkov fea5d8389f Minor fixes and improvements. 2015-09-10 20:45:07 -07:00
Samuel Georges cf7585f79b Fixes formwidget logic leaking out of context
For example: a formwidget with no tabs can exist inside a set of preview content tabs
2015-09-10 20:51:02 +10:00
Samuel Georges ddf8ff09ff Fixes #1416 to include empty strings 2015-09-03 07:15:52 +10:00
Vojta Svoboda beb253a5c0 Fix evaluate zero value as null 2015-09-02 22:43:33 +02:00
Samuel Georges 2619de0ae7 Fixes bug in valueFrom when relation is null 2015-09-02 17:28:22 +10:00
Samuel Georges 275463996e When toggling empty tabs: if a hidden tab was selected, select the first visible tab
Induce tab overlap using negative right margin instead (first-child tab can be hidden)
Use a slightly cleaner approach than in #1401
2015-08-29 18:42:29 +10:00
Samuel Georges c5c56dd927 Merge pull request #1401 from gabsource/hide-formwidget-tab-on-toggle
Hide FormWidget tabs when they contain no fields or only hidden field
2015-08-29 17:21:42 +10:00
alekseybobkov 268b918a51 Merge branch 'master' of github.com:octobercms/october into builder-ui 2015-08-27 18:30:45 -07:00
Jérémy Gaulin 6ec42da584 Hide FormWidget tabs when they contain no fields or only hidden fields after a toggle event on a field has occurred 2015-08-27 22:28:03 +02:00
Samuel Georges 793bf30c26 Decouple the toolbar from the layout system 2015-08-26 20:24:37 +10:00
alekseybobkov c38126ce65 Implemented the oc.tableCellChanged event for the table widget. Added readonly mode support in the code editor widget. 2015-08-25 21:34:21 -07:00
alekseybobkov 35c9e753f4 Table validation messages are translatable now. Fixed a bug where clicking a checkbox in a table row doesn't change its status. 2015-08-14 20:11:55 -07:00
alekseybobkov a253d6fc57 Added customization options for the Table widget toolbar button labels 2015-08-13 20:26:11 -07:00
Samuel Georges fc04bd1b4c Added new makeFormWidget() method to WidgetMaker for rendering form widgets individually 2015-08-07 19:06:04 +10:00
Samuel Georges f4890eec0c Add better support for pivot relations in lists 2015-08-05 19:53:05 +10:00
Samuel Georges 2c646878a0 Add $.oc.listGetChecked helper 2015-08-05 19:52:50 +10:00
Samuel Georges 23dc27e679 Ensure the models primary key is always available in the URL values
Fixes https://github.com/rainlab/forum-plugin/issues/74
2015-08-05 07:48:18 +10:00
Samuel Georges b010732796 These methods should be protected, update client lang 2015-08-04 10:01:17 +10:00
Samuel Georges f47b99d183 Move storm to its own build 2015-07-29 19:13:42 +10:00
Samuel Georges 93f7b7800b Merge pull request #1306 from Flynsarmy/numberPattern
Allow overriding number field pattern attribute
2015-07-25 15:28:46 +10:00
Samuel Georges 4781c703bb Fixes previewMode on checkboxlist and radio
Checkboxlist wasn't showing the placeholder for empty preview values
2015-07-25 09:22:22 +10:00
flynsarmy a5b41269e7 Allow overriding number field pattern attribute 2015-07-24 16:24:50 +10:00
Samuel Georges d9b98bccca Minor 2015-07-21 07:57:04 +10:00
Samuel Georges 846feb6a33 FileUpload now triggers dependsOn event
form.beforeRefresh event now uses dataholder pattern
Improve exception handling in ControllerBehavior
2015-07-18 08:50:31 +10:00
Samuel Georges e3ba89ba74 List columns don't support morphTo (yet) 2015-07-18 08:47:02 +10:00
Samuel Georges 3d91b7874c Fixes a bug in report container not loading defaults and ignoring context 2015-07-16 18:19:09 +10:00
Samuel Georges 8e3d3d5e30 Fixes a bug in report container not loading defaults and ignoring context 2015-07-16 13:34:53 +10:00
Samuel Georges ac9df4c076 Lists support appended attributes in url links 2015-07-14 07:42:45 +10:00
Samuel Georges e9ed9d14c8 Add $.oc.listToggleChecked helper
Other minors
2015-07-10 15:51:24 +10:00
Samuel Georges 84da7f3698 Improve tabs consistency, fix conflict with .primary
.primary -> .primary-tabs
.secondary -> .secondary-tabs
.master -> .master-tabs
2015-07-10 15:51:24 +10:00
Samuel Georges 4b36e1bd95 Merge pull request #1240 from alvaro-canepa/patch-5
Translate field value in preview mode
2015-07-04 10:25:35 +10:00
Samuel Georges a1e1b52d6e Fixes bug where select2 cannot be selected in a popup
OL and UL and sane rich editor elements
Disable search on list setup form
2015-07-04 09:33:05 +10:00
Samuel Georges 78cf62cff1 Add a note about October.Drivers for mail methods that use it
Trim field partials to allow :empty selector to work
2015-06-30 15:30:14 +10:00
Alvaro Cánepa 90c47b4e6f Translate field value in preview mode 2015-06-27 07:34:34 -03:00
Samuel Georges c9a9c6ea16 List columns now support specifying a default option used when the value would otherwise be null. 2015-06-27 10:39:07 +10:00
Samuel Georges 453d2fda56 Add the links handler to rich editor
Other small fixes
2015-06-24 17:36:59 +10:00
Samuel Georges 37e5b2328f Form text/password/number fields now support maxlength attribute - Fixes #1210 2015-06-20 12:00:37 +10:00
Samuel Georges 44a650ca72 Minor fix from #1204 2015-06-14 11:09:37 +10:00
Michał Płodowski fc6f479aaa Add global event for filter widget to extend model options query typo 2015-06-12 16:56:37 +02:00
Michał Płodowski 8ed463e2c9 Add global event for filter widget to extend model options query 2015-06-12 15:54:05 +02:00
Samuel Georges bed7d0825f Fixes loading animation in various places 2015-06-03 19:22:18 +10:00
Samuel Georges a002d5da92 Merge branch 'develop' into ui-breakout
Conflicts:
	modules/system/assets/ui/js/chart.bar.js
2015-05-30 13:01:35 +10:00
Samuel Georges c0fdee9923 Merge pull request #1146 from krisawzm/patch-1
Fixes #1129
2015-05-30 09:47:15 +10:00
Samuel Georges db39026df7 Move filter to UI lib 2015-05-29 19:24:49 +10:00
Samuel Georges a1291c3716 Restyle Administrator pages 2015-05-21 22:55:08 +10:00
Samuel Georges be05899a52 Outside fields don't use tabs 2015-05-21 22:55:08 +10:00
Scott Bedard d795d912d2 Solves issue #1140 2015-05-16 03:44:25 -04:00
Justin Lau 8ab2a5999b Removes local mousewheel jquery plugin. Fixes rainlab/translate-plugin#5. 2015-05-16 07:53:20 +08:00
krisawzm da0a7cbd86 Fixes #1129 2015-05-12 19:12:29 +02:00
Scott Bedard 7fd1d9e328 Solves #1077
Calling updateWidth() prior to redrawing solves issue #1077
2015-05-02 17:53:14 -04:00
Samuel Georges dd8bf186a6 Minor 2015-05-02 10:50:19 +10:00
Gerard Arall 7877035dc4 Remove list columns 2015-05-01 09:09:56 +02:00
alekseybobkov 06e5dce96a Fixed a conflict in framework.js. Closures in the script are named now, for the memory profiling needs.
Conflicts:
	modules/system/assets/js/framework.js
2015-04-11 18:58:24 -07:00
Samuel Georges ffd4b5a68a Extract checkboxlist all/none JS to october.form.js 2015-04-11 10:35:04 +10:00
Samuel Georges a9b9b916ca Merge pull request #1036 from scottbedard/patch-2
Fixes issue #1035
2015-04-11 10:17:30 +10:00
Samuel Georges 0f630c80d9 Improve framework code to support $(this) in data attributes 2015-04-08 07:44:26 +10:00
Samuel Georges 93dd61efc7 Move the search term constraint under the same query group
Refs https://github.com/octobercms/october/pull/775
2015-04-06 16:25:43 +10:00
alekseybobkov 790b464679 Merge branch 'develop' into media-manager 2015-04-04 19:01:08 -07:00
Scott Bedard 035ebbbb68 Fixes issue #1035
Triggers a change event when the "all" or "none" checkboxlist helpers is clicked, enabling dependent fields be adjusted accordingly.

https://github.com/octobercms/october/issues/1035
2015-03-29 00:20:48 -04:00
alekseybobkov f6cf7e9840 Added new back-end control Scrollpad. Added Element and Event utility functions to the Foundation library. Implemented file list scrolling in the Media Manager. Some minor fixes. 2015-03-28 11:42:40 -07:00
Samuel Georges c4027b8bc6 Added a defaultFrom option to form fields
Default context of manage and pivot forms is now create and update respectively, instead of the old value relation
2015-03-28 16:14:22 +11:00
Samuel Georges 3eede4a7b7 Reorganise and improve RelationController
Fix bug in DataTable limited to 10 records
2015-03-27 22:20:52 +11:00
Samuel Georges a743d78658 List Column of type switch now has text-center CSS
List Column now have getName and getId accessors
2015-03-25 19:35:00 +11:00
Samuel Georges 8d93c9ffab List query is now AND where instead of OR where
Refs #775 to support soft deletes
2015-03-25 19:33:00 +11:00
Samuel Georges 3c2494aa83 Improve DataTable form widget, fixes vague error in RecordFinder 2015-03-24 20:10:45 +11:00
Samuel Georges 398177b006 Full pivot support added to RelationController 2015-03-19 20:01:08 +11:00
Samuel Georges a1ac5edbf7 Various minor fixes and improvements 2015-03-18 19:28:14 +11:00
Samuel Georges c6bfd5d01c Move this logic to no longer depend on AR model 2015-03-10 09:34:59 +11:00
Samuel Georges 3ecdf2c74b Fixes #977 - Look to related models for getting dropdown-type options 2015-03-07 13:14:13 +11:00
Samuel Georges 668457b4e6 Updated deprecated references
Str::evalHtmlId -> October\Rain\Html\Helper::nameToId
Str::evalHtmlArray -> October\Rain\Html\Helper::nameToArray
Str::stripHtml -> October\Rain\Html\Helper::strip
Str::limitHtml -> October\Rain\Html\Helper::limit
Str::cleanHtml -> October\Rain\Html\Helper::clean
2015-03-07 12:48:39 +11:00
Samuel Georges 9ff62d02b7 Minor clean of #986 2015-03-07 11:34:19 +11:00
Ariel Ponce 2cffe106b8 Allow to pass 0 as column value in List widgets
**Problem**: When overriden the columns value, if we pass 0 or '0', the condition is not met and therefore the column has a null value.

**Solution**: Check for not null in the condtion
2015-03-06 11:51:05 +01:00
Samuel Georges 507bfab768 !!! *BREAKING*: Form widget base class no longer takes a model as the 2nd argument, it should be passed as `model` in the configuration instead. 2015-03-06 20:37:05 +11:00
Samuel Georges 2561131f38 Allow balloon control markup to be used independently 2015-03-06 20:35:54 +11:00
Samuel Georges 561e969d2d Extract controls to their own stylesheet
(So they can be used elsewhere; namely documentation)
Add indicator-center and clean up load indicator
Fancy layout should live with the other layouts, it isn't really a control
2015-03-04 18:23:02 +11:00
Samuel Georges f869b8cc94 Gives FormWidgets the ability to say: "No labels, please"
ping @keiosweb
2015-03-03 20:24:14 +11:00
Samuel Georges 1ab8858271 Minor touch ups 2015-03-03 18:38:36 +11:00
Samuel Georges 81d0225928 Allow query to be completely swapped out using extendQuery
Add HTML array support to valueFrom (without relations)
2015-02-28 22:07:06 +11:00
Samuel Georges 49f6e64db0 Refactor the toolbar widget 2015-02-28 13:54:00 +11:00
Samuel Georges 4e1f704ae3 Minor clean up 2015-02-28 13:48:35 +11:00
Samuel Georges a57505b227 Refactor Search widget 2015-02-28 13:45:14 +11:00
Samuel Georges bb8292d883 Add warning about impending doom 2015-02-28 13:39:21 +11:00
Samuel Georges f9e287e173 Refactor form widget to use an approach much like ReportContainer 2015-02-28 13:37:06 +11:00
Samuel Georges 6e54fea23f Refactor filter widget to use an approach much like ReportContainer 2015-02-28 12:50:02 +11:00
Samuel Georges 85c47c4e01 public -> protected $defaultAlias 2015-02-28 12:43:53 +11:00
Samuel Georges c035f81b0f Refactor list widget to use an approach much like ReportContainer
This means widget properties are "filled" from the supplied config
2015-02-28 12:41:45 +11:00
Samuel Georges 932a40a025 Streamline the process of filling a widget with its config options 2015-02-28 12:12:22 +11:00
Samuel Georges 543686c8e0 Fixes #953 - ReportWidgets now initialize early and therefore support AJAX handling 2015-02-28 11:51:58 +11:00
Samuel Georges 5784417862 Document widget accepted config
These definitions don't serve a function other than helping developers
2015-02-28 11:50:27 +11:00
Samuel Georges 5c78140268 Adds compact column, explicit option for deferred binding in relation controller, fix to list head width 2015-02-27 21:54:58 +11:00
Samuel Georges e487f075c4 Fixes issue in CodeParser where it tries to use a class that doesn't exist
Adds context to filterFields() model override
2015-02-26 23:08:38 +11:00
Samuel Georges e6acb54d03 * Build 209 2015-02-25 19:10:42 +11:00
Samuel Georges a748eb1b23 Merge pull request #961 from tresbach/develop
Allow setting 'options' for a scope in filter config
2015-02-25 19:07:49 +11:00
Samuel Georges 2bdc5aea78 Add section form field type, minor style fixes 2015-02-24 18:46:20 +11:00
Amanda Tresbach d50e9e743f Allow setting 'options' for a scope in filter config 2015-02-22 20:28:05 -03:00
flynsarmy 74cd856f8a Accept any valid number, positive or negative 2015-02-22 13:45:40 +10:00
Pásztor Gábor f8cb3900f0 Add validation rules for mail settings. 2015-02-21 19:55:37 +01:00
Samuel Georges 320f7bfb1a List text values should be escaped, since they come directly from the model values
Fxies https://github.com/rainlab/user-plugin/pull/37
2015-02-21 19:16:44 +11:00
Samuel Georges 6bf72386ee Can now prune event/request log records, add width definition to list columns 2015-02-21 13:49:32 +11:00
Samuel Georges 7145aac457 Prepare for CDN, config rename cms.plugins|themes|uploadsDir -> cms.plugins|themes|uploadsPath
Deprecate data-trigger-type on triggerapi
Fixes ref to Util class
2015-02-17 20:58:38 +11:00
Samuel Georges 6a2f64757b *** REMOVED ALL DEPRECATED CODE ** 2015-02-14 14:11:25 +11:00
Samuel Georges 2b32fc4718 Minor touch ups 2015-02-12 08:37:24 +11:00
Samuel Georges 77d0d25f64 Merge pull request #934 from Flynsarmy/removeFormField
Add support for removing form fields
2015-02-12 08:32:03 +11:00