Commit Graph

3526 Commits

Author SHA1 Message Date
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
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
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
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 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 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
Samuel Georges b3fe8de7fb Prevent extra config from bleeding to other definitions 2016-09-28 13:26:28 +10:00
Samuel Georges baefa3e50d Allow passing arbitrary recordUrl to relationRender 2016-09-27 20:39:29 +10:00
Samuel Georges 0d336151d2 Improvements to data persistence, rework readOnly
Fixes #2308
2016-09-27 20:21:32 +10:00
Samuel Georges 1e3f5a22ef Provides an opportunity to manipulate the field configuration.
Refs #2245
2016-09-27 17:00:26 +10:00
Samuel Georges cd0cd260b5 Make manage[form] config optional
There are times when manage form mode just isn't needed. This will make the view[list] unclickable, which is OK
2016-09-27 16:53:46 +10:00
Samuel Georges 0b345ad592 Add 'readOnly' spec to form field
Same as disabled except data is still posted back
2016-09-27 16:50:52 +10:00
Samuel Georges 30bb33b6ba Update FontAwesome to v4.6.3
Recompile assets
2016-09-26 09:27:40 +10:00
Dave Shoreman 67e682f4ff Format the formatted tab for mail logs
The default markup is built by the jQuery plugin, meaning the formatted tab just shows raw data.

This checks for a Message-ID: string in the source to identify email logs, and uses the unescaped content of the raw tab to show a formatted email.
2016-09-25 04:10:53 +01:00
Samuel Georges 3499db5e53 Unescaped raw content is an oxymoron 2016-09-25 11:59:03 +10:00
Alvaro Cánepa 636b796a09 Access settings using "dot" syntax (#2363) 2016-09-20 07:25:47 +10:00
Mahmut Namli 85e9cb220a Updated turkish language files for all modules (#2377)
* Backend lang file updated for turkish

* Cms lang file updated for turkish

* System-client lang file updated for turkish

* System-lang lang file updated for turkish
2016-09-19 18:13:44 +10:00
Samuel Georges 5684cf6385 Merge pull request #2374 from octoberfa/master
Update Persian language
2016-09-18 18:00:52 +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 cc2973e148 Merge pull request #2275 from Arekusei/develop
Added support for Many To Many polymorphic relations.(morphToMany and…
2016-09-18 12:08:57 +10:00
Sajjad c80675f7b4 Update Persian language 2016-09-16 18:55:31 +04:30
Samuel Georges cc09f6eb53 Minor style fix 2016-09-14 19:00:25 +10:00
Samuel Georges 2659ae708f Add doc blocks 2016-09-09 06:16:24 +10:00
Samuel Georges c507279c75 Merge pull request #2348 from scottbedard/patch-2
Fixing a typo
2016-09-07 19:46:11 +10:00
Scott Bedard 544a8c38cd Fixing a typo 2016-09-05 08:35:43 -07:00
linver a5047e0161 language zh-cn of changes 2016-09-03 13:05:28 +10:00
reg2005 b26fab725a New translation attachment_url
In Russian it will be so more correct
2016-09-03 12:59:02 +10:00