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
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
CSNWEB
34bd318427
Fix searching in non text fields under Postgres
...
Fixes #2092
2016-07-23 12:24:41 +10:00
Samuel Georges
1a3bf59301
Fixes not updating list record count immediately
2016-06-10 07:43:21 +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
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
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
leocavalcante
f5f7ed08e4
Make available to extends Lists records
2016-03-18 21:05:23 -03: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
d34350a7b1
Merge branch 'develop' into stable
2016-01-16 10:20:21 +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
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
Samuel Georges
0762e5cf53
Remove dependency on illuminate\html
2016-01-02 14:59:59 +11:00
Samuel Georges
5c12d99cc9
Minor revision to #1469
2015-10-17 08:41:10 +11:00
Karl Thibault
d9e85380af
Add localization for the backend Switch widget
2015-09-26 22:03:05 -04: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
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
f4890eec0c
Add better support for pivot relations in lists
2015-08-05 19:53:05 +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
e3ba89ba74
List columns don't support morphTo (yet)
2015-07-18 08:47:02 +10:00
Samuel Georges
ac9df4c076
Lists support appended attributes in url links
2015-07-14 07:42:45 +10: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
krisawzm
da0a7cbd86
Fixes #1129
2015-05-12 19:12:29 +02: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
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
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
398177b006
Full pivot support added to RelationController
2015-03-19 20:01:08 +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
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
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
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
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
0fc489c7cb
Fixes for Paginator / setCurrentPage
...
remember() now works
2015-02-07 10:24:28 +11:00
Samuel Georges
4c29c5080d
Clean up, get front and backends operational again
2015-02-05 19:47:20 +11:00
Samuel Georges
03eb949e71
Add illuminate/html package, DB -> Db, HTML -> Html
2015-02-04 20:03:44 +11:00
Samuel Georges
b1b700368f
Radical reorg of some classes
2015-01-28 11:49:54 +11:00
Samuel Georges
7c1de4f728
Add export action to ListController behavior
2015-01-27 20:02:20 +11:00
Sergiy Litvinchuk
fcc93e9319
fix error on remove displayed list column
2015-01-20 23:48:38 +02:00
Samuel Georges
6f5e3c7682
Minor bug fix where first column is not sortable
2015-01-15 17:26:21 +11:00
Samuel Georges
67d9f82097
Merge pull request #813 from nicolas-lescop/patch-3
...
Allow to prepare list model from controller
2014-12-06 09:00:30 +11:00
Samuel Georges
2533b4ab4d
ThemeData now applies default values, Theme object will proxy to ThemeData
2014-12-05 16:45:20 +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
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
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
Stefan Talen
b64a744498
Updating modules/backend/widgets
2014-10-11 00:39:34 +02:00
Sam Georges
028339ec02
nameFrom -> valueFrom (lists)
2014-09-17 14:13:07 +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
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
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
09106ff560
Improvements to logging screens and internals of List widget
2014-08-06 11:19:59 +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
Sam Georges
d912b73aab
Clean up event parameters to dev standards
2014-07-04 19:14:14 +10:00
Sam Georges
b09b6d6863
Improved naming onReload -> onRefresh
...
Improved Record finder
2014-07-03 18:37:51 +10:00
Sam Georges
5ce21e2fae
List widget now supports injecting cssClasses
2014-06-30 16:58:10 +10:00
Sam Georges
893f7746f7
Improvements to naming standards
2014-06-30 13:27:28 +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
433cf85bd4
All DateTime fields now validated in Lists
2014-06-20 19:30:37 +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
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
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
bcf6d1a2bc
Add custom SQL for SQLite
2014-05-16 11:49:08 +10: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
71a5dd67ab
Welcome to the world, October :-)
2014-05-14 23:24:20 +10:00