3750 Commits

Author SHA1 Message Date
Samuel Georges
943868e242 Merge pull request #2447 from scottbedard/patch-1
Add 7.1 and nightly
v1.0.377
2016-10-29 14:15:31 +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
788f109361 Use transactions when saving form models
This is a good idea in general to protect the data integrity. There may be some edge cases where transactions are undesirable, if/when we find one, a configuration option should be created to disable this behavior.
Fixes #2431
2016-10-29 11:28:39 +11:00
Samuel Georges
55848e400c Empty CMS section when only manage_themes permission granted
Fixes #2425
2016-10-29 10:23:50 +11:00
Justin Lau
844d2d1b28 Use id instead of updated_at for more consistent behavior 2016-10-27 00:31:44 +08:00
Samuel Georges
359461d93e Styling fix to the welcome widget
Add unit test for constraining by pivot data
2016-10-25 07:33:24 +11:00
Scott Bedard
92a955381b Add 7.1 and nightly 2016-10-24 13:14:19 -07:00
Justin Lau
325ae4ad08 Return the latest uploaded (updated) file path. 2016-10-25 00:21:18 +08: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
v1.0.376
2016-10-22 03:10:50 +11:00
Samuel Georges
f9dd5b2f57 Plugins can now define custom list column types v1.0.375 2016-10-21 07:15:08 +11:00
Samuel Georges
88196fb660 Allow passing an explicit format to datepicker
Refs #1919
Recompile assets
2016-10-20 08:44:14 +11:00
Samuel Georges
535dc78db1 Pass model as 3rd arg in relation extend overrides
Refs #2308
v1.0.374
2016-10-19 08:45:43 +11:00
Samuel Georges
f74d95392f Fix instances where defineProperties returns nothing
addPurgeableAttribute -> addPurgeable
2016-10-19 07:21:09 +11:00
Samuel Georges
a449c05809 FormModelSaver now purges fields beginning with underscore
This is to align with the native model's fill() behavior, of which this classes' behavior is derived.
Fixes #2422
v1.0.373
2016-10-18 08:57:57 +11:00
Szabó Gergő
78d7436460 Set the path of theme preview image manually 2016-10-17 13:51:09 +02:00
Samuel Georges
2f8d8ffea6 Update select2 4.0.2 -> 4.0.3
This fixes the native focus event echoing to the select2 control, our workaround removed
2016-10-17 09:15:30 +11:00
Samuel Georges
d788b7e03f Use select2 on touch devices
This is a relic from when select2 v3 had no mobile support, we use select2 v4 now that has been tested with mobile/touch devices.
Refs #108
Clean up some white spaces
2016-10-17 08:38:01 +11:00
Samuel Georges
571ceff1ef Merge pull request #2416 from GitJaap/develop
Add current url to ajax requests in requestOptions used in XHR full pageloads
v1.0.372
2016-10-17 08:06:38 +11:00
Samuel Georges
622384d432 Improve changelog parsing
Recompile system LESS files
Refs #2414
2016-10-17 07:38:20 +11:00
Samuel Georges
9ddd3b71dc Merge pull request #2414 from gergo85/develop
Improve the Plugin details page
2016-10-17 07:17:29 +11:00
Samuel Georges
19bab2b472 Merge pull request #2419 from LukeTowers/patch-6
Pass current model to record finder scope method
2016-10-15 10:50:54 +11:00
Samuel Georges
259e0c0226 Add support for recordOnClick in relationRender 2016-10-15 10:11:54 +11:00
Samuel Georges
8eafcaa090 Encode extra config to isolate the logic
Fixes #2417
2016-10-15 10:10:11 +11:00
Samuel Georges
7b8f17e6d1 Align number columns right as per docs
Fixes #2396
2016-10-14 08:07:49 +11:00
Samuel Georges
f18ff0daac Verify fallback lang actually exists before using it
This fixes an error 500 when trying to reference a non-existent language
Fixes #2358
2016-10-13 20:38:15 +11:00
egerheed
590b697574 Updates Norwegian language file for backend (#2402)
* Updates Norwegian language file for backend
2016-10-13 19:57:54 +11:00
Samuel Georges
733158060e Fixes indentation
Refs #2400
2016-10-13 19:52:37 +11:00
Samuel Georges
4c39b340fe This should really be long text
Refs #1422
v1.0.371
2016-10-13 06:44:33 +11:00
Samuel Georges
991f7fc3b8 Fixes styling formatted content as raw
Refs #2390
2016-10-13 06:35:34 +11:00
Samuel Georges
d62bbd5c5b Merge pull request #2390 from dshoreman/patch-3
Format the formatted tab for mail logs
2016-10-13 06:31:55 +11:00
Samuel Georges
5eab7bc365 Handle when editor is not initialized yet
https://github.com/rainlab/pages-plugin/issues/197
2016-10-13 05:57:38 +11:00
Luke Towers
567e464550 Pass current model to record finder scope method
This improves the extensibility of the record finder form widget by passing the current model to the query scope that will be applied to the records being displayed. It allows the use of attributes of the current model in the query scope applied to the records being displayed as options to select.

In my use case, I have a main Survey model with related Field models. Field models can have parents and children for a tree structure, but I only want fields to have parents and children that are:
**a) Not the main record itself**
**and b) Members of / related to the same Survey model**

By passing the current model to my query scope, I can filter out ineligible records like so:
```
/**
 * Limit results to only records that are eligible to be parents of the provided model
 *
 * @param Query $query
 * @param Model $model The model to check for eligible parents agains
 * @return Query
 */
public function scopeEligibleParents($query, $model) {
    return $query->where('id', '!=', $model->id)
            ->where('parent_id', '!=', $model->id)
            ->where('survey_id', '=', $model->survey_id);
}
```
2016-10-11 17:15:40 -06:00
Samuel Georges
de1b85e796 Rich editor content saves when in code view mode
Refs https://github.com/rainlab/pages-plugin/issues/193
v1.0.370
2016-10-12 06:42:36 +11:00
Samuel Georges
8c91bfe66c Update froala to latest, recompile assets 2016-10-12 06:33:28 +11:00
Samuel Georges
5746f4dec0 Fixes missing ace vendor path
Refs https://github.com/rainlab/pages-plugin/issues/193
2016-10-12 06:13:01 +11:00
Jaap Wesdorp
972cad3f6f Add current url to ajax requests in requestOptions 2016-10-11 17:33:04 +02:00
Szabó Gergő
dfccf7fc4e Improve the Plugin details page 2016-10-11 10:59:30 +02:00
Szabó Gergő
d7f1d523f0 Translate some strings (#2395)
* Translate some strings
2016-10-11 08:29:26 +11:00
Samuel Georges
7d13d39142 Merge pull request #2410 from vojtasvoboda/feature/cs-locale
Update CS locale
2016-10-11 08:27:13 +11:00
Samuel Georges
38c0736164 Merge pull request #2405 from adrenth/feature/dutch-language
Update Dutch language
2016-10-11 08:26:59 +11:00
Samuel Georges
126f56059a Fixes double margin on toolbar dropdowns 2016-10-08 05:51:27 +11:00
Vojta Svoboda
add2df2ede Update CS locale v1.0.369 2016-10-06 11:19:48 +02:00
Samuel Georges
19c3c19a00 Added extended useList options, including raw output 2016-10-06 18:44:26 +11:00
Alwin Drenth
48d38a8e11 Update Dutch language v1.0.368 2016-10-03 17:21:55 +02:00
Samuel Georges
3c7968161a Add icon badges to lists 2016-09-30 10:36:10 +10:00
Samuel Georges
757221dfaf Tweak list alignment in callouts 2016-09-30 10:15:35 +10:00
Samuel Georges
a97208c6a1 Add more detail to callout docs 2016-09-30 10:09:15 +10:00
Samuel Georges
726fe5c6d7 Add docs for static mode flash messages 2016-09-29 15:57:03 +10: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