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
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
v1.0.367
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
v1.0.366
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
v1.0.365
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
Samuel Georges
a14a60881a
Merge pull request #2239 from json-wong/patch-1
...
Create client.php for chinese.
2016-09-03 12:56:47 +10:00
Samuel Georges
58c669bf1e
Exception handling when disabled.json returns null
...
Fixes #2341
2016-09-03 12:19:22 +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
Samuel Georges
600794c891
Fixes anchor button color in report widgets
...
Fixes simple list padding issue
Fixes #2342
2016-09-03 12:09:50 +10:00
Szabó Gergő
da254af4e6
Update the Hungarian translate ( #2334 )
...
* Update the Hungarian translate
v1.0.364
2016-09-03 09:44:32 +10:00
Samuel Georges
97e23e5c12
post -> input
v1.0.363
2016-08-28 13:24:04 +10:00
Samuel Georges
a55447edbd
Spruce up the demo theme
...
There is some reorg here for performance improvements, and some sugar coz it's nice
Added README for general guidance
2016-08-27 21:19:11 +10:00
Samuel Georges
1e124995fc
Update Bootstrap to v3.3.7
2016-08-27 21:16:52 +10:00
Samuel Georges
6b60673092
Don't show hover effects for rows with no links
...
Minor fix to head checkbox alignment
Recompile assets
v1.0.362
2016-08-27 14:35:32 +10:00
Samuel Georges
8075b40bf0
Now that File facade is removed, we must apply chmod manually
2016-08-27 13:38:19 +10:00
Samuel Georges
dd06cd13fa
Handle cases where directory is not writable
2016-08-27 13:27:57 +10:00